]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: meson: aiu: introduce a struct for platform specific information
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Thu, 20 Feb 2020 20:57:10 +0000 (21:57 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 21 Feb 2020 13:30:46 +0000 (13:30 +0000)
commitb82455663e2498ffdb66802a4ee30ee2e6ffb95d
treecaeee7cd397a347748f639c31d3d7bdb3c5e7cab
parent244b67a29d58bf5203ec7c087cd6e8f7b3bc83af
ASoC: meson: aiu: introduce a struct for platform specific information

Introduce a struct aiu_platform_data to make the driver aware of
platform specific information. Convert the existing check for the
internal stereo audio codec (only available on GXL) to this new struct.
Support for the 32-bit SoCs will need this as well because the
AIU_CLK_CTRL_MORE register doesn't have the I2S divider bits (and we
need to use the I2S divider from AIU_CLK_CTRL instead).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200220205711.77953-3-martin.blumenstingl@googlemail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/aiu.c
sound/soc/meson/aiu.h