pcm: snd_pcm_readi - plugin type multi, the overun appears when read#102
pcm: snd_pcm_readi - plugin type multi, the overun appears when read#102ouwenchen wants to merge 1 commit intoalsa-project:masterfrom
Conversation
After type route use type multi, merge the two input streams.There was PCM error due to insufficient readable data.Cause the underlying read pointer cannot be updated, and then it will be overrun.
|
Could you elaborate a bit more what does not work? The snd_pcm_mmap_begin() also limits the number of frames. |
|
When I use plugin type multi. |
The hw_ptr in the pcm multi plugin should track the minimal hw_ptr updates from slave PCMs (see snd_pcm_multi_hwptr_update function). If snd_pcm_mmap_avail for the multi PCM is not returning the right values, this update failed somewhere. |
|
So it needs to be update snd_pcm_multi_hwptr_update function to solve this problem? |
|
Yes, I'd prefer a fix in pcm_multi.c . |
After type route use type multi, merge the two input streams.There was
PCM error due to insufficient readable data.Cause the underlying read
pointer cannot be updated, and then it will be overrun.