linux/sound/soc
Gyeongtaek Lee f67f3317ce ASoC: dapm: fixup dapm kcontrol widget
commit ebf1474745 upstream.

snd_soc_dapm_kcontrol widget which is created by autodisable control
should contain correct on_val, mask and shift because it is set when the
widget is powered and changed value is applied on registers by following
code in dapm_seq_run_coalesced().

		mask |= w->mask << w->shift;
		if (w->power)
			value |= w->on_val << w->shift;
		else
			value |= w->off_val << w->shift;

Shift on the mask in dapm_kcontrol_data_alloc() is removed to prevent
double shift.
And, on_val in dapm_kcontrol_set_value() is modified to get correct
value in the dapm_seq_run_coalesced().

Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/000001d61537$b212f620$1638e260$@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:33:18 +02:00
..
adi
amd
atmel ASoC: atmel: fix atmel_ssc_set_audio link failure 2020-02-28 17:22:26 +01:00
au1x
bcm
cirrus
codecs ASoC: pcm512x: Fix unbalanced regulator enable call in probe error path 2020-03-12 13:00:26 +01:00
dwc
fsl ASoC: fsl_sai: Fix exiting path on probing failure 2020-02-28 17:22:26 +01:00
generic
hisilicon
img
intel ASoC: Intel: bytcr_rt5640: Add quirk for MPMAN MPWIN895CL tablet 2020-04-29 16:33:03 +02:00
jz4740 ASoC: jz4740-i2s: Fix divider written at incorrect offset in register 2020-04-13 10:48:09 +02:00
kirkwood
mediatek
meson ASoC: meson: axg-fifo: fix fifo threshold setup 2020-02-11 04:35:44 -08:00
mxs
pxa
qcom
rockchip
samsung
sh ASoC: rsnd: fix DALIGN register for SSIU 2020-01-17 19:48:35 +01:00
sirf
sof ASoC: SOF: trace: fix unconditional free in trace release 2020-04-29 16:33:05 +02:00
spear
sprd
sti ASoC: sti: fix possible sleep-in-atomic 2020-02-05 21:22:46 +00:00
stm ASoC: stm32: sai: Add missing cleanup 2020-04-17 10:50:25 +02:00
sunxi ASoC: sun8i-codec: Fix setting DAI data format 2020-02-28 17:22:13 +01:00
tegra
ti
txx9
uniphier
ux500
xilinx
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-component.c
soc-compress.c
soc-core.c ASoC: soc-core: Set dpcm_playback / dpcm_capture 2020-01-17 19:48:17 +01:00
soc-dai.c
soc-dapm.c ASoC: dapm: fixup dapm kcontrol widget 2020-04-29 16:33:18 +02:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-io.c
soc-jack.c ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report 2019-12-17 19:56:14 +01:00
soc-ops.c ASoC: fix regwmask 2020-04-17 10:50:06 +02:00
soc-pcm.c ASoC: dpcm: allow start or stop during pause for backend 2020-04-17 10:50:06 +02:00
soc-topology.c ASoC: topology: use name_prefix for new kcontrol 2020-04-17 10:50:06 +02:00
soc-utils.c