-
Notifications
You must be signed in to change notification settings - Fork 136
ASoC: SOF: hda-sdw-bpt: mark bpt_stream->link_locked #5500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -487,6 +487,11 @@ enum sof_hda_D0_substate { | |
| SOF_HDA_DSP_PM_D0I3, /* low power D0 substate */ | ||
| }; | ||
|
|
||
| enum sof_hda_stream_type { | ||
| HDA_STREAM_USE_HOST_DMA, | ||
| HDA_STREAM_USE_HOST_LINK_DMA, | ||
| }; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is a What would happen if BRA would use hda_link_stream_assign() to grab the Link channel or is it mandatory that we must use the host/link with the same index? Say, you use a wrapper in BR to get the two channels, host via There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or for BRA we need to allocate the pairs like for platforms that have the PROCEN_FMT_QUIRK set? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not mandatory, but we set the same ID for host and link. msg.primary |= SOF_IPC4_GLB_CHAIN_DMA_HOST_ID(dma_id);
msg.primary |= SOF_IPC4_GLB_CHAIN_DMA_LINK_ID(dma_id);https://github.com/thesofproject/linux/blob/topic/sof-dev/sound/soc/sof/intel/hda-sdw-bpt.c#L73 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
To me, yes. Using
I thought about this. However, it will be more complicated. Besides, we can always use the same index for both host and link. Just have to use unused host/link. |
||
|
|
||
| struct sof_ace3_mic_privacy { | ||
| bool active; | ||
| struct work_struct work; | ||
|
|
@@ -693,8 +698,10 @@ u64 hda_dsp_get_stream_ldp(struct snd_sof_dev *sdev, | |
| struct snd_pcm_substream *substream); | ||
|
|
||
| struct hdac_ext_stream * | ||
| hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags); | ||
| int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag); | ||
| hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags, | ||
| enum sof_hda_stream_type type); | ||
| int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag, | ||
| enum sof_hda_stream_type type); | ||
| int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev, | ||
| struct hdac_ext_stream *hext_stream, | ||
| int enable, u32 size); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would you need LinkDMA for Code Loader? It only needs hostDMA.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hda_cl_prepare()is called byhda_sdw_bpt_dma_prepare(). Maybe we should reconsider my first proposal which setlink_lockedinhda_sdw_bpt_dma_prepareand clear it inhda_sdw_bpt_dma_depreparec79e2c5What do you think? @ranj063