Skip to content

Conversation

@wenliangwu
Copy link

Some necessary initialization like of_machine and dai driver for audio support are included. On the other hand, add dbg_dump callback for DSP panic information.

yaochunhung
yaochunhung previously approved these changes Apr 24, 2023
Copy link
Member

Choose a reason for hiding this comment

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

is the only different the DAIs? If yes, you may want to have a common part that's overridden with the delta (as done for Intel to avoid copy/paste of mostly the same structure).

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for your suggestion, I will make use of ops_init callback as done for intel.

Add mt8188 dai driver and specify of_machine to support mt8188 audio.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Add mt8188 and mt8186 .dbg_dump callback to print some information when
DSP panic occurs.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
@plbossart plbossart merged commit dd26cd5 into thesofproject:topic/sof-dev May 4, 2023
@wenliangwu
Copy link
Author

@plbossart
This is the first time I sent the github patches to ALSA upstream, and I have a question about the steps.

https://patchwork.kernel.org/project/alsa-devel/patch/20230515052540.9037-2-trevor.wu@mediatek.com/
Based on the upstream discussion, some changes are required.
This pull request was merged into topic/sof-dev, should I do anything at github before or after I send v2 to ALSA?
Thanks.

@plbossart
Copy link
Member

@wenliangwu thanks for asking.

Usually what we do is submit a patch with the same commit title but a 'fixup!' prefix, that will be merged to topic/sof-dev, then we squash this patch with the initial one and send the squashed patch upstream.

If you send your changes directly upstream it will generate conflicts for us, it's relatively painful so please try to use fixups first.

@wenliangwu
Copy link
Author

Got it. Thanks for your detailed explanation. I will prepare a fixup commit first.

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.

4 participants