Skip to contentSkip to conversation

Fix for front speaker output on Audigy2

DISCUSSION Andrew de Quincey 2 participants 2 messages Mar 27, 2003 – Apr 2, 2003

lore
Share & tools
lore
#0 lore raw

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
<
---

Quoted 1 line

243,244c243,249
< unsigned int reg = inl(emu->port + HCFG);
< outl(reg | HCFG_GPOUT0, emu->port + HCFG);
---

Quoted 7 lines
              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);
---

Quoted 5 lines
      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 ---

Signature · 8 lines
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
#1 lore raw

Hi,

At Thu, 27 Mar 2003 20:51:18 +0000,

Quoted 3 lines · Andrew de Quincey

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.

thanks! now the patch in the cvs.
i changed the initial Wave playback volume for audigy2 as 50% to make the sound not too loud.

btw, at the next time, could you make diff with -u option?

ciao,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/