Update of /cvsroot/alsa/alsa-kernel/pci/emu10k1
In directory sc8-pr-cvs1:/tmp/cvs-serv1296

Modified Files:
        emu10k1_main.c emufx.c 
Log Message:
- enable the routing to front speaker for audigy2.
  (wave volume is set to 50% as default for audigy2.)



Index: emu10k1_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- emu10k1_main.c      11 Mar 2003 15:25:33 -0000      1.23
+++ emu10k1_main.c      2 Apr 2003 14:35:56 -0000       1.24
@@ -240,8 +240,13 @@
        }
        
        if (!emu->APS) {        /* enable analog output */
-               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: emufx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emufx.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- emufx.c     17 Feb 2003 12:08:22 -0000      1.30
+++ emufx.c     2 Apr 2003 14:35:57 -0000       1.31
@@ -1271,7 +1271,8 @@
        /* Wave Playback */
        A_OP(icode, &ptr, iMAC0, A_GPR(playback), A_C_00000000, A_GPR(gpr), 
A_FXBUS(FXBUS_PCM_LEFT));
        A_OP(icode, &ptr, iMAC0, A_GPR(playback+1), A_C_00000000, A_GPR(gpr+1), 
A_FXBUS(FXBUS_PCM_RIGHT));
-       snd_emu10k1_init_stereo_control(&controls[nctl++], "Wave Playback Volume", 
gpr, 100);
+       snd_emu10k1_init_stereo_control(&controls[nctl++], "Wave Playback Volume", gpr,
+                                       emu->revision == 4 ? 50 : 100);
        gpr += 2;
 
        /* Wave Surround Playback */
@@ -1502,8 +1503,11 @@
        A_PUT_OUTPUT(A_EXTOUT_LFE, playback+5 + SND_EMU10K1_PLAYBACK_CHANNELS);
 
        /* analog speakers */
-       //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);
+       }
        A_PUT_STEREO_OUTPUT(A_EXTOUT_AREAR_L, A_EXTOUT_AREAR_R, playback+2 + 
SND_EMU10K1_PLAYBACK_CHANNELS);
        A_PUT_OUTPUT(A_EXTOUT_ACENTER, playback+4 + SND_EMU10K1_PLAYBACK_CHANNELS);
        A_PUT_OUTPUT(A_EXTOUT_ALFE, playback+5 + SND_EMU10K1_PLAYBACK_CHANNELS);



-------------------------------------------------------
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/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to