diff options
author | David Rau <David.Rau.opensource@dm.renesas.com> | 2022-12-14 05:40:58 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-26 00:33:26 +0100 |
commit | c89e652e84f636354213aae42490c7f77a0eadde (patch) | |
tree | b0c3fc25f0d6c1ff1ece6733255fc285bc9d40cb /sound/soc/codecs/da7213.h | |
parent | ASoC: SOF: mediatek: mt8195: remove a redundant comparison of sram (diff) | |
download | linux-c89e652e84f636354213aae42490c7f77a0eadde.tar.xz linux-c89e652e84f636354213aae42490c7f77a0eadde.zip |
ASoC: da7213: Add support for mono, set frame width to 32 when possible
This adds the DAI mono mode support and set the frame width to 32
Signed-off-by: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Tested-by: David Rau <David.Rau.opensource@dm.renesas.com>
Signed-off-by: David Rau <David.Rau.opensource@dm.renesas.com>
Link: https://lore.kernel.org/r/20221214044058.6289-1-David.Rau.opensource@dm.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7213.h')
-rw-r--r-- | sound/soc/codecs/da7213.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7213.h b/sound/soc/codecs/da7213.h index 97ccf0ddd2be..4ca9cfdea06d 100644 --- a/sound/soc/codecs/da7213.h +++ b/sound/soc/codecs/da7213.h @@ -195,6 +195,8 @@ #define DA7213_DAI_WORD_LENGTH_S24_LE (0x2 << 2) #define DA7213_DAI_WORD_LENGTH_S32_LE (0x3 << 2) #define DA7213_DAI_WORD_LENGTH_MASK (0x3 << 2) +#define DA7213_DAI_MONO_MODE_EN (0x1 << 4) +#define DA7213_DAI_MONO_MODE_MASK (0x1 << 4) #define DA7213_DAI_EN_SHIFT 7 /* DA7213_DIG_ROUTING_DAI = 0x21 */ @@ -542,6 +544,7 @@ struct da7213_priv { bool alc_en; bool fixed_clk_auto_pll; struct da7213_platform_data *pdata; + int fmt; }; #endif /* _DA7213_H */ |