[PATCH v3 2/2] ASoC: soc-pcm: constrain hw_params when DAIs share the same BCLK
Mark Brown
broonie at kernel.org
Fri May 22 05:58:55 PDT 2026
On Mon, May 18, 2026 at 02:21:09PM +0800, Troy Mitchell wrote:
> When multiple CPU DAIs on the same sound card share the same physical
> BCLK, add a hw_rule during PCM open that constrains the sample rate so
> the resulting BCLK rate stays consistent across all sharing DAIs.
> + /*
> + * Protect the rtd list traversal. No nesting: this callback runs
> + * from snd_pcm_hw_refine() which does not hold card->mutex.
> + */
> + guard(mutex)(&card->mutex);
We have helpers for acquiring these mutexes which deal with some lockdep
issues using subclasses. Either use those or provide whatever's needed
to have the equivalent thing in a guard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20260522/ace36a4f/attachment.sig>
More information about the linux-riscv
mailing list