From: Jaroslav Kysela Date: Tue, 16 Nov 2004 16:03:01 +0000 (+0000) Subject: fix for capture for case when status/control structures are not mmaped X-Git-Tag: v1.0.8~32 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=457b8777abeb0fc9a182d22141ae15586f339278;p=alsa-lib.git fix for capture for case when status/control structures are not mmaped --- diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index ec888100..9aa315f1 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -903,6 +903,8 @@ static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm) { snd_pcm_hw_t *hw = pcm->private_data; snd_pcm_uframes_t avail; + + sync_ptr(hw, 0); if (pcm->stream == SND_PCM_STREAM_PLAYBACK) { avail = snd_pcm_mmap_playback_avail(pcm); } else {