OSDN Git Service

ALSA: hda/tegra: implement runtime suspend/resume
authorSameer Pujar <spujar@nvidia.com>
Tue, 22 Jan 2019 07:33:20 +0000 (13:03 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jan 2019 08:21:56 +0000 (09:21 +0100)
commit707e0759f2f4aefcc5c3f08ce5fb9e98495fdc93
tree03d5df1b09318a2638d8d970fb2e61379bfa7e6c
parent091aa420530c1f0c93745dc9e506bfa96f898702
ALSA: hda/tegra: implement runtime suspend/resume

This patch moves clock enable/disable from system resume/suspend to
runtime resume/suspend respectively. Along with this hda controller
chip init or stop is also moved. System resume/suspend can invoke
runtime callbacks and do necessary setup.

chip->running can be used to check for probe completion and device
access during runtime_resume or runtime_suspend can be avoided if
probe is not yet finished. This helps to avoid kernel panic during
boot where runtime PM callbacks can happen from system PM.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_tegra.c