Skip to content
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

ASoC: SOF: IPC4: LunarLake: allow ALH chain-dma #4526

Closed

Conversation

plbossart
Copy link
Member

completely untested draft to see how we could enable the chain DMA for SoundWire on LunarLake - in theory we can use the same framework now that the same HDAudio DMA is used.

The chain_dma mode is currently only handled for HDaudio, but can be
used for orther DAIs starting with LunarLake. Move the chain_dma
handling earlier.

Error detection for the chain_dma case for older platforms is handled
at a different level.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
@@ -517,10 +517,12 @@ static int sof_ipc4_widget_setup_comp_dai(struct snd_sof_widget *swidget)

pipe_widget = swidget->spipe->pipe_widget;
pipeline = pipe_widget->private;
if (pipeline->use_chain_dma && ipc4_copier->dai_type != SOF_DAI_INTEL_HDA) {
if (pipeline->use_chain_dma &&
(ipc4_copier->dai_type != SOF_DAI_INTEL_HDA) ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be &&?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes indeed. Need more coffee and a new brain.

We need to find a way to make this conditional on the platform, maybe
with a dai_ops .is_chain_dma_supported callback?

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Use the existing callbacks and mix/match of HDaudio and SoundWire
support.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
@plbossart plbossart closed this Aug 16, 2023
@plbossart plbossart deleted the fix/lnl-alh-chain-dma branch August 18, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants