Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: hdac_hda: 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 HDA 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-11-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Charles Keepax and committed by
Mark Brown
1324cd8d 2ac5b982

+8 -7
+8 -7
sound/soc/codecs/hdac_hda.c
··· 571 571 }; 572 572 573 573 static const struct snd_soc_component_driver hdac_hda_codec = { 574 - .probe = hdac_hda_codec_probe, 575 - .remove = hdac_hda_codec_remove, 576 - .idle_bias_on = false, 577 - .dapm_widgets = hdac_hda_dapm_widgets, 578 - .num_dapm_widgets = ARRAY_SIZE(hdac_hda_dapm_widgets), 579 - .dapm_routes = hdac_hda_dapm_routes, 580 - .num_dapm_routes = ARRAY_SIZE(hdac_hda_dapm_routes), 574 + .probe = hdac_hda_codec_probe, 575 + .remove = hdac_hda_codec_remove, 576 + .dapm_widgets = hdac_hda_dapm_widgets, 577 + .num_dapm_widgets = ARRAY_SIZE(hdac_hda_dapm_widgets), 578 + .dapm_routes = hdac_hda_dapm_routes, 579 + .num_dapm_routes = ARRAY_SIZE(hdac_hda_dapm_routes), 580 + .idle_bias_on = false, 581 + .endianness = 1, 581 582 }; 582 583 583 584 static int hdac_hda_dev_probe(struct hdac_device *hdev)