[PATCH v2 3/3] ASoC: spacemit: declare shared BCLK for cross-DAI rate constraint

Troy Mitchell troy.mitchell at linux.spacemit.com
Sun May 17 23:06:08 PDT 2026


Hi Mark,

On Mon May 11, 2026 at 10:21 PM CST, Mark Brown wrote:
> On Thu, May 07, 2026 at 06:31:44PM +0800, Troy Mitchell wrote:
>> On SpacemiT K3, multiple I2S controllers share the same physical BCLK
>> (c_bclk). Declare this clock via snd_soc_dai_set_bclk_clk() so the
>> ASoC core can automatically constrain hw_params when one controller is
>> already streaming.
>> 
>> For K1, c_bclk is NULL (obtained via devm_clk_get_optional_enabled),
>> so this call is a no-op and behavior is unchanged.
>
> We don't appear to have a c_bclk in current code?
You're right, I forgot to note the dependency. I'll drop this patch
in v3 so the core framework patches can be merged independently.

I'll resend it as a standalone patch.

                              - Troy




More information about the linux-riscv mailing list