mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
pcm, rate: use the snd_pcm_mmap_hw_avail function
instead of the open-coded equivalent Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
78c804fc93
commit
0889e94706
1 changed files with 1 additions and 4 deletions
|
|
@ -593,10 +593,7 @@ static int snd_pcm_rate_hwsync(snd_pcm_t *pcm)
|
|||
static int snd_pcm_rate_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp)
|
||||
{
|
||||
snd_pcm_rate_hwsync(pcm);
|
||||
if (pcm->stream == SND_PCM_STREAM_PLAYBACK)
|
||||
*delayp = snd_pcm_mmap_playback_hw_avail(pcm);
|
||||
else
|
||||
*delayp = snd_pcm_mmap_capture_hw_avail(pcm);
|
||||
*delayp = snd_pcm_mmap_hw_avail(pcm);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue