From: Randy Dunlap <rdunlap@infradead.org>
To: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>,
Vinod Koul <vkoul@kernel.org>,
Bard Liao <yung-chuan.liao@linux.intel.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
Sanyog Kale <sanyog.r.kale@intel.com>,
Mark Brown <broonie@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org,
linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] soundwire: stream: add multi-direction stream lifecycle API
Date: Mon, 30 Nov 2026 15:24:47 -0800 [thread overview]
Message-ID: <05c5192e-ab18-4036-acf4-be1d46e2433f@infradead.org> (raw)
In-Reply-To: <20261130224018.20359-2-srinivas.kandagatla@oss.qualcomm.com>
On 11/30/26 2:40 PM, Srinivas Kandagatla wrote:
> Add sdw_multi_direction_stream, a lightweight group that aggregates one
> or more sdw_stream_runtimes that share a lifecycle on the bus. New
> entry points:
>
> sdw_multi_direction_stream_alloc / _release / _add
> sdw_prepare_multi_direction_stream
> sdw_enable_multi_direction_stream
> sdw_disable_multi_direction_stream
> sdw_deprepare_multi_direction_stream
>
> A multi-direction stream group with a single constituent behaves
> exactly like the direct sdw_prepare_stream() path, so callers can use
> this API unconditionally without having to branch on how many
> directions a dai_link uses.
>
> Groups with more than one constituent currently iterate the per-stream
> primitives with all-or-nothing rollback on prepare/enable errors.
> This already gives callers a uniform API and well-defined failure
> semantics but still triggers one bank switch per constituent stream.
>
> The follow-up step is to split _sdw_prepare_stream() and
> _sdw_enable_stream() into "params" and "commit" halves so the group
> can program every constituent stream's bus parameters first and then
> trigger a single do_bank_switch() across them. That is left out of
> this change to keep the diff reviewable and because it touches the
> SoundWire core state machine; it can land on top without changing
> the public API introduced here.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
> ---
> Documentation/driver-api/soundwire/stream.rst | 43 ++++
> drivers/soundwire/stream.c | 184 ++++++++++++++++++
> include/linux/soundwire/sdw.h | 37 ++++
> 3 files changed, 264 insertions(+)
> base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
Unless my linux-next tree is mucked up, this base-commit is
linux-next-20261130 but the patch does not apply cleanly to it
for a few reasons:
a. The last 3 lines of the context diff are incorrect.
b. The number of lines in the Documentation block is incorrect,
causing a malformed patch [@@ -518,6 +518,49 @@]: 49 should be 50.
c. The number of lines in the source file diff is incorrect,
causing a malformed patch [@@ -1884,6 +1884,208 @@]:
208 should be 237.
Maybe just regenerate the patch?
--
~Randy
next prev parent reply other threads:[~2026-11-30 23:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 22:40 [RFC PATCH 0/2] soundwire: multi-direction stream API Srinivas Kandagatla
2026-11-30 22:40 ` [PATCH] soundwire: stream: add multi-direction stream lifecycle API Srinivas Kandagatla
2026-11-30 23:24 ` Randy Dunlap [this message]
2026-11-30 22:40 ` [RFC PATCH 2/2] ASoC: qcom: sdw: use multi-direction stream lifecycle for prepare/hw_free Srinivas Kandagatla
2026-12-01 16:44 ` [RFC PATCH 0/2] soundwire: multi-direction stream API Pierre-Louis Bossart
2026-12-01 23:36 ` Srinivas Kandagatla
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=05c5192e-ab18-4036-acf4-be1d46e2433f@infradead.org \
--to=rdunlap@infradead.org \
--cc=alsa-devel@alsa-project.org \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=corbet@lwn.net \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=pierre-louis.bossart@linux.dev \
--cc=sanyog.r.kale@intel.com \
--cc=srinivas.kandagatla@oss.qualcomm.com \
--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®