]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commita5d6d28e2ea38dff017cb562dfbe0259d093a851
treed9645684f7cb719ae8415832d66428b94ab8c2ee
parent7d90c8e6396ba245da16bedd789df6d669375408
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