16 Feb
2023
16 Feb
'23
3:34 p.m.
On 16. 02. 23 14:45, Alan Young wrote:
Hi, did this one slip past? I have not see any response. Alan.
I replied to the original e-mail. Usually, it's better to continue in a thread than to do a malformed forward.
Jaroslav
-------- Forwarded Message -------- Subject: [PATCH] pcm_rate: fix hw_ptr boundary wrapping issue Date: Thu, 5 Jan 2023 15:35:46 +0000 From: Alan Young [1]<consult.awy@gmail.com> To: [2]alsa-devel@alsa-project.org CC: [3]tiwai@suse.de, [4]mahendran.kuppusamy@in.bosch.com, Alan Young [5]<consult.awy@gmail.com> Wrap the hw_ptr using the total position of the slave hw_ptr, including boundary wraps. Otherwise, small errors can creep in due to residuals (when boundary is not a multiple of period size) and which can accumulate. Signed-off-by: Alan Young [6]<consult.awy@gmail.com> Fixes: 7570e5d7 ("pcm: rate: fix the hw_ptr update until the boundary available") --- src/pcm/pcm_rate.c | 54 ++++++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/src/pcm/pcm_rate.c b/src/pcm/pcm_rate.c
...
--
Jaroslav Kysela perex@perex.cz
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.