From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Cc: broonie@kernel.org, mstrozek@opensource.cirrus.com,
yung-chuan.liao@linux.intel.com, pierre-louis.bossart@linux.dev,
lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com,
linux-sound@vger.kernel.org, patches@opensource.cirrus.com
Subject: Re: [PATCH v2] ASoC: SDCA: don't narrow DAI channels by port mask on DPCM BE links
Date: Wed, 2 Dec 2026 10:47:34 +0000 [thread overview]
Message-ID: <aw/3RgZm0YEIELOr@opensource.cirrus.com> (raw)
In-Reply-To: <20261201100633.26684-1-srinivas.kandagatla@oss.qualcomm.com>
On Tue, Dec 01, 2026 at 10:06:33AM +0000, Srinivas Kandagatla wrote:
> Commit 8bb24d87078f ("ASoC: SDCA: Add port constraints into
> sdca_asoc_set_constraints()") started intersecting the DAI channel
> mask with the SoundWire DP port min_ch/max_ch for both Input and
> Output Terminals, installed via snd_pcm_hw_constraint_list() from
> startup().
>
> In DPCM dpcm_be_dai_startup() aliases be_substream->runtime to
> fe_substream->runtime, so the per-substream rule lands on the FE
> and narrows its hw_refine().
>
> For Output Terminals the port sits below the DSP capture graph,
> which can present an FE PCM with a channel count different from
> the wire. WCD9378's headset mic is single-channel on DP2 but is
> exposed as a stereo FE capture by Qualcomm LPASS; port_ch_mask is
> 0x1 and any arecord with channels_min > 1 fails with "Slave PCM
> not usable".
>
> Only intersect with port_ch_mask for Input Terminals and leave
> Output Terminals on the cluster mask, restoring the behaviour
> there to what it was before 8bb24d87078f.
>
> Fixes: 8bb24d87078f ("ASoC: SDCA: Add port constraints into sdca_asoc_set_constraints()")
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
prev parent reply other threads:[~2026-12-02 10:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:06 [PATCH v2] ASoC: SDCA: don't narrow DAI channels by port mask on DPCM BE links Srinivas Kandagatla
2026-12-02 10:47 ` Charles Keepax [this message]
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=aw/3RgZm0YEIELOr@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=mstrozek@opensource.cirrus.com \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.dev \
--cc=srinivas.kandagatla@oss.qualcomm.com \
--cc=tiwai@suse.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.