It seems that rh72's gcc-2.96-98 does something funny when compiling
alsa-kernel/pci/cs4281.c (today's CVS-tree). Trying to install the module
results in following error messages:

--cut--
Aug  2 16:46:28 xxx kernel: ALSA ../alsa-kernel/pci/cs4281.c:675: AC'97 
read problem (ACSTS_VSTS), reg = 0x1c
Aug  2 16:46:28 xxx kernel: ALSA ../alsa-kernel/pci/cs4281.c:675: AC'97 
read problem (ACSTS_VSTS), reg = 0x0
Aug  2 16:46:28 xxx kernel: ALSA ../alsa-kernel/pci/cs4281.c:675: AC'97 
read problem (ACSTS_VSTS), reg = 0x7c
Aug  2 16:46:28 xxx kernel: ALSA ../alsa-kernel/pci/cs4281.c:675: AC'97 
read problem (ACSTS_VSTS), reg = 0x7e
[ ... ]
--cut--

With the following patch the driver loads (and works) fine:

alsa-kernel/pci/cs4281.c:snd_cs4281_ac97_read():
-        snd_cs4281_peekBA0(chip, ac97->num ? BA0_ACSDA2 : BA0_ACSDA);
+        snd_cs4281_peekBA0(chip, ((volatile ac97_t*)ac97)->num ? BA0_ACSDA2 : 
+BA0_ACSDA);

The strange thing is that ac97->num _is_ zero, but still BA0_ACSDA2 is
selected for some odd reason! :o Oh well, maybe I'm missing something
obvious here (I haven't checked the assembler output), but at least I got
ALSA0.9.x working on this machine (ALSA 0.5.x drivers worked fine).

--
 http://www.eca.cx
 Audio software for Linux!





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to