kernel_optimize_test/sound
Rander Wang 13774d81f3 ALSA: hda: fix a runtime pm issue in SOF when integrated GPU is disabled
In snd_hdac_device_init pm_runtime_set_active is called to
increase child_count in parent device. But when it is failed
to build connection with GPU for one case that integrated
graphic gpu is disabled, snd_hdac_ext_bus_device_exit will be
invoked to clean up a HD-audio extended codec base device. At
this time the child_count of parent is not decreased, which
makes parent device can't get suspended.

This patch calls pm_runtime_set_suspended to decrease child_count
in parent device in snd_hdac_device_exit to match with
snd_hdac_device_init. pm_runtime_set_suspended can make sure that
it will not decrease child_count if the device is already suspended.

Signed-off-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200902154218.1440441-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-09-02 19:26:39 +02:00
..
ac97
aoa
arm
atmel
core Merge branch 'topic/tasklet-convert' into for-linus 2020-09-02 13:32:06 +02:00
drivers sound updates for 5.9 2020-08-06 14:27:31 -07:00
firewire Merge branch 'topic/tasklet-convert' into for-linus 2020-09-02 13:32:06 +02:00
hda ALSA: hda: fix a runtime pm issue in SOF when integrated GPU is disabled 2020-09-02 19:26:39 +02:00
i2c
isa sound fixes for 5.9-rc2 2020-08-21 10:07:54 -07:00
mips
oss
parisc
pci ALSA: hda: hdmi - add Rocketlake support 2020-09-02 19:26:23 +02:00
pcmcia
ppc
sh
soc ASoC: txx9: convert tasklets to use new tasklet_setup() API 2020-09-02 13:26:33 +02:00
sparc
spi
synth
usb Merge branch 'topic/tasklet-convert' into for-linus 2020-09-02 13:32:06 +02:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c