Re: [PATCH] ASoC: SDCA: skip port channel mask for Output Terminals
From: Charles Keepax
Date: Wed Nov 25 2026 - 12:42:03 EST
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.
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