[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <343a2a16-f213-4c57-87e4-221cf9d59472@sirena.org.uk>
Date: Fri, 11 Apr 2025 21:52:39 +0100
From: Mark Brown <broonie@...nel.org>
To: Wesley Cheng <quic_wcheng@...cinc.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: srinivas.kandagatla@...aro.org, tiwai@...e.com, perex@...ex.cz,
lgirdwood@...il.com, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, stephan.gerhold@...aro.org,
linux-sound@...r.kernel.org
Subject: Re: [PATCH v1] ASoC: qcom: qdsp6: Fix references to lookup USB_RX
mixer status
On Fri, Apr 11, 2025 at 12:26:53PM -0700, Wesley Cheng wrote:
> This addresses a change in the USB RX mixer naming that was updated in the
> following commit:
>
> commit 450d63471d1c ("ASoC: qcom: qdsp6: Introduce USB AFE port to q6dsp")
>
> In order for the USB SND offload mixer to reference the correct PCM device
> index, the q6usb_usb_mixer_enabled() is used to match the mixer associated
> to the FE multimedia DAI, so the naming has to match. Update the string
> lookup and comments with the proper "USB_RX Audio Mixer" tag.
Given that the USB offloading changes are in Greg's tree this will need
to go there, I've added him to the Ccs and kept all the content for his
benefit. I'm fine with this:
Acked-by: Mark Brown <broonie@...nel.org>
>
> Fixes: e0dd9240f13a ("ASoC: qcom: qdsp6: Fetch USB offload mapped card and PCM device")
> Signed-off-by: Wesley Cheng <quic_wcheng@...cinc.com>
> ---
> sound/soc/qcom/qdsp6/q6usb.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/qcom/qdsp6/q6usb.c b/sound/soc/qcom/qdsp6/q6usb.c
> index 274c251e84dd..abc0d62950b3 100644
> --- a/sound/soc/qcom/qdsp6/q6usb.c
> +++ b/sound/soc/qcom/qdsp6/q6usb.c
> @@ -158,7 +158,7 @@ static int q6usb_usb_mixer_enabled(struct snd_soc_dapm_widget *w)
>
> /* Checks to ensure USB path is enabled/connected */
> snd_soc_dapm_widget_for_each_sink_path(w, p)
> - if (!strcmp(p->sink->name, "USB Mixer") && p->connect)
> + if (!strcmp(p->sink->name, "USB_RX Audio Mixer") && p->connect)
> return 1;
>
> return 0;
> @@ -173,7 +173,7 @@ static int q6usb_get_pcm_id(struct snd_soc_component *component)
> /*
> * Traverse widgets to find corresponding FE widget. The DAI links are
> * built like the following:
> - * MultiMedia* <-> MM_DL* <-> USB Mixer*
> + * MultiMedia* <-> MM_DL* <-> USB_RX Audio Mixer*
> */
> for_each_card_widgets(component->card, w) {
> if (!strncmp(w->name, "MultiMedia", 10)) {
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists