From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: Mark Brown <broonie@kernel.org>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
Vinod Koul <vkoul@kernel.org>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: SDCA: skip port channel mask for Output Terminals
Date: Fri, 27 Nov 2026 17:57:19 +0000 [thread overview]
Message-ID: <cfacf655-f30a-4145-8748-271c0e8ee4b1@oss.qualcomm.com> (raw)
In-Reply-To: <awcdwnW0fyJFOzaM@opensource.cirrus.com>
On 11/25/26 5:41 PM, Charles Keepax wrote:
> On Mon, Nov 23, 2026 at 05:21:53PM +0000, Charles Keepax wrote:
>> On Mon, Nov 23, 2026 at 04:56:12PM +0000, Srinivas Kandagatla wrote:
>>> 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.
>>
>> Ah the joys of DPCM. It feels problematic that the backend
>> constraints are duplicated to the frontend, when a significant
>> part of of DPCM is that these can differ.
>>
>> The "correct" fix here is probably a bit of DPCM working,
>> although not sure how significant that ends up being. I have not
>> spent a lot of time working on DPCM.
>
> Quite tricky this, at least on the DPCM systems I have (Intel
> based) the primary CPU side DAI ops seem to live on the backend
> DAIs. So likely we really do want the backends to use the same
> runtime, but that makes it quite hard to know what to do with
> those constraints.
>
> The params on the DAI driver are folded into the
> snd_pcm_hardware struct, so maybe we could update that rather
> than using a constraint in the class driver. The DPCM core then
> has flags to decide whether to process the backend codec DAI
> drivers. This also comes with limitations that it only handles
> min/max.
This is exactly want i had in mind aswell, this way it should work for
both the cases, I have a patch on those lines let me send it as v2.
--srini
>
> Or maybe we could do something like an ASoC wrapper for the
> constraint functions that no-ops if it is on a DPCM backend.
>
> Both of those approaches do have the slight ick they basically
> require you to do special things in the codec driver for DPCM
> which feels like it should be transparent to the codec driver
> though.
>
> Thanks,
> Charles
prev parent reply other threads:[~2026-11-27 17:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 16:56 Srinivas Kandagatla
2026-11-23 17:21 ` Charles Keepax
2026-11-25 17:41 ` Charles Keepax
2026-11-27 17:57 ` Srinivas Kandagatla [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=cfacf655-f30a-4145-8748-271c0e8ee4b1@oss.qualcomm.com \
--to=srinivas.kandagatla@oss.qualcomm.com \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=pierre-louis.bossart@linux.dev \
--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
all inboxes | Powered by JetHome®