ASoC: mediatek: mt8192: Allow setting shared clocks from machine driver
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Thu, 8 Sep 2022 16:11:45 +0000 (12:11 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 9 Sep 2022 17:48:52 +0000 (18:48 +0100)
commit8ae4fcfd5b11b5c33154732fcad99ad0f5843ce2
tree8d2acf9f63a59ba8f7614c4a88c41e602ba7cd30
parent523820002ea725b37f67e82e8584543b5f7baa32
ASoC: mediatek: mt8192: Allow setting shared clocks from machine driver

Add a new function to configure the shared clock between two i2s ports,
and export it. This will allow the clock sharing to be set from the
machine driver instead of the devicetree.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220908161154.648557-2-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8192/mt8192-afe-common.h
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c