ASoC: soc-component: Add comment for the endianness flag
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 4 May 2022 17:08:28 +0000 (18:08 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 May 2022 11:46:06 +0000 (12:46 +0100)
Add a comment to make the purpose of the endianness flag on the
snd_soc_component structure more clear.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220504170905.332415-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-component.h

index 766dc6f009c0b7e2bc02bfde8dcf2de5048a1c3b..5a764c3099d3ead15ca0d97eccc6e6768621dac0 100644 (file)
@@ -169,6 +169,15 @@ struct snd_soc_component_driver {
        unsigned int idle_bias_on:1;
        unsigned int suspend_bias_off:1;
        unsigned int use_pmdown_time:1; /* care pmdown_time at stop */
+       /*
+        * Indicates that the component does not care about the endianness of
+        * PCM audio data and the core will ensure that both LE and BE variants
+        * of each used format are present. Typically this is because the
+        * component sits behind a bus that abstracts away the endian of the
+        * original data, ie. one for which the transmission endian is defined
+        * (I2S/SLIMbus/SoundWire), or the concept of endian doesn't exist (PDM,
+        * analogue).
+        */
        unsigned int endianness:1;
        unsigned int non_legacy_dai_naming:1;