summaryrefslogtreecommitdiff
path: root/sound/soc/meson/aiu.h
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2020-02-20 23:57:10 +0300
committerMark Brown <broonie@kernel.org>2020-02-21 16:30:46 +0300
commitedc761805302db6d63916694d0cdb7468864a47a (patch)
treecaeee7cd397a347748f639c31d3d7bdb3c5e7cab /sound/soc/meson/aiu.h
parent62209c9ad2ac29431e91392afb0bd6332ae4c33e (diff)
downloadlinux-edc761805302db6d63916694d0cdb7468864a47a.tar.xz
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>
Diffstat (limited to 'sound/soc/meson/aiu.h')
-rw-r--r--sound/soc/meson/aiu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/meson/aiu.h b/sound/soc/meson/aiu.h
index 06a968c55728..ab003638d5e5 100644
--- a/sound/soc/meson/aiu.h
+++ b/sound/soc/meson/aiu.h
@@ -27,11 +27,16 @@ struct aiu_interface {
int irq;
};
+struct aiu_platform_data {
+ bool has_acodec;
+};
+
struct aiu {
struct clk *pclk;
struct clk *spdif_mclk;
struct aiu_interface i2s;
struct aiu_interface spdif;
+ const struct aiu_platform_data *platform;
};
#define AIU_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \