patch-2.0.14 linux/drivers/sound/audio.c
Next file: linux/drivers/sound/dmabuf.c
Previous file: linux/drivers/sound/ad1848.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Aug 18 10:46:48 1996
- Orig file:
v2.0.13/linux/drivers/sound/audio.c
- Orig date:
Sat Jul 6 11:31:42 1996
diff -u --recursive --new-file v2.0.13/linux/drivers/sound/audio.c linux/drivers/sound/audio.c
@@ -35,7 +35,7 @@
static int local_conversion[MAX_AUDIO_DEV];
static int
-set_format (int dev, int fmt)
+set_format (int dev, long fmt)
{
if (fmt != AFMT_QUERY)
{
@@ -64,7 +64,7 @@
audio_open (int dev, struct fileinfo *file)
{
int ret;
- int bits;
+ long bits;
int dev_type = dev & 0x0f;
int mode = file->mode & O_ACCMODE;
@@ -381,7 +381,7 @@
break;
case SNDCTL_DSP_SETFMT:
- return snd_ioctl_return ((int *) arg, set_format (dev, get_fs_long ((long *) arg)));
+ return snd_ioctl_return ((int *) arg, set_format (dev, get_user ((int *) arg)));
case SNDCTL_DSP_GETISPACE:
if (!(audio_devs[dev]->open_mode & OPEN_READ))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov