Skip to content

Conversation

@RanderWang
Copy link

@RanderWang RanderWang commented Jun 13, 2022

topology change: thesofproject/sof#5913

@RanderWang
Copy link
Author

updated commit message, thanks

@RanderWang RanderWang changed the title ASoC: SOF: IPC4: add SRC module support [RFC] ASoC: SOF: IPC4: add SRC module support Jun 15, 2022
@RanderWang RanderWang closed this Jun 17, 2022
@RanderWang RanderWang reopened this Jun 17, 2022
@RanderWang RanderWang changed the title [RFC] ASoC: SOF: IPC4: add SRC module support ASoC: SOF: IPC4: add SRC module support Jun 17, 2022
@RanderWang
Copy link
Author

updated since topology thesofproject/sof#5913 is done.

plbossart
plbossart previously approved these changes Jun 17, 2022
aiChaoSONG
aiChaoSONG previously approved these changes Jun 21, 2022
Copy link

@aiChaoSONG aiChaoSONG left a comment

Choose a reason for hiding this comment

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

This PR fix the schedule domain (LL/DP) issue on my side with the loadable dummy smart amp module.

@RanderWang
Copy link
Author

Fixed typo, thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

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

where are these 2 definitions used?

Copy link
Author

Choose a reason for hiding this comment

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

they are not used now, but may be in future. I prefer to add it by one shot

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it makes sense to add them when used

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm still not in favor of adding macros that are not yet used in this patch. But if everyone else is OK with it, please go ahead with it.

Copy link
Member

Choose a reason for hiding this comment

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

It's not so bad, and it also explains why the LL/DP definitions don't start at zero.

@RanderWang RanderWang force-pushed the ipc4-src branch 2 times, most recently from dc0b07f to 15a3bf8 Compare July 4, 2022 05:43
ujfalusi
ujfalusi previously approved these changes Jul 5, 2022
@RanderWang
Copy link
Author

closed by mistake

@RanderWang
Copy link
Author

rebased code on latest commit

@RanderWang
Copy link
Author

RanderWang commented Jul 11, 2022

Hi, @plbossart @ujfalusi @ranj063 , could you help to review this PR ? Thanks!

ujfalusi
ujfalusi previously approved these changes Jul 11, 2022
plbossart
plbossart previously approved these changes Jul 11, 2022
@plbossart
Copy link
Member

@ranj063 please review/merge if ok

@plbossart
Copy link
Member

@RanderWang conflict with Bard's changes, can you rebase, fix the conflict and push again?

Dsp converts pcm rate to the one defined by dai. When SRC
is used, the pcm runtime rate is different with dai rate
and we need to fix it up for BE components.

Signed-off-by: Rander Wang <rander.wang@intel.com>
SRC module only needs two parameters : base module config
and sink rate. This patch adds prepare and setup for SRC
widgets.

Signed-off-by: Rander Wang <rander.wang@intel.com>
Currently the domain bit in ipc msg for module initialization is
set to lp (low power) mode for pipeline. This is not correct since
it is for module domain type:  ll domain or dp domain which are for
scheduler in fw. If the domain bit is set to 1 fw will process the
module in dp domain or deal it with ll domain. So set domain bit
based on dp domain setting.

Signed-off-by: Rander Wang <rander.wang@intel.com>
@RanderWang
Copy link
Author

rebased and validated. Thanks!

return 0;
err:
sof_ipc4_free_audio_fmt(&src->available_fmt);
kfree(src);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Only a nit-pick, but if you:

kfree(swidget->private);
swidget->private = NULL;

then the reader does not need to scroll up to see that swidget->private = src; in line 762.

Copy link
Author

Choose a reason for hiding this comment

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

thanks. I want it to be consistent with above gain and mixer, so I did it.

@plbossart plbossart merged commit 6e4023b into thesofproject:topic/sof-dev Jul 15, 2022
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.

6 participants