mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
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:
parent
5a2daef192
commit
5a6ce31520
3 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue