(no subject)

From: Stefan Becker (stefan@oph.rwth-aachen.de)
Date: Sat Sep 02 2000 - 08:07:49 EST


Hi!

Alan Cox wrote:
[...]
> o Add later sb16 imix support tot he sb driver (Massimo Dal
Zotto)
[...]

I have a sb16 ISA card and a hauppauge win-pci and the following patch
prevents my hauppauge card from doing sound output.

2.2.17pre20 and 2.2.18pre2 without the patch are working very fine.

diff -u --new-file --recursive --exclude-from /usr/src/exclude
linux.17p20/drivers/sound/sb_mixer.c linux.18p2/drivers/sound/sb_mixer.c
--- linux.17p20/drivers/sound/sb_mixer.c Tue Aug 1 07:59:58 2000
+++ linux.18p2/drivers/sound/sb_mixer.c Thu Aug 31 14:49:58 2000
@@ -109,7 +109,7 @@
 MIX_ENT(SOUND_MIXER_LINE, 0x38, 7, 5, 0x39, 7, 5),
 MIX_ENT(SOUND_MIXER_MIC, 0x3a, 7, 5, 0x00, 0, 0),
 MIX_ENT(SOUND_MIXER_CD, 0x36, 7, 5, 0x37, 7, 5),
-MIX_ENT(SOUND_MIXER_IMIX, 0x3c, 0, 1, 0x00, 0, 0),
+MIX_ENT(SOUND_MIXER_IMIX, 0x3c, 4, 5, 0x00, 0, 0),
 MIX_ENT(SOUND_MIXER_ALTPCM, 0x00, 0, 0, 0x00, 0, 0),
 MIX_ENT(SOUND_MIXER_RECLEV, 0x3f, 7, 2, 0x40, 7, 2), /* Obsolete. Use
IGAIN */
 MIX_ENT(SOUND_MIXER_IGAIN, 0x3f, 7, 2, 0x40, 7, 2),
@@ -597,6 +597,13 @@

                case SOUND_MIXER_OUTSRC:
                    ret = set_outmask(devc, val);
+ break;
+
+ case SOUND_MIXER_IMIX:
+ val = *(int *) arg;
+ devc->levels[SOUND_MIXER_IMIX] = val & 0x1f;
+ sb_setmixer (devc, 0x3c, val);
+ return val;
                    break;

                default:

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:13 EST