ASoC: mediatek: mt8186: Allow setting shared clocks from machine driver
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Thu, 8 Sep 2022 16:11:52 +0000 (12:11 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 9 Sep 2022 17:49:00 +0000 (18:49 +0100)
commit4132a778e806f77c2bd01a9a34b07edc9dd99d76
treee6c5e1d25eee3f4b19f279e7651f1ffec7d51f34
parentb3821f7839c2ec322926d16557aff29f4be1f4dc
ASoC: mediatek: mt8186: 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>
Link: https://lore.kernel.org/r/20220908161154.648557-9-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8186/mt8186-afe-common.h
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c