From: "Alexey Klimov" <alexey.klimov@linaro.org>
To: "Srinivas Kandagatla" <srinivas.kandagatla@oss.qualcomm.com>,
<broonie@kernel.org>
Cc: <lgirdwood@gmail.com>, <tiwai@suse.com>, <vkoul@kernel.org>,
<srini@kernel.org>, <yung-chuan.liao@linux.intel.com>,
<pierre-louis.bossart@linux.dev>, <linux-arm-msm@vger.kernel.org>,
<devicetree@vger.kernel.org>, <dmitry.baryshkov@oss.qualcomm.com>,
<linux-sound@vger.kernel.org>, <Stable@vger.kernel.org>
Subject: Re: [PATCH v5 01/13] ASoC: codecs: wcd937x: set the comp soundwire port correctly
Date: Thu, 11 Sep 2025 02:45:21 +0100 [thread overview]
Message-ID: <DCPLAK9BYI9D.256FT1VOPLSW3@linaro.org> (raw)
In-Reply-To: <20250909121954.225833-2-srinivas.kandagatla@oss.qualcomm.com>
On Tue Sep 9, 2025 at 1:19 PM BST, Srinivas Kandagatla wrote:
> For some reason we endup with setting soundwire port for
> HPHL_COMP and HPHR_COMP as zero, this can potentially result
> in a memory corruption due to accessing and setting -1 th element of
> port_map array.
>
> Fixes: 82be8c62a38c ("ASoC: codecs: wcd937x: add basic controls")
> Cc: <Stable@vger.kernel.org>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Alexey Klimov <alexey.klimov@linaro.org>
> ---
> sound/soc/codecs/wcd937x.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/codecs/wcd937x.c b/sound/soc/codecs/wcd937x.c
> index 3b0a8cc314e0..de2dff3c56d3 100644
> --- a/sound/soc/codecs/wcd937x.c
> +++ b/sound/soc/codecs/wcd937x.c
> @@ -2046,9 +2046,9 @@ static const struct snd_kcontrol_new wcd937x_snd_controls[] = {
> SOC_ENUM_EXT("RX HPH Mode", rx_hph_mode_mux_enum,
> wcd937x_rx_hph_mode_get, wcd937x_rx_hph_mode_put),
>
> - SOC_SINGLE_EXT("HPHL_COMP Switch", SND_SOC_NOPM, 0, 1, 0,
> + SOC_SINGLE_EXT("HPHL_COMP Switch", WCD937X_COMP_L, 0, 1, 0,
> wcd937x_get_compander, wcd937x_set_compander),
> - SOC_SINGLE_EXT("HPHR_COMP Switch", SND_SOC_NOPM, 1, 1, 0,
> + SOC_SINGLE_EXT("HPHR_COMP Switch", WCD937X_COMP_R, 1, 1, 0,
> wcd937x_get_compander, wcd937x_set_compander),
>
> SOC_SINGLE_TLV("HPHL Volume", WCD937X_HPH_L_EN, 0, 20, 1, line_gain),
next prev parent reply other threads:[~2025-09-11 1:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-09 12:19 [PATCH v5 00/13] ASoC: codecs: wcd93xxx: remove code duplication Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 01/13] ASoC: codecs: wcd937x: set the comp soundwire port correctly Srinivas Kandagatla
2025-09-11 1:45 ` Alexey Klimov [this message]
2025-09-09 12:19 ` [PATCH v5 02/13] ASoC: codecs: wcd937x: make stub functions inline Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 03/13] soundwire: bus: add of_sdw_find_device_by_node helper Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 04/13] soundwire: bus: add sdw_slave_get_current_bank helper Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 05/13] ASoC: codecs: wcdxxxx: use of_sdw_find_device_by_node helper Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 06/13] ASoC: codecs: wcdxxxx: use sdw_slave_get_current_bank helper Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 07/13] ASoC: codecs: wcd: add common helper for wcd codecs Srinivas Kandagatla
2025-09-24 19:59 ` Kees Bakker
2025-09-09 12:19 ` [PATCH v5 08/13] ASoC: codecs: wcd-common: move WCD_SDW_CH to common Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 09/13] ASoC: codecs: wcd-common: move component ops " Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 10/13] ASoC: codecs: wcd939x: get regmap directly Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 11/13] ASoC: codecs: wcd-common: move status_update callback to common Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 12/13] ASoC: codecs: wcd938x: get regmap directly Srinivas Kandagatla
2025-09-09 12:19 ` [PATCH v5 13/13] ASoC: codecs: wcd937x: " Srinivas Kandagatla
2025-09-19 14:57 ` [PATCH v5 00/13] ASoC: codecs: wcd93xxx: remove code duplication Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DCPLAK9BYI9D.256FT1VOPLSW3@linaro.org \
--to=alexey.klimov@linaro.org \
--cc=Stable@vger.kernel.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=pierre-louis.bossart@linux.dev \
--cc=srini@kernel.org \
--cc=srinivas.kandagatla@oss.qualcomm.com \
--cc=tiwai@suse.com \
--cc=vkoul@kernel.org \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox