mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05:00
pcm: multi plugin: reset hw/appl pointers in prepare/reset functions
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
8f2a029925
commit
0bfad420ef
1 changed files with 2 additions and 0 deletions
|
|
@ -501,6 +501,7 @@ static int snd_pcm_multi_prepare(snd_pcm_t *pcm)
|
|||
if (err < 0)
|
||||
result = err;
|
||||
}
|
||||
multi->hw_ptr = multi->appl_ptr = 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -515,6 +516,7 @@ static int snd_pcm_multi_reset(snd_pcm_t *pcm)
|
|||
if (err < 0)
|
||||
result = err;
|
||||
}
|
||||
multi->hw_ptr = multi->appl_ptr = 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue