via82xx: tweak VT8251 workaround
PATCH 1/1 via82xx: tweak VT8251 workaround
Move the workaround for the VT8251 up a bit, and check for STAT_EOL rather than STAT_ACTIVE. This resolves issues some people were having with certain ALSA clients (and allows the STAT_ACTIVE check to do what it was intended to do).
This change was suggested by Andrew Daviel.
---
via82xx.c renamed from via82xx.c.orig +7 -9
@@ -863,16 +863,14 @@ static snd_pcm_uframes_t snd_via8233_pcmif (!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 )) { -/* An apparent bug in the 8251 is worked around by sending -* a REG_CTRL_START. */ -if (chip->revision ==VIA_REV_8251 ) -snd_via82xx_pcm_trigger (substream, -SNDRV_PCM_TRIGGER_START ); -else { - res =0 ; - goto unlock; - } + res =0 ; + goto unlock; }if (count &0xffffff ) { idx = count >>24 ;
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Thu, 20 Apr 2006 01:53:39 +0200,
Quoted 9 lines · Bastiaan Jacques
Move the workaround for the VT8251 up a bit, and check for
STAT_EOLrather thanSTAT_ACTIVE. This resolves issues some people were having with certain ALSA clients (and allows theSTAT_ACTIVEcheck to do what it was intended to do).This change was suggested by Andrew Daviel.
Signed-off-by Bastiaan Jacques <[email protected]>
Looks fine. I applied it to ALSA tree.
Thanks,
Takashi
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642