• Jarkko Nikula's avatar
    ASoC: Davinci: Fix FS polarity for I2S format · ad51f765
    Jarkko Nikula authored
    Commit 75d9ac46 ("ASoC: Allow DAI formats to be specified in the dai_link")
    changed DAI format flag values and we cannot simply invert anymore e.g.
    frame-sync with ^= SND_SOC_DAIFMT_NB_IF (which was anyway misuse) as there
    is no anymore fixed bit position for bit-clock or frame-sync inversion.
    
    Fix this by relying only on DAI format flag values passed to us and by not
    making any assumption on individual bit positions
    Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
    Cc: Vaibhav Bedia <vaibhav.bedia@ti.com>
    Cc: Sekhar Nori <nsekhar@ti.com>
    Cc: Kevin Hilman <khilman@ti.com>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    ad51f765
davinci-i2s.c 23.3 KB