ASoC: wm8731: Fix wrong value references for boolean kctl
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Mar 2015 11:39:10 +0000 (12:39 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 9 Apr 2015 22:41:43 +0000 (18:41 -0400)
commit6755eab9d6e7d1656f649606bf7d7c1c3a0244ac
tree8364913b37f606d77365b4651c8e6d26adfb0fea
parent5841b1d7096a8fdb7d248a947fbfbc0f27c91ff9
ASoC: wm8731: Fix wrong value references for boolean kctl

[ Upstream commit bd14016fbf31aa199026f1e2358eab695f374eb1 ]

The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/soc/codecs/wm8731.c