mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Fixed file plugin - mmap access was broken and revents were not handled correctly
This commit is contained in:
parent
37728639ae
commit
131d6610fc
5 changed files with 50 additions and 19 deletions
|
|
@ -943,7 +943,7 @@ static int snd_pcm_plug_mmap(snd_pcm_t *pcm)
|
|||
pcm->mmap_channels = plug->slave->mmap_channels;
|
||||
pcm->running_areas = plug->slave->running_areas;
|
||||
pcm->stopped_areas = plug->slave->stopped_areas;
|
||||
pcm->shadow_mmap = 1;
|
||||
pcm->mmap_shadow = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -953,7 +953,7 @@ static int snd_pcm_plug_munmap(snd_pcm_t *pcm)
|
|||
pcm->mmap_channels = NULL;
|
||||
pcm->running_areas = NULL;
|
||||
pcm->stopped_areas = NULL;
|
||||
pcm->shadow_mmap = 0;
|
||||
pcm->mmap_shadow = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue