Skip to content

Add SoundWire port constraints into SDCA stream

Charles Keepax linux-sound lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 1 replySuperseded
  3. v23 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches4 repliesSuperseded

Changes in v4 from the cover letter

- Added defaults for the word length min/max
- Removed unused static_assert

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ASoC: SDCA: Move DAI constraint allocationinclude/sound/sdca_asoc.h sound/soc/sdca/sdca_asoc.c sound/soc/sdca/sdca_class_function.c+52 -310 replies
2/3ASoC: SDCA: Factor out helper for creating mask of Cluster channelssound/soc/sdca/sdca_asoc.c+39 -250 replies
3/3ASoC: SDCA: Add port constraints into sdca_asoc_set_constraints()include/sound/sdca_asoc.h sound/soc/sdca/sdca_asoc.c sound/soc/sdca/sdca_class_function.c+128 -120 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPierre-Louis Bossart
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] Add SoundWire port constraints into SDCA stream

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(-)
Signature · 1 line
2.47.3