]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2533aac77ff6c8912afed7c26e5c89592c9eac4e
treeca778e7825750a54c5d8fd2d73c5176758dfb379
parent8051aa8450ded3b0fa789858935947dcdee820b7
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