PCM: Fix infinite loop in htimestamp of dmix, dsnoop and dshare plugins

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2012-09-21 17:59:42 +02:00
parent 5a2daef192
commit 5a6ce31520
3 changed files with 3 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}