Files
linux/include/sound
Troy Mitchell 94bdfad3a6 ASoC: soc-dai: add shared BCLK clock for cross-DAI rate constraints
Add a bclk field to struct snd_soc_dai and a helper function
snd_soc_dai_set_bclk_clk() that platform drivers can use to declare
which clock is their BCLK.

Also cache the bclk_ratio in snd_soc_dai_set_bclk_ratio() so that
the framework can use it later in hw_rule evaluation for TDM
configurations where BCLK = rate * slots * slot_width.

When multiple DAIs on the same card share the same physical BCLK
(detected via clk_is_match()), the ASoC core can automatically
constrain their hw_params so that the resulting BCLK rates are
compatible. This commit adds the data structure support; the actual
constraint logic follows in the next patch.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://patch.msgid.link/20260522-i2s-same-blk-v4-1-a71a86faaa20@linux.spacemit.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-05-25 11:42:41 +01:00
..
2024-08-08 07:49:45 +02:00
2023-05-23 12:11:21 +02:00
2024-08-08 07:47:24 +02:00
2023-08-17 09:24:01 +02:00
2025-10-27 15:31:29 +00:00
2025-11-20 17:22:59 +00:00
2025-02-16 23:51:06 +00:00
2026-04-22 21:15:51 +01:00
2025-08-11 09:13:42 +02:00
2025-01-12 13:12:21 +01:00
2024-08-08 07:47:23 +02:00