Skip to content

Commit a4c8776

Browse files
committed
ASoC: SOF: Intel: hda-sdw-bpt: Add support for on-demand DSP boot
If on-demand DSP boot is used we need to make sure that the DSP is booted up - which might not be the case - since we need ChainDMA in normal, non DSPless mode for the BRA to work. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 159a5eb commit a4c8776

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sound/soc/sof/intel/hda-sdw-bpt.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@ static int hda_sdw_bpt_dma_prepare(struct device *dev, struct hdac_ext_stream **
9797
struct hdac_ext_stream *bpt_stream;
9898
unsigned int format = HDA_CL_STREAM_FORMAT;
9999

100+
if (!sdev->dspless_mode_selected) {
101+
int ret;
102+
103+
/*
104+
* Make sure that the DSP is booted up, which might not be the
105+
* case if the on-demand DSP boot is used
106+
*/
107+
ret = snd_sof_boot_dsp_firmware(sdev);
108+
if (ret)
109+
return ret;
110+
}
100111
/*
101112
* the baseline format needs to be adjusted to
102113
* bandwidth requirements

0 commit comments

Comments
 (0)