]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ssm2518: Fix off-by-one error by ffs()
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Dec 2013 10:42:55 +0000 (11:42 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 2 Jan 2014 11:54:15 +0000 (11:54 +0000)
commitf8e3fc57897ba57b433a34bbd7d3412f004f2072
treecf211455da24d174f6187dd4a6d40ef24925ad36
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
ASoC: ssm2518: Fix off-by-one error by ffs()

ffs() returns the bit position from 1, while the ssm2158 driver code
assumes it being 0-based.  Also, the bit mask computation of the two
channel slots are incorrect; it must have worked just casually.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/ssm2518.c