]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wcd9335: Use int array instead of bitmask for TX mixers
authorYassine Oudjana <y.oudjana@protonmail.com>
Wed, 22 Jun 2022 06:17:45 +0000 (10:17 +0400)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 16:16:24 +0000 (17:16 +0100)
commit672388fe9fb24e9a2b9497a29d185d37a2d8629e
treed9645684f7cb719ae8415832d66428b94ab8c2ee
parent4ede0fd80241ea1131481f57166e7b5ff87c0af2
ASoC: wcd9335: Use int array instead of bitmask for TX mixers

Currently slim_tx_mixer_get reports all TX mixers as enabled when
at least one is, due to it reading the entire tx_port_value bitmask
without testing the specific bit corresponding to a TX port.
Furthermore, using the same bitmask for all capture DAIs makes
setting one mixer affect them all. To prevent this, and since
the SLIM TX muxes effectively only connect to one of the mixers
at a time, turn tx_port_value into an int array storing the DAI
index each of the ports is connected to.

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