Skip to content

Commit 177bf44

Browse files
Jaska UimonenJaska Uimonen
authored andcommitted
ASoC: SOF: Intel: hda: call snd_hda_set_power_save from SOF code
Even though SOF sets its own suspend delay, the possible HDA part of the driver ignores it. So even as SOF sets the suspend delay to 2s, hda part will suspend immediately or depending on the setup of CONFIG_SND_HDA_POWER_SAVE_DEFAULT. This will lead in some cases to jack pins being detected incorrectly. So setup the HDA suspend delay time in HDA to same value as SOF tries to set itself. Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
1 parent ac42b8a commit 177bf44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/sof/intel/hda.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,8 @@ int hda_dsp_probe(struct snd_sof_dev *sdev)
597597
/* set default mailbox offset for FW ready message */
598598
sdev->dsp_box.offset = HDA_DSP_MBOX_UPLINK_OFFSET;
599599

600+
snd_hda_set_power_save(sof_to_hbus(sdev), SND_SOF_SUSPEND_DELAY_MS);
601+
600602
INIT_DELAYED_WORK(&hdev->d0i3_work, hda_dsp_d0i3_work);
601603

602604
return 0;

0 commit comments

Comments
 (0)