Update of /cvsroot/alsa/alsa-kernel/pci/ac97
In directory sc8-pr-cvs1:/tmp/cvs-serv12334
Modified Files:
ac97_codec.c
Log Message:
fix by James Courtier-Dutton <[EMAIL PROTECTED]>:
Fixes ac3 passthru non-audio bit setting for AC97 codecs.
I have :-
Card: Intel ICH5
Chip: Avance Logic ALC650 rev 0
The problem I was having was that the spdif "non-audio" bit was not
being set.
This patch fixes that problem.
Index: ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- ac97_codec.c 30 Jul 2003 10:54:03 -0000 1.100
+++ ac97_codec.c 14 Aug 2003 16:05:13 -0000 1.101
@@ -823,7 +823,13 @@
AC97_CXR_SPDIF_MASK | AC97_CXR_COPYRGT,
v);
} else {
+ unsigned short extst = ac97->regs[AC97_EXTENDED_STATUS];
+ snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0); /*
turn off */
+
change |= snd_ac97_update_bits(ac97, AC97_SPDIF, 0x3fff, val);
+ if (extst & AC97_EA_SPDIF) {
+ snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS,
AC97_EA_SPDIF, AC97_EA_SPDIF); /* turn on again */
+ }
}
return change;
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog