lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241117232100.23760-1-spasswolf@web.de>
Date: Mon, 18 Nov 2024 00:20:58 +0100
From: Bert Karwatzki <spasswolf@....de>
To: Stephan Gerhold <stephan@...hold.net>
Cc: Bert Karwatzki <spasswolf@....de>,
	Mark Brown <broonie@...nel.org>,
	linux-kernel@...r.kernel.org,
	linux-arm-msm@...r.kernel.org,
	alsa-devel@...a-project.org
Subject: [PATCH] ASoC: qcom: apq8016_sbc: Fix second argument of apq8016_dai_init()

Since commit a78a42fb48b8 the second argument of apq8016_dai_init() has
to be an lpass id returned by qdsp6_dai_get_lpass_id().

Fixes: a78a42fb48b8 ("ASoC: qcom: apq8016_sbc: Allow routing audio through QDSP6")

Signed-off-by: Bert Karwatzki <spasswolf@....de>
---
 sound/soc/qcom/apq8016_sbc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c
index 3023cf180a75..ddfcd4616895 100644
--- a/sound/soc/qcom/apq8016_sbc.c
+++ b/sound/soc/qcom/apq8016_sbc.c
@@ -150,7 +150,7 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd)
 {
 	struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0);

-	return apq8016_dai_init(rtd, cpu_dai->id);
+	return apq8016_dai_init(rtd, qdsp6_dai_get_lpass_id(cpu_dai));
 }

 static void apq8016_sbc_add_ops(struct snd_soc_card *card)
--
2.45.2

I came across this while I was trying to adapt this driver to another
sound card.

Bert Karwatzki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ