ALSA: au88x0: fix wrong period_elapsed() call

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 12:01 pm

Gitweb:     http://git.kernel.org/linus/e9ab33d03eb721a632214c0bbaa18652de88aa2d
Commit:     e9ab33d03eb721a632214c0bbaa18652de88aa2d
Parent:     3fd43858c7937801134bd70ef1d411e44f9c0c1c
Author:     Jaroslav Kysela <perex@perex.cz>
AuthorDate: Thu May 28 14:20:00 2009 +0200
Committer:  Takashi Iwai <tiwai@suse.de>
CommitDate: Fri May 29 08:15:59 2009 +0200

    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: Jaroslav Kysela <perex@perex.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/pci/au88x0/au88x0_core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/pci/au88x0/au88x0_core.c b/sound/pci/au88x0/au88x0_core.c
index f84bb19..23f49f3 100644
--- a/sound/pci/au88x0/au88x0_core.c
+++ b/sound/pci/au88x0/au88x0_core.c
@@ -2440,7 +2440,8 @@ static irqreturn_t vortex_interrupt(int irq, void *dev_id)
 		spin_lock(&vortex->lock);
 		for (i = 0; i < NR_ADB; i++) {
 			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);
 				snd_pcm_period_elapsed(vortex->dma_adb[i].
 						       substream);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ALSA: au88x0: fix wrong period_elapsed() call, Linux Kernel Mailing ..., (Fri Jun 12, 12:01 pm)