From: Takashi Iwai Date: Mon, 23 Dec 2013 10:42:55 +0000 (+0100) Subject: ASoC: ssm2518: Fix off-by-one error by ffs() X-Git-Tag: v3.14-rc1~143^2~1^2~38^2^35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f60e5473e6788f93849a61198bec4e02fea31e51;p=pandora-kernel.git 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 Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed