]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Fix dapm_set_path_status() connect
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Mon, 2 Jul 2012 11:45:21 +0000 (13:45 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Jul 2012 19:08:29 +0000 (20:08 +0100)
commit0e0ab40bb620b4aaef04d0420998a16b9c5578f4
tree92ae2dff2aee91861cf9bca565ef5438d6076ce5
parent7a66376ddf0d082e57fad5702bc2ad0bf920cf34
ASoC: dapm: Fix dapm_set_path_status() connect

dapm_set_path_status() sets connect incorrectly in the case max > 1 with invert.
In that case, the raw disconnect value should be max, which corresponds to the
userspace value 0.

This use case currently does not appear upstream, but it could break
SOC_DAPM_SINGLE() or SOC_DAPM_SINGLE_TLV() elsewhere or in the future.

This patch completes commit 3a9abe8.

Cc: Liam Girdwood <lrg@ti.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: <alsa-devel@alsa-project.org>
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c