summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-09-21 17:59:42 +0200
committerTakashi Iwai <tiwai@suse.de>2012-09-21 17:59:42 +0200
commit5a6ce315201f9e2abee51f4f890c1f5c6592c998 (patch)
tree21916c1518fa4832cb274aac9874780eea106c2f
parent5a2daef19225478df7e3c1f8c6c9cb847e574b44 (diff)
downloadalsa-lib-5a6ce315201f9e2abee51f4f890c1f5c6592c998.tar.gz
PCM: Fix infinite loop in htimestamp of dmix, dsnoop and dshare plugins
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--src/pcm/pcm_dmix.c1
-rw-r--r--src/pcm/pcm_dshare.c1
-rw-r--r--src/pcm/pcm_dsnoop.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c
index 8c71edba..16dba14b 100644
--- a/src/pcm/pcm_dmix.c
+++ b/src/pcm/pcm_dmix.c
@@ -853,6 +853,7 @@ static int snd_pcm_dmix_htimestamp(snd_pcm_t *pcm,
break;
*avail = avail1;
*tstamp = snd_pcm_hw_fast_tstamp(dmix->spcm);
+ ok = 1;
}
return 0;
}
diff --git a/src/pcm/pcm_dshare.c b/src/pcm/pcm_dshare.c
index 6638dc4a..1bdb670b 100644
--- a/src/pcm/pcm_dshare.c
+++ b/src/pcm/pcm_dshare.c
@@ -543,6 +543,7 @@ static int snd_pcm_dshare_htimestamp(snd_pcm_t *pcm,
break;
*avail = avail1;
*tstamp = snd_pcm_hw_fast_tstamp(dshare->spcm);
+ ok = 1;
}
return 0;
}
diff --git a/src/pcm/pcm_dsnoop.c b/src/pcm/pcm_dsnoop.c
index 9df6c7e8..ea07e041 100644
--- a/src/pcm/pcm_dsnoop.c
+++ b/src/pcm/pcm_dsnoop.c
@@ -458,6 +458,7 @@ static int snd_pcm_dsnoop_htimestamp(snd_pcm_t *pcm,
break;
*avail = avail1;
*tstamp = snd_pcm_hw_fast_tstamp(dsnoop->spcm);
+ ok = 1;
}
return 0;
}