Skip to content

Commit 8bac40b

Browse files
plbossartbroonie
authored andcommitted
ASoC: SOF: Intel: hda-ctrl: re-add sleep after entering and exiting reset
This reverts commit a09d82c ("ASoC: SOF: Intel: hda-ctrl: remove useless sleep") It was a mistake to remove those delays, in light of comments in the HDaudio spec captured in snd_hdac_bus_reset_link() that the codec needs time for its initialization and PLL lock. Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Rander Wang <[email protected]> Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 52a5577 commit 8bac40b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sound/soc/sof/intel/hda-ctrl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,15 @@ int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev)
196196
goto err;
197197
}
198198

199+
usleep_range(500, 1000);
200+
199201
/* exit HDA controller reset */
200202
ret = hda_dsp_ctrl_link_reset(sdev, false);
201203
if (ret < 0) {
202204
dev_err(sdev->dev, "error: failed to exit HDA controller reset\n");
203205
goto err;
204206
}
207+
usleep_range(1000, 1200);
205208

206209
hda_codec_detect_mask(sdev);
207210

0 commit comments

Comments
 (0)