]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: cs53l30: Correct clock inversion check
authorNicolin Chen <nicoleotsuka@gmail.com>
Wed, 8 Jun 2016 23:10:05 +0000 (16:10 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jun 2016 16:53:22 +0000 (17:53 +0100)
commit88b1c01fb42e3d637c7e7f36cd4a30ce39a2add4
tree5159ac56d3d9836c2a040f9203e39368f6fab5cd
parent53d4b031e3c31cc6160c2d0cdc326fb74280d239
ASoC: cs53l30: Correct clock inversion check

SND_SOC_DAIFMT_IB_NF = 0x3 (11b) | SND_SOC_DAIFMT_IB_IF = 0x4 (100b)
creates a mask 0x7 (111b) which also includes SND_SOC_DAIFMT_NB_IF
= 0x2 (10b).

So this patch uses the traditional way to check the clock inversion.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs53l30.c