Commit 6f134a82 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

pcm: dmix: Fix hwptr updates at status call

In the commit 38a2d2ed ("pcm: dmix: Do not discard slave reported
delay in status result"), the PCM dmix hwptr update code was rewritten
to follow the slave PCM hwptr update.  This is based on the similar
change in PCM dshare, the commit faf53c19.

There was a bug in the commit 38a2d2ed regarding the PCM state
change, and it was addressed in commit 3752e6b8 ("pcm: dmix: Fix
the inconsistent PCM state").  However, we've hit yet another bug in
this commit.  Namely, the hwptr update was forgotten in the
snd_pcm_dmix_sync_ptr0() function.  So the hwptr value passed from
snd_pcm_dmix_status() isn't properly stored, and it screws up at some
long run occasionally.

This patch covers the bug by replacing with the right value.

Fixes: 38a2d2ed ("pcm: dmix: Do not discard slave reported delay in status result")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=200013


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e6754783
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment