提交 e9ab33d0 编写于 作者: J Jaroslav Kysela 提交者: Takashi Iwai

ALSA: au88x0: fix wrong period_elapsed() call

The period_elapsed() call should be called when position moves.

The idea was taken from ALSA bug#4455.
Signed-off-by: NJaroslav Kysela <perex@perex.cz>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 3fd43858
...@@ -2440,7 +2440,8 @@ static irqreturn_t vortex_interrupt(int irq, void *dev_id) ...@@ -2440,7 +2440,8 @@ static irqreturn_t vortex_interrupt(int irq, void *dev_id)
spin_lock(&vortex->lock); spin_lock(&vortex->lock);
for (i = 0; i < NR_ADB; i++) { for (i = 0; i < NR_ADB; i++) {
if (vortex->dma_adb[i].fifo_status == FIFO_START) { if (vortex->dma_adb[i].fifo_status == FIFO_START) {
if (vortex_adbdma_bufshift(vortex, i)) ; if (!vortex_adbdma_bufshift(vortex, i))
continue;
spin_unlock(&vortex->lock); spin_unlock(&vortex->lock);
snd_pcm_period_elapsed(vortex->dma_adb[i]. snd_pcm_period_elapsed(vortex->dma_adb[i].
substream); substream);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册