]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:23 +0000 (06:43 -0700)
commite2130db17d007cf7f216fcb3f9a2d08ffe897620
tree474bd7ebcab64a5c6f91274f6ce56171c34692e1
parenta973c17c5cebecc2d1b3098a19ca0c5466b8ae4d
ASoC: fsl_sai: Update is_slave_mode with correct value

[ Upstream commit ddb351145a967ee791a0fb0156852ec2fcb746ba ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/fsl_sai.c