mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
To: Charles Keepax <ckeepax@opensource.cirrus.com>, broonie@kernel.org
Cc: 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 v4 0/3] Add SoundWire port constraints into SDCA stream
Date: Tue, 10 Nov 2026 09:09:23 +0100	[thread overview]
Message-ID: <da201f07-1385-47cf-ad71-8f01ee5ca124@linux.dev> (raw)
In-Reply-To: <20261109172604.4077312-1-ckeepax@opensource.cirrus.com>

On 11/9/26 18:26, Charles Keepax wrote:
> SDCA adds constraints onto the DAI based on the DisCo properties for the
> Input/Output Terminal. As the SoundWire port for a Terminal can be
> selected it is possible for the SoundWire port to support fewer options
> than the Terminal. These patches add the SoundWire port properties into
> the constraints for the DAI startup to cover these situations.
> 
> Changes since v3:
>  - Added defaults for the word length min/max
>  - Removed unused static_assert
> 
> Changes since v2:
>  - Add check for ending up with a zero mask for channels
>  - Switch to using SNDRV_PCM_HW_PARAM_FORMAT, rather than SAMPLE_BITS
> 
> Changes since v1:
>  - Move constraint allocation to DAI probe/remove
>  - Use BIT macro where appropriate
>  - Correct GENMASK usage
>  - Add missing array indexing
>  - Correct channel masking
>  - Reorder the priority of SDCA properties
>  - Handle the case of the word length not being specified
>  - Add a static_assert to check the constraint array is large enough for
>    the word length mask
> 
> Charles Keepax (3):
>   ASoC: SDCA: Move DAI constraint allocation
>   ASoC: SDCA: Factor out helper for creating mask of Cluster channels
>   ASoC: SDCA: Add port constraints into sdca_asoc_set_constraints()
> 
>  include/sound/sdca_asoc.h            |   9 +-
>  sound/soc/sdca/sdca_asoc.c           | 246 +++++++++++++++++++++------
>  sound/soc/sdca/sdca_class_function.c |   6 +-
>  3 files changed, 206 insertions(+), 55 deletions(-)

LGTM

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>


      parent reply	other threads:[~2026-11-10  8:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 17:26 Charles Keepax
2026-11-09 17:26 ` [PATCH v4 1/3] ASoC: SDCA: Move DAI constraint allocation Charles Keepax
2026-11-09 17:26 ` [PATCH v4 2/3] ASoC: SDCA: Factor out helper for creating mask of Cluster channels Charles Keepax
2026-11-09 17:26 ` [PATCH v4 3/3] ASoC: SDCA: Add port constraints into sdca_asoc_set_constraints() Charles Keepax
2026-11-10  8:09 ` 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=da201f07-1385-47cf-ad71-8f01ee5ca124@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 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®