mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2026-01-27 11:52:04 +01:00
also-lib: drop patch
The backported patch was since fixed by a subsequent patch upstream. This effectively reverted the patch and added the fix in a different location. Assuming upstream fixed it correctly the patch is no longer needed. Compare with: https://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=39060852d810461dc8cd1464cfb2ffe84da42d56 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
This commit is contained in:
parent
5bae602366
commit
6ecb175587
|
|
@ -1,41 +0,0 @@
|
|||
From 3950e1ae36ca53a67b7248137e6033e7e99f79a3 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Kysela <perex@perex.cz>
|
||||
Date: Wed, 9 Nov 2022 08:11:42 +0100
|
||||
Subject: [PATCH] pcm: rate - fix the crash in
|
||||
|
||||
Upstream-Status: Backport
|
||||
|
||||
snd_pcm_rate_may_wait_for_avail_min()
|
||||
|
||||
The pcm argument passed to the conversion function in
|
||||
snd_pcm_plugin_may_wait_for_avail_min_conv() should be
|
||||
pcm->fast_op_arg.
|
||||
|
||||
Test command: arecord -Dplughw:x -r12000 -c2 -fS16_LE -M temp.wav
|
||||
|
||||
Fixes: d9dbb57b ("pcm: rate - rewrite the may_wait_for_avail_min callback for the rate plugin")
|
||||
|
||||
BugLink: https://lore.kernel.org/alsa-devel/1667793912-18957-1-git-send-email-shengjiu.wang@nxp.com/
|
||||
Fixes: https://github.com/alsa-project/alsa-lib/issues/282
|
||||
Reported-by: Shengjiu Wang <shengjiu.wang@nxp.com>
|
||||
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
||||
---
|
||||
src/pcm/pcm_plugin.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c
|
||||
index 9d7e233e8437..d58789eca73b 100644
|
||||
--- a/src/pcm/pcm_plugin.c
|
||||
+++ b/src/pcm/pcm_plugin.c
|
||||
@@ -626,7 +626,7 @@ int snd_pcm_plugin_may_wait_for_avail_min_conv(
|
||||
* This code is also used by extplug, but extplug does not allow to alter the sampling rate.
|
||||
*/
|
||||
if (conv)
|
||||
- needed_slave_avail_min = conv(pcm, needed_slave_avail_min);
|
||||
+ needed_slave_avail_min = conv(pcm->fast_op_arg, needed_slave_avail_min);
|
||||
|
||||
if (slave->avail_min != needed_slave_avail_min) {
|
||||
snd_pcm_sw_params_t *swparams;
|
||||
--
|
||||
2.42.0
|
||||
|
||||
|
|
@ -5,7 +5,6 @@ IMX_PATCH = " \
|
|||
file://0005-add-ak4458-conf-for-multichannel-support.patch \
|
||||
file://0006-add-conf-for-iMX-XCVR-sound-card.patch \
|
||||
file://0007-add-conf-for-imx-cs42448-sound-card.patch \
|
||||
file://0001-pcm-rate-fix-the-crash-in-snd_pcm_rate_may_wait_for_.patch \
|
||||
"
|
||||
SRC_URI:append:imx-nxp-bsp = "${IMX_PATCH}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user