]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Mon, 27 Sep 2021 12:00:51 +0000 (13:00 +0100)
commite4e8aba696ed5d4034560839053b448a1a84e815
tree730aedee5fd915f41ceddf47e7065ad58db7e861
parent898dc53d2a2d876261d003c02397913b8ed402db
ASoC: wcd9335: Use correct version to initialize Class H

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: 0282858a37eb ("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>
sound/soc/codecs/wcd9335.c