Skip to content

Commit 5e10347

Browse files
committed
ASoC: SOF: hda-sdw-bpt: mark bpt_stream->link_locked
Currently, the BPT stream will not run with other streams. So there is no issue we don't mark bpt_stream->link_locked. But we will support the BRA and audio streams run simultaneously. Therefore, marking link_locked is required to prevent the link being used by different streams. Signed-off-by: Bard Liao <[email protected]>
1 parent ea07943 commit 5e10347

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ static int hda_sdw_bpt_dma_prepare(struct device *dev, struct hdac_ext_stream **
123123
__func__, direction);
124124
return PTR_ERR(bpt_stream);
125125
}
126+
/* Mark the HDA stream link is used */
127+
bpt_stream->link_locked = 1;
128+
126129
*sdw_bpt_stream = bpt_stream;
127130

128131
if (!sdev->dspless_mode_selected) {
@@ -195,6 +198,8 @@ static int hda_sdw_bpt_dma_deprepare(struct device *dev, struct hdac_ext_stream
195198
snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL, mask, 0);
196199
}
197200

201+
snd_hdac_ext_stream_release(sdw_bpt_stream, HDAC_EXT_STREAM_TYPE_LINK);
202+
198203
return 0;
199204
}
200205

0 commit comments

Comments
 (0)