Hi, this patch enables output from the front speakers on Audigy2 cards. I've removed
the
rubbish I had for disabling the AC97 codec mixer.
--- CUT HERE ---
Index: pci/emu10k1/emu10k1_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v
retrieving revision 1.23
diff -r1.23 emu10k1_main.c
241c241
<
---
>
243,244c243,249
< unsigned int reg = inl(emu->port + HCFG);
< outl(reg | HCFG_GPOUT0, emu->port + HCFG);
---
> if (!emu->audigy) {
> unsigned int reg = inl(emu->port + HCFG);
> outl(reg | HCFG_GPOUT0, emu->port + HCFG);
> } else {
> unsigned int reg = inl(emu->port + A_IOCFG);
> outl(reg | A_IOCFG_GPOUT0, emu->port + A_IOCFG);
> }
Index: pci/emu10k1/emufx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emufx.c,v
retrieving revision 1.30
diff -r1.30 emufx.c
1505,1506c1505,1509
< //A_PUT_STEREO_OUTPUT(A_EXTOUT_AFRONT_L, A_EXTOUT_AFRONT_R, playback +
SND_EMU10K1_PLAYBACK_CHANNELS);
< A_PUT_STEREO_OUTPUT(A_EXTOUT_AC97_L, A_EXTOUT_AC97_R, playback +
SND_EMU10K1_PLAYBACK_CHANNELS);
---
> if (emu->audigy && emu->revision == 4) { /* audigy2 */
> A_PUT_STEREO_OUTPUT(A_EXTOUT_AFRONT_L, A_EXTOUT_AFRONT_R, playback +
> SND_EMU10K1_PLAYBACK_CHANNELS);
> } else {
> A_PUT_STEREO_OUTPUT(A_EXTOUT_AC97_L, A_EXTOUT_AC97_R, playback +
> SND_EMU10K1_PLAYBACK_CHANNELS);
> }
--- CUT HERE ---
--
adq
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel