Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26332
b: refs/heads/master
c: c6cc0e3
h: refs/heads/master
v: v3
  • Loading branch information
Bastiaan Jacques authored and Jaroslav Kysela committed Apr 27, 2006
1 parent c22c202 commit d5b6517
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a183131fe284e68194e66cc4ff49d5876501eb0
refs/heads/master: c6cc0e3b0c087d350bdc5912ecdfb17e796ae266
16 changes: 7 additions & 9 deletions trunk/sound/pci/via82xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,16 +863,14 @@ static snd_pcm_uframes_t snd_via8233_pcm_pointer(struct snd_pcm_substream *subst
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)) {
/* 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;
Expand Down

0 comments on commit d5b6517

Please sign in to comment.