Skip to content

Commit 3bdeb93

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 4ded0e1 commit 3bdeb93

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
@@ -124,6 +124,9 @@ static int hda_sdw_bpt_dma_prepare(struct device *dev, struct hdac_ext_stream **
124124
__func__, direction);
125125
return PTR_ERR(bpt_stream);
126126
}
127+
/* Mark the HDA stream link is used */
128+
bpt_stream->link_locked = 1;
129+
127130
*sdw_bpt_stream = bpt_stream;
128131

129132
if (!sdev->dspless_mode_selected) {
@@ -196,6 +199,8 @@ static int hda_sdw_bpt_dma_deprepare(struct device *dev, struct hdac_ext_stream
196199
snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL, mask, 0);
197200
}
198201

202+
snd_hdac_ext_stream_release(sdw_bpt_stream, HDAC_EXT_STREAM_TYPE_LINK);
203+
199204
return 0;
200205
}
201206

0 commit comments

Comments
 (0)