patch-2.1.78 linux/drivers/sound/ad1848.c
Next file: linux/drivers/sound/dev_table.c
Previous file: linux/drivers/sound/Makefile
Back to the patch index
Back to the overall index
- Lines: 88
- Date:
Mon Jan 5 09:39:52 1998
- Orig file:
v2.1.77/linux/drivers/sound/ad1848.c
- Orig date:
Fri Jan 2 14:37:02 1998
diff -u --recursive --new-file v2.1.77/linux/drivers/sound/ad1848.c linux/drivers/sound/ad1848.c
@@ -532,7 +532,7 @@
int val;
if (cmd == SOUND_MIXER_PRIVATE1) {
- if (__get_user(val, (int *)arg))
+ if (get_user(val, (int *)arg))
return -EFAULT;
if (val != 0xffff) {
@@ -546,22 +546,22 @@
ad_write(devc, 26, ad_read(devc, 26) | 0x40); /* Mute mono out */
}
val = devc->mixer_output_port;
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
}
if (((cmd >> 8) & 0xff) == 'M') {
if (_SIOC_DIR(cmd) & _SIOC_WRITE)
switch (cmd & 0xff) {
case SOUND_MIXER_RECSRC:
- if (__get_user(val, (int *)arg))
+ if (get_user(val, (int *)arg))
return -EFAULT;
val = ad1848_set_recmask(devc, val);
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
default:
- if (__get_user(val, (int *)arg))
+ if (get_user(val, (int *)arg))
return -EFAULT;
val = ad1848_mixer_set(devc, cmd & 0xff, val);
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
}
else
switch (cmd & 0xff) {
@@ -571,28 +571,28 @@
case SOUND_MIXER_RECSRC:
val = devc->recmask;
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
case SOUND_MIXER_DEVMASK:
val = devc->supported_devices;
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
case SOUND_MIXER_STEREODEVS:
val = devc->supported_devices;
if (devc->model != MD_C930)
val &= ~(SOUND_MASK_SPEAKER | SOUND_MASK_IMIX);
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
case SOUND_MIXER_RECMASK:
val = devc->supported_rec_devices;
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
case SOUND_MIXER_CAPS:
- return __put_user(SOUND_CAP_EXCL_INPUT, (int *)arg);
+ return put_user(SOUND_CAP_EXCL_INPUT, (int *)arg);
default:
val = ad1848_mixer_get(devc, cmd & 0xff);
- return __put_user(val, (int *)arg);
+ return put_user(val, (int *)arg);
}
} else
return -EINVAL;
@@ -2566,7 +2566,6 @@
SOUND_LOCK_END;
if(loaded)
unload_ms_sound(&hw_config);
-/* unregister_symtab(&ad1848_syms); */
}
#else
@@ -2574,7 +2573,6 @@
void
export_ad1848_syms(void)
{
- register_symtab(&ad1848_syms);
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov