fix for capture for case when status/control structures are not mmaped

This commit is contained in:
Jaroslav Kysela 2004-11-16 16:03:01 +00:00
parent 6987a8555c
commit 457b8777ab

View file

@ -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 {