[alsa-devel] [PATCH] ASoC: rsnd: Reinitialize bit clock inversion flag for every format setting

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Oct 17 01:50:54 CEST 2019


Hi

> Unlike other format-related DAI parameters, rdai->bit_clk_inv flag
> is not properly re-initialized when setting format for new stream
> processing. The inversion, if requested, is then applied not to default,
> but to a previous value, which leads to SCKP bit in SSICR register being
> set incorrectly.
> Fix this by re-setting the flag to its initial value, determined by format.
> 
> Fixes: 1a7889ca8aba3 ("ASoC: rsnd: fixup SND_SOC_DAIFMT_xB_xF behavior")
> Cc: Andrew Gabbasov <andrew_gabbasov at mentor.com>
> Cc: Jiada Wang <jiada_wang at mentor.com>
> Cc: Timo Wischer <twischer at de.adit-jv.com>
> Cc: stable at vger.kernel.org # v3.17+
> Signed-off-by: Junya Monden <jmonden at jp.adit-jv.com>
> Signed-off-by: Eugeniu Rosca <erosca at de.adit-jv.com>
> ---

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>



More information about the Alsa-devel mailing list