mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-17 22:05:18 -05:00
pcm: add missing flags initialization for the fallback control data
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
9ee3e4338f
commit
4740dd97bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1018,7 +1018,7 @@ static int map_status_and_control_data(snd_pcm_t *pcm, bool force_fallback)
|
||||||
snd_pcm_set_appl_ptr(pcm, &hw->mmap_control->appl_ptr, hw->fd,
|
snd_pcm_set_appl_ptr(pcm, &hw->mmap_control->appl_ptr, hw->fd,
|
||||||
SNDRV_PCM_MMAP_OFFSET_CONTROL);
|
SNDRV_PCM_MMAP_OFFSET_CONTROL);
|
||||||
if (hw->mmap_control_fallbacked) {
|
if (hw->mmap_control_fallbacked) {
|
||||||
unsigned int flags;
|
unsigned int flags = 0;
|
||||||
/* read appl_ptr and avail_min from kernel when device opened
|
/* read appl_ptr and avail_min from kernel when device opened
|
||||||
* with SND_PCM_APPEND flag
|
* with SND_PCM_APPEND flag
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue