]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_ssi: Fix checking of dai format for AC97 mode
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Wed, 16 Sep 2015 09:13:19 +0000 (10:13 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 19 Sep 2015 18:07:42 +0000 (11:07 -0700)
commitb3f0d42c81cf41123c4e6f84908b6e426c6adc48
treeb0d838c7eddc8ca8cc395b184be82db2f7756da8
parent935a478e4144e0a4f690471a4a1d8ad5718a721b
ASoC: fsl_ssi: Fix checking of dai format for AC97 mode

Current code incorrectly treats dai format for AC97 as bit mask
whereas it's actually an integer value. This causes DAI formats
other than AC97 (e.g. DSP_B) to trigger AC97 related code,
which is incorrect and breaks functionality. This patch fixes
the code to correctly compare values to determine AC97 or not.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c