ASoC: wcd9335: Keep a RX port value for each SLIM RX mux
authorYassine Oudjana <y.oudjana@protonmail.com>
Tue, 4 Jan 2022 03:35:36 +0000 (03:35 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jan 2022 16:41:58 +0000 (16:41 +0000)
commit3b247eeaecfefe35ecca1578b0ed48be65bc6ca3
treeca778e7825750a54c5d8fd2d73c5176758dfb379
parent7112550890d7e415188a3351ec0a140be60f6deb
ASoC: wcd9335: Keep a RX port value for each SLIM RX mux

Currently, rx_port_value is a single unsigned int that gets overwritten
when slim_rx_mux_put() is called for any RX mux, then the same value is
read when slim_rx_mux_get() is called for any of them. This results in
slim_rx_mux_get() reporting the last value set by slim_rx_mux_put()
regardless of which SLIM RX mux is in question.

Turn rx_port_value into an array and store a separate value for each
SLIM RX mux.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Link: https://lore.kernel.org/r/20220104033356.343685-1-y.oudjana@protonmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd9335.c