]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Update is_slave_mode with correct value
authorDaniel Baluta <daniel.baluta@nxp.com>
Sun, 21 Apr 2019 19:39:08 +0000 (19:39 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 25 Apr 2019 18:50:49 +0000 (19:50 +0100)
commitef1a9c25bca7c2172e977202f2a193bd4c0b3d89
tree51579aedfbf2db356fb2708f32bd639f3207a86f
parent19c4e3eb48d8015968e79632d5c7df1294dce898
ASoC: fsl_sai: Update is_slave_mode with correct value

is_slave_mode defaults to false because sai structure
that contains it is kzalloc'ed.

Anyhow, if we decide to set the following configuration
SAI slave -> SAI master, is_slave_mode will remain set on true
although SAI being master it should be set to false.

Fix this by updating is_slave_mode for each call of
fsl_sai_set_dai_fmt.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c