patch-2.1.13 linux/drivers/sound/sb_mixer.c
Next file: linux/drivers/sound/sequencer.c
Previous file: linux/drivers/sound/sb_common.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Nov 15 10:15:35 1996
- Orig file:
v2.1.12/linux/drivers/sound/sb_mixer.c
- Orig date:
Tue Oct 29 19:58:18 1996
diff -u --recursive --new-file v2.1.12/linux/drivers/sound/sb_mixer.c linux/drivers/sound/sb_mixer.c
@@ -304,6 +304,19 @@
sb_devc *devc = mixer_devs[dev]->devc;
int val;
+/*
+ * Use ioctl(fd, SOUND_MIXER_PRIVATE1, &mode) to turn AGC off (0) or on (1).
+ */
+ if (cmd == SOUND_MIXER_PRIVATE1 && devc->model == MDL_SB16)
+ {
+ int tmp;
+
+ get_user (tmp, (int *) arg);
+
+ sb_setmixer (devc, 0x43, (~tmp) & 0x01);
+ return 0;
+ }
+
if (((cmd >> 8) & 0xff) == 'M')
{
if (_IOC_DIR (cmd) & _IOC_WRITE)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov