pcm: multi plugin: reset hw/appl pointers in prepare/reset functions

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-04-09 10:33:45 +02:00
parent 8f2a029925
commit 0bfad420ef

View file

@ -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;
}