mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Use snd_pcm_hwsync() rather than snd_pcm_delay() in write_areas()
This commit is contained in:
parent
eba436727f
commit
a24442958b
1 changed files with 2 additions and 6 deletions
|
|
@ -6090,9 +6090,7 @@ snd_pcm_sframes_t snd_pcm_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_
|
|||
snd_pcm_sframes_t avail;
|
||||
_again:
|
||||
if (pcm->sleep_min == 0 && state == SND_PCM_STATE_RUNNING) {
|
||||
snd_pcm_sframes_t delay;
|
||||
/* update hw_ptr */
|
||||
err = snd_pcm_delay(pcm, &delay);
|
||||
err = snd_pcm_hwsync(pcm);
|
||||
if (err < 0)
|
||||
goto _end;
|
||||
}
|
||||
|
|
@ -6170,9 +6168,7 @@ snd_pcm_sframes_t snd_pcm_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area
|
|||
snd_pcm_sframes_t avail;
|
||||
_again:
|
||||
if (pcm->sleep_min == 0 && state == SND_PCM_STATE_RUNNING) {
|
||||
snd_pcm_sframes_t delay;
|
||||
/* update hw_ptr */
|
||||
err = snd_pcm_delay(pcm, &delay);
|
||||
err = snd_pcm_hwsync(pcm);
|
||||
if (err < 0)
|
||||
goto _end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue