From: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: broonie@kernel.org, lgirdwood@gmail.com,
yung-chuan.liao@linux.intel.com, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org, patches@opensource.cirrus.com
Subject: Re: [PATCH 2/2] ASoC: SDCA: Add port constraints into sdca_asoc_set_constraints()
Date: Fri, 6 Nov 2026 13:19:23 +0100 [thread overview]
Message-ID: <a6c89fe9-a239-4b97-a912-2b08b9a84e21@linux.dev> (raw)
In-Reply-To: <au2dxajs3ua9M61q@opensource.cirrus.com>
>>> - if (entity->type != SDCA_ENTITY_TYPE_IT)
>>> - return 0;
>>> + /* FIXME: Currently only a single unshared port is supported */
>>
>> I must admit I have no idea how we'd handle ports that can be connected
>> to multiple terminals. It's allowed in the spec, even between Functions
>> which are then no longer independent, and I was told it was due to
>> hardware restrictions, but still I hope we never have to deal with this...
>
> lol yeah me too. For now I am mostly just putting these FIXME's
> in at all the places where this is going to become relevant. I
> must confess I haven't reviewed this part of the spec in detail.
> It feels like sharing a couple of ports for a single terminal is
> probably tractable if a little annoying. But yeah, if we got as
> far as sharing a port across functions that seems like a total
> nightmare. We would probably need to do a bit of re-architecting
> and add a port abstraction at the device level, but hopefully
> people are wise enough to not build hardware like that.
I re-read the spec and I think the main usage for the Terminal to ports
mapping is bandwidth management, possibly across multiple lanes. But
that's a 1:N terminal to port mapping, not M:1 or M:N. It's complicated
but not earth-shattering. Also the mapping is supposed to be pre-made in
DisCo tables, not something that requires much intelligence in drivers -
until the tables are wrong but that's a different story.
I didn't see any wording on sharing ports across functions, I am 100%
sure this was talked about in the WG but maybe it didn't make it in the
final 1.0 version. That said it's not described as forbidden either so a
well-intended creative hardware designer will probably make that
"optimization" at some point...
prev parent reply other threads:[~2026-11-06 12:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 13:49 [PATCH 0/2] Add SoundWire port constraints into SDCA stream Charles Keepax
2026-11-05 13:49 ` [PATCH 1/2] ASoC: SDCA: Factor out helper for creating mask of Cluster channels Charles Keepax
2026-11-05 13:49 ` [PATCH 2/2] ASoC: SDCA: Add port constraints into sdca_asoc_set_constraints() Charles Keepax
2026-11-05 14:11 ` sashiko-bot
2026-11-05 14:27 ` Charles Keepax
2026-11-05 19:49 ` Pierre-Louis Bossart
2026-11-06 9:28 ` Charles Keepax
2026-11-06 12:19 ` Pierre-Louis Bossart [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=a6c89fe9-a239-4b97-a912-2b08b9a84e21@linux.dev \
--to=pierre-louis.bossart@linux.dev \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.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.