Skip to content

Commit 5709a51

Browse files
committed
ASoC: Intel: hda-sdw-bpt: return ENXIO if SOF DSP is not first booted
The BPT stream needs SOF DSP's support. We can only open a BPT stream after the SOF DSP FW is downloaded and booted completed. It also doesn't make sense to wait for SOF FW boot instead of starting common read/write immediately. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent f6602b8 commit 5709a51

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ int hda_sdw_bpt_open(struct device *dev, int link_id, struct hdac_ext_stream **b
273273
int ret1;
274274
int ret;
275275

276+
if (!sdev->dspless_mode_selected && sdev->first_boot) {
277+
dev_dbg(dev, "SOF FW boot not complete yet\n");
278+
return -ENXIO;
279+
}
280+
276281
num_channels_tx = DIV_ROUND_UP(tx_dma_bandwidth, BPT_FREQUENCY * 32);
277282

278283
ret = hda_sdw_bpt_dma_prepare(dev, bpt_tx_stream, dmab_tx_bdl, bpt_tx_num_bytes,

0 commit comments

Comments
 (0)