lkml.org 
[lkml]   [2022]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.19 0906/1157] ASoC: cs35l45: Add endianness flag in snd_soc_component_driver
    Date
    From: Charles Keepax <ckeepax@opensource.cirrus.com>

    [ Upstream commit d919630fe77904931277e663c902582ea6f4e4cf ]

    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: 0d463d016000 ("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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    sound/soc/codecs/cs35l45.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/sound/soc/codecs/cs35l45.c b/sound/soc/codecs/cs35l45.c
    index 2367c1a4c10e..145051390471 100644
    --- a/sound/soc/codecs/cs35l45.c
    +++ b/sound/soc/codecs/cs35l45.c
    @@ -500,6 +500,8 @@ static const struct snd_soc_component_driver cs35l45_component = {
    .num_controls = ARRAY_SIZE(cs35l45_controls),

    .name = "cs35l45",
    +
    + .endianness = 1,
    };

    static int __maybe_unused cs35l45_runtime_suspend(struct device *dev)
    --
    2.35.1


    \
     
     \ /
      Last update: 2022-08-16 02:47    [W:4.040 / U:1.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site