mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
fix for capture for case when status/control structures are not mmaped
This commit is contained in:
parent
6987a8555c
commit
457b8777ab
1 changed files with 2 additions and 0 deletions
|
|
@ -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_hw_t *hw = pcm->private_data;
|
||||||
snd_pcm_uframes_t avail;
|
snd_pcm_uframes_t avail;
|
||||||
|
|
||||||
|
sync_ptr(hw, 0);
|
||||||
if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
|
if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
|
||||||
avail = snd_pcm_mmap_playback_avail(pcm);
|
avail = snd_pcm_mmap_playback_avail(pcm);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue