Takashi Iwai wrote: >> BTW; The cs4281 compilation problem I reported earlier is definitely >> a compiler issue. On two different laptops (x20&x21 thinkpads), >> compiling with the RH72 gcc 2.96 produces a snd-cs4281.o that fails >> to recognize the soundchip. By adding one "(volatile*)" (that shouldn't > the attached patch works for you?
Unfortunately no. To make it work, I needed to add another volatile keyword: - int ac97_num = ((volatile ac97_t *)ac97)->num; + volatile int ac97_num = ((volatile ac97_t *)ac97)->num; Diff between the resulting assembly files (with gcc-2.96-100) is nearly 200 lines! Removing the second 'volatile' removes just one "movzwl %ax, %eax" operation from the assembly output, and the driver still works. Ugh, luckily redhat still ships kgcc (egcs-1.1.2) with RH7.3. I strongly recommend using it to compile alsa-driver/alsa-kernel. PS Compiling with -O instead of -O2 also produces a working driver with the rh73 gcc. -- http://www.eca.cx Audio software for Linux! ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel