ASoC: wcd9335: Use correct version to initialize Class H
authorYassine Oudjana <y.oudjana@protonmail.com>
Sat, 25 Sep 2021 02:24:19 +0000 (02:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:48 +0000 (19:16 +0100)
commit8524d9f336ccb1eef6d93e6f1d24c9b3a6ca0246
tree90ab1bb892a8015ff16c7ef760dc5068ada55d5d
parenta0274b00234512fe62c12c9a83c3a1714aa762e1
ASoC: wcd9335: Use correct version to initialize Class H

[ Upstream commit a270bd9abdc3cd04ec194f1f3164823cbb5a905c ]

The versioning scheme was changed in an earlier patch, which caused the version
being used to initialize WCD9335 to be interpreted as if it was WCD937X, which
changed code paths causing broken headphones output. Pass WCD9335 instead of
WCD9335_VERSION_2_0 to wcd_clsh_ctrl_alloc to fix it.

Fixes: 19c5d1f6a0c3 ("ASoC: codecs: wcd-clsh: add new version support")
Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210925022339.786296-1-y.oudjana@protonmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wcd9335.c