Update of /cvsroot/alsa/alsa-kernel/pci/ac97
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19112

Modified Files:
        ac97_codec.c 
Log Message:
fix access to wrong register when clearing powerdown bits

Index: ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -r1.126 -r1.127
--- ac97_codec.c        4 Apr 2004 16:03:58 -0000       1.126
+++ ac97_codec.c        5 Apr 2004 10:23:34 -0000       1.127
@@ -1978,12 +1978,12 @@
        }
        /* make sure the proper powerdown bits are cleared */
        if (ac97->scaps) {
-               reg = snd_ac97_read(ac97, AC97_EXTENDED_ID);
+               reg = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
                if (ac97->scaps & AC97_SCAP_SURROUND_DAC) 
                        reg &= ~AC97_EA_PRJ;
                if (ac97->scaps & AC97_SCAP_CENTER_LFE_DAC) 
                        reg &= ~(AC97_EA_PRI | AC97_EA_PRK);
-               snd_ac97_write_cache(ac97, AC97_EXTENDED_ID, reg);
+               snd_ac97_write_cache(ac97, AC97_EXTENDED_STATUS, reg);
        }
        snd_ac97_proc_init(ac97);
        if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ac97, &ops)) < 0) {



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to