aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/lochnagar-sc.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2022-05-04 18:08:43 +0100
committerMark Brown <broonie@kernel.org>2022-05-09 12:46:27 +0100
commitba7328f31cd508964cf2a0b62edfb0b8339c1e77 (patch)
treec614343744b6244635beba093e6769fdd44ab9d2 /sound/soc/codecs/lochnagar-sc.c
parentASoC: cx2072x: Add endianness flag in snd_soc_component_driver (diff)
downloadwireguard-linux-ba7328f31cd508964cf2a0b62edfb0b8339c1e77.tar.xz
wireguard-linux-ba7328f31cd508964cf2a0b62edfb0b8339c1e77.zip
ASoC: lochnagar: 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. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220504170905.332415-17-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/lochnagar-sc.c')
-rw-r--r--sound/soc/codecs/lochnagar-sc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/lochnagar-sc.c b/sound/soc/codecs/lochnagar-sc.c
index 54426a90bc0b..54a8ba7ed3c2 100644
--- a/sound/soc/codecs/lochnagar-sc.c
+++ b/sound/soc/codecs/lochnagar-sc.c
@@ -212,12 +212,13 @@ static struct snd_soc_dai_driver lochnagar_sc_dai[] = {
};
static const struct snd_soc_component_driver lochnagar_sc_driver = {
- .non_legacy_dai_naming = 1,
-
.dapm_widgets = lochnagar_sc_widgets,
.num_dapm_widgets = ARRAY_SIZE(lochnagar_sc_widgets),
.dapm_routes = lochnagar_sc_routes,
.num_dapm_routes = ARRAY_SIZE(lochnagar_sc_routes),
+
+ .non_legacy_dai_naming = 1,
+ .endianness = 1,
};
static int lochnagar_sc_probe(struct platform_device *pdev)