ASoC: cs35l45: Add endianness flag in snd_soc_component_driver

The endianness flag is used on the CODEC side to specify an
ambivalence to endian, typically because it is lost over the hardware
link. This device receives audio over an I2S DAI and as such should
have endianness applied.

Fixes: 0d463d0160 ("ASoC: cs35l45: Add driver for Cirrus Logic CS35L45 Smart Amp")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220614131022.778057-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Charles Keepax 2022-06-14 14:10:22 +01:00 committed by Mark Brown
parent aa2a4b8971
commit d919630fe7
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -500,6 +500,8 @@ static const struct snd_soc_component_driver cs35l45_component = {
.num_controls = ARRAY_SIZE(cs35l45_controls), .num_controls = ARRAY_SIZE(cs35l45_controls),
.name = "cs35l45", .name = "cs35l45",
.endianness = 1,
}; };
static int __maybe_unused cs35l45_runtime_suspend(struct device *dev) static int __maybe_unused cs35l45_runtime_suspend(struct device *dev)