* [PATCH] ASoC: SDCA: Allow sample width wild cards in set_usage()
@ 2025-12-16 14:22 Simon Trimmer
2025-12-16 15:07 ` Charles Keepax
2025-12-18 8:21 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Simon Trimmer @ 2025-12-16 14:22 UTC (permalink / raw)
To: broonie; +Cc: linux-sound, linux-kernel, patches, Simon Trimmer
The SDCA spec allows the sample rate and width to be wild cards, but the
current implementation of set_usage() only checked for a wild card of
the sample rate.
Fixes: 4ed357f72a0e ("ASoC: SDCA: Add hw_params() helper function")
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
---
sound/soc/sdca/sdca_asoc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sdca/sdca_asoc.c b/sound/soc/sdca/sdca_asoc.c
index 2d328bbb95b9..498aba9df5d9 100644
--- a/sound/soc/sdca/sdca_asoc.c
+++ b/sound/soc/sdca/sdca_asoc.c
@@ -1478,7 +1478,7 @@ static int set_usage(struct device *dev, struct regmap *regmap,
unsigned int rate = sdca_range(range, SDCA_USAGE_SAMPLE_RATE, i);
unsigned int width = sdca_range(range, SDCA_USAGE_SAMPLE_WIDTH, i);
- if ((!rate || rate == target_rate) && width == target_width) {
+ if ((!rate || rate == target_rate) && (!width || width == target_width)) {
unsigned int usage = sdca_range(range, SDCA_USAGE_NUMBER, i);
unsigned int reg = SDW_SDCA_CTL(function->desc->adr,
entity->id, sel, 0);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: SDCA: Allow sample width wild cards in set_usage()
2025-12-16 14:22 [PATCH] ASoC: SDCA: Allow sample width wild cards in set_usage() Simon Trimmer
@ 2025-12-16 15:07 ` Charles Keepax
2025-12-18 8:21 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2025-12-16 15:07 UTC (permalink / raw)
To: Simon Trimmer; +Cc: broonie, linux-sound, linux-kernel, patches
On Tue, Dec 16, 2025 at 02:22:04PM +0000, Simon Trimmer wrote:
> The SDCA spec allows the sample rate and width to be wild cards, but the
> current implementation of set_usage() only checked for a wild card of
> the sample rate.
>
> Fixes: 4ed357f72a0e ("ASoC: SDCA: Add hw_params() helper function")
> Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: SDCA: Allow sample width wild cards in set_usage()
2025-12-16 14:22 [PATCH] ASoC: SDCA: Allow sample width wild cards in set_usage() Simon Trimmer
2025-12-16 15:07 ` Charles Keepax
@ 2025-12-18 8:21 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-12-18 8:21 UTC (permalink / raw)
To: Simon Trimmer; +Cc: linux-sound, linux-kernel, patches
On Tue, 16 Dec 2025 14:22:04 +0000, Simon Trimmer wrote:
> The SDCA spec allows the sample rate and width to be wild cards, but the
> current implementation of set_usage() only checked for a wild card of
> the sample rate.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SDCA: Allow sample width wild cards in set_usage()
commit: 87783532d34050e2bff6749a4fe9860e624a0540
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-12-18 8:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16 14:22 [PATCH] ASoC: SDCA: Allow sample width wild cards in set_usage() Simon Trimmer
2025-12-16 15:07 ` Charles Keepax
2025-12-18 8:21 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox