Re: [PATCH v2] ALSA: pcm: fix incorrect hw_base increase

2020-05-18 Thread Takashi Iwai
On Mon, 18 May 2020 06:30:38 +0200, Brent Lu wrote: > > There is a corner case that ALSA keeps increasing the hw_ptr but DMA > already stop working/updating the position for a long time. > > In following log we can see the position returned from DMA driver does > not move at all but the hw_ptr

[PATCH v2] ALSA: pcm: fix incorrect hw_base increase

2020-05-17 Thread Brent Lu
There is a corner case that ALSA keeps increasing the hw_ptr but DMA already stop working/updating the position for a long time. In following log we can see the position returned from DMA driver does not move at all but the hw_ptr got increased at some point of time so snd_pcm_avail() will return