[PATCH] [UBUNTU:sound/pci/] Add VT8251 workaround to via82xx driver

crimsun at fungus.sh.nu crimsun at fungus.sh.nu
Fri Apr 21 22:56:19 UTC 2006


Subject: [PATCH] [UBUNTU:sound/pci/] Add VT8251 workaround to via82xx driver

UpstreamStatus: Added in http://hg-mirror.alsa-project.org/alsa-kernel?cmd=changeset;node=915a0d954915;style=gitweb

Takashi Iwai committed this patch from Bastiaan Jacques
<b.jacques at planet.nl> that resolves hangs on certain VIA boards when
ALSA clients become confused.

For our kernel source, the workaround was not present and simply needed
to be added.

Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>

---

 sound/pci/via82xx.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

25474b8a882462630595ec875253ca8b560c16c1
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index f964b3c..bdae1dc 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -859,6 +859,11 @@ static snd_pcm_uframes_t snd_via8233_pcm
 	if (!status)
 		status = inb(VIADEV_REG(viadev, OFFSET_STATUS));
 
+	/* An apparent bug in the 8251 is worked around by sending a 
+	 * REG_CTRL_START. */
+	if (chip->revision == VIA_REV_8251 && (status & VIA_REG_STAT_EOL))
+		snd_via82xx_pcm_trigger(substream, SNDRV_PCM_TRIGGER_START);
+
 	if (!(status & VIA_REG_STAT_ACTIVE)) {
 		res = 0;
 		goto unlock;
-- 
1.1.3


-- 
Daniel T. Chen            crimsun at ubuntu.com
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060421/8c9c6ae0/attachment.sig>


More information about the kernel-team mailing list