]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: simple-card-utils: Add new system-clock-fixed flag
authorRobert Hancock <robert.hancock@calian.com>
Thu, 20 Jan 2022 19:58:32 +0000 (13:58 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jan 2022 19:45:43 +0000 (19:45 +0000)
commit5ca2ab4598179a2690a38420f3fde9f2ad79d55c
tree1fdeda2c4991f6f7635958babd7f75852103e2f3
parente9fed03aebacb8873dee8e2edfbce96f27f6c730
ASoC: simple-card-utils: Add new system-clock-fixed flag

Add a new system-clock-fixed flag, which can be used to specify that the
driver cannot or should not allow the clock frequency of the mapped clock
to be modified. This behavior is also implied if the system-clock-frequency
parameter is set explicitly - the flag is meant for cases where a clock is
mapped to the DAI but which is, or should be treated as, fixed.

When mclk-fs is also specified, this causes a PCM constraint to be added
which enforces that only the corresponding valid sample rate can be used.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20220120195832.1742271-7-robert.hancock@calian.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/simple-card-utils.c