patch-1.3.38 linux/drivers/sound/audio.c
Next file: linux/drivers/sound/configure.c
Previous file: linux/drivers/sound/adlib_card.c
Back to the patch index
Back to the overall index
- Lines: 99
- Date:
Tue Nov 7 10:14:16 1995
- Orig file:
v1.3.37/linux/drivers/sound/audio.c
- Orig date:
Sun Oct 29 11:38:49 1995
diff -u --recursive --new-file v1.3.37/linux/drivers/sound/audio.c linux/drivers/sound/audio.c
@@ -154,7 +154,7 @@
DMAbuf_release (dev, mode);
}
-#if !defined(i386)
+#if defined(NO_INLINE_ASM) || !defined(i386)
static void
translate_bytes (const unsigned char *table, unsigned char *buff, int n)
{
@@ -182,6 +182,7 @@
: "bx", "cx", "di", "si", "ax");
}
}
+
#endif
int
@@ -262,7 +263,7 @@
/*
* This just allows interrupts while the conversion is running
*/
- sti();
+ sti ();
translate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l);
}
@@ -337,7 +338,7 @@
/*
* This just allows interrupts while the conversion is running
*/
- sti();
+ sti ();
translate_bytes (dsp_ulaw, (unsigned char *) dmabuf, l);
}
@@ -501,7 +502,9 @@
return 0; /* Wrong direction */
if (wr_buff_no[dev] != -1)
- return 1; /* There is space in the current buffer */
+ {
+ return 1; /* There is space in the current buffer */
+ }
return DMAbuf_select (dev, file, sel_type, wait);
break;
@@ -514,52 +517,5 @@
}
-#else /* EXCLUDE_AUDIO */
-/*
- * Stub versions
- */
-
-int
-audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
-{
- return -EIO;
-}
-
-int
-audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
-{
- return -EIO;
-}
-
-int
-audio_open (int dev, struct fileinfo *file)
-{
- return -ENXIO;
-}
-
-void
-audio_release (int dev, struct fileinfo *file)
-{
-};
-int
-audio_ioctl (int dev, struct fileinfo *file,
- unsigned int cmd, unsigned int arg)
-{
- return -EIO;
-}
-
-int
-audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
-{
- return -EIO;
-}
-
-long
-audio_init (long mem_start)
-{
- return mem_start;
-}
-
#endif
-
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this