android_kernel_samsung_a7y1.../sound/soc
Charles Keepax 6a571bcb24 ASoC: dapm: Correct DAPM handling of active widgets during shutdown
commit 9b3193089e77d3b59b045146ff1c770dd899acb1 upstream.

commit c2caa4da46a4 ("ASoC: Fix widget powerdown on shutdown") added a
set of the power state during snd_soc_dapm_shutdown to ensure the
widgets powered off. However, when commit 39eb5fd13dff
("ASoC: dapm: Delay w->power update until the changes are written")
added the new_power member of the widget structure, to differentiate
between the current power state and the target power state, it did not
update the shutdown to use the new_power member.

As new_power has not updated it will be left in the state set by the
last DAPM sequence, ie. 1 for active widgets. So as the DAPM sequence
for the shutdown proceeds it will turn the widgets on (despite them
already being on) rather than turning them off.

Fixes: 39eb5fd13dff ("ASoC: dapm: Delay w->power update until the changes are written")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200228153145.21013-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:10:36 +02:00
..
adi
atmel ASoC: atmel: fix build error with CONFIG_SND_ATMEL_SOC_DMA=m 2020-04-07 13:56:44 +02:00
au1x
bcm
blackfin
cirrus
codecs ASoC: pcm512x: Fix unbalanced regulator enable call in probe error path 2020-04-07 14:10:34 +02:00
davinci ASoC: ti: davinci-mcasp: Fix slot mask settings when using multiple AXRs 2020-04-07 13:42:18 +02:00
dwc
fsl ASoC: imx-sgtl5000: put of nodes if finding codec fails 2020-04-07 13:40:11 +02:00
generic
intel ASoC: Intel: Fix use of potentially uninitialized variable 2020-04-07 07:40:18 +02:00
jz4740
kirkwood ASoC: kirkwood: fix external clock probe defer 2020-04-07 12:40:47 +02:00
mediatek
mxs
nuc900
omap
pxa
qcom ASoC: qcom: Fix of-node refcount unbalance to link->codec_of_node 2020-04-07 13:49:19 +02:00
rockchip ASoc: rockchip: i2s: Fix RPM imbalance 2020-04-07 09:28:55 +02:00
samsung
sh ASoC: rsnd: Reinitialize bit clock inversion flag for every format setting 2020-04-07 09:26:42 +02:00
sirf
spear
sti
sunxi
tegra
txx9
ux500
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-cache.c
soc-compress.c
soc-core.c
soc-dapm.c ASoC: dapm: Correct DAPM handling of active widgets during shutdown 2020-04-07 14:10:36 +02:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set 2020-04-07 07:39:12 +02:00
soc-io.c
soc-jack.c ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report 2020-04-07 13:07:07 +02:00
soc-ops.c
soc-pcm.c ASoC: pcm: Fix possible buffer overflow in dpcm state sysfs output 2020-04-07 14:10:32 +02:00
soc-topology.c
soc-utils.c