Skip to content

Commit 7a2ba46

Browse files
kv2019itiwai
authored andcommitted
ASoC: hdac_hda: allow runtime pm at end of probe
Align with recent change to forbid runtime suspend during codec init in snd_hda_codec_device_new(), with matching call to allow suspend at end of hdac_hda_codec_probe(). In snd-hda-intel, call to snd_hda_set_power_save() at end of controller probe does the same thing, but ASoC controller drivers do not modify runtime settings for codecs, so this has to be done in codec drivers, and in this case in hdac_hda. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20200930114140.3839617-3-kai.vehmanen@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent a0645da commit 7a2ba46

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sound/soc/codecs/hdac_hda.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ static int hdac_hda_codec_probe(struct snd_soc_component *component)
481481
snd_hdac_display_power(hdev->bus,
482482
HDA_CODEC_IDX_CONTROLLER, false);
483483

484+
/* match for forbid call in snd_hda_codec_device_new() */
485+
pm_runtime_allow(&hdev->dev);
486+
484487
/*
485488
* hdac_device core already sets the state to active and calls
486489
* get_noresume. So enable runtime and set the device to suspend.

0 commit comments

Comments
 (0)