All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fixes ac3 passthru non-audio bit setting for AC97 codecs.
@ 2003-08-14 15:16 James Courtier-Dutton
  2003-08-14 16:05 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: James Courtier-Dutton @ 2003-08-14 15:16 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

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.

Cheers
James

[-- Attachment #2: ac3_passthru_fix.diff --]
[-- Type: text/plain, Size: 604 bytes --]

--- ac97_codec.c.org	2003-08-14 14:19:29.834681728 +0100
+++ ac97_codec.c	2003-08-14 16:11:39.736581128 +0100
@@ -823,7 +825,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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-08-14 20:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14 15:16 [PATCH] Fixes ac3 passthru non-audio bit setting for AC97 codecs James Courtier-Dutton
2003-08-14 16:05 ` Takashi Iwai
2003-08-14 16:49   ` Gregoire Favre
2003-08-14 17:23     ` Takashi Iwai
2003-08-14 17:44     ` James Courtier-Dutton
2003-08-14 20:48       ` Gregoire Favre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.