Skip to content

Commit 9bd8b35

Browse files
committed
ASoC: SOF: Intel: split codec mask detect and programming UNSOL
We only need to detect codec mask in probe, but need to program UNSOL in probe and resume. We will detect codec mask and program UNSOL separately in the follow up commit. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent ea07943 commit 9bd8b35

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ void hda_codec_detect_mask(struct snd_sof_dev *sdev)
260260
sof_debug_check_flag(SOF_DBG_FORCE_NOCODEC))
261261
return;
262262

263-
/* Accept unsolicited responses */
264-
snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_UNSOL, AZX_GCTL_UNSOL);
265-
266263
/* detect codecs */
267264
if (!bus->codec_mask) {
268265
bus->codec_mask = snd_hdac_chip_readw(bus, STATESTS);

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev)
220220
}
221221
usleep_range(1000, 1200);
222222

223+
/* Accept unsolicited responses */
224+
snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_UNSOL, AZX_GCTL_UNSOL);
225+
223226
hda_codec_detect_mask(sdev);
224227

225228
/* clear stream status */

0 commit comments

Comments
 (0)