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

topology2: add support for imx8mp #8860

Merged
merged 5 commits into from
Feb 21, 2024

Conversation

iuliana-prodan
Copy link
Contributor

Add SAI class for topology2.
Add simple playback topology2 for i.MX8MP.

@iuliana-prodan
Copy link
Contributor Author

@ranj063 @RanderWang can you, please, review this PR.
Be picky since this is the first tplg2 for imx. I plan to add others and I want to understand the details of topology2.

I also have some questions around the files, if you can answer, I really appreciate it.
Thank you!

@iuliana-prodan iuliana-prodan changed the title topology2: add support for iimx8mp topology2: add support for imx8mp Feb 14, 2024
Move common_definitions.conf to common folder since this
will be used by other companies to define their topologies.

Signed-off-by: Iuliana Prodan <[email protected]>
Move gain-playback/capture pipelines out of cavs folder
since these can used by others.

Update cavs topologies to fix compilation by adding
include/pipelines as searchdir.

Signed-off-by: Iuliana Prodan <[email protected]>
Add SAI DAI class definition, SAI DAI objects can be
instantiated as:

Object.Dai.SAI."N" {
    direction		"duplex"
    dai_name		"NoCodec-0"
    id 			0
    Object.hw_config."0" {
	    mclk_freq	12288000
	    bclk_freq	3072000
	    tdm_slot_width	32
    }
    Object.dai."playback" {
	    period_source_count	2
	    period_sink_count	0
    }
    Object.dai."capture" {
	    period_source_count	0
	    period_sink_count	2
    }
}

Signed-off-by: Iuliana Prodan <[email protected]>
Add SAI as dai_type for dai-copier component.

Signed-off-by: Iuliana Prodan <[email protected]>
Add playback topology for i.MX8MP with wm8960 codec

Signed-off-by: Iuliana Prodan <[email protected]>
@iuliana-prodan
Copy link
Contributor Author

Changes in V2:

  • move common-definitions.conf into common/ folder;
  • move some generic pipelines from pipeline/cavs folder to pipeline/;
  • add SAI as dai_type in dai-copier;
  • update imx8mp topology to use host-copier -> gain -> dai-copier.

@ranj063 @RanderWang @lgirdwood if you consider I can move the first two patches in other PR since these are generic, not related with 8MP topology (but this depends on the first 2).

Copy link
Collaborator

@marc-hb marc-hb Feb 15, 2024

Choose a reason for hiding this comment

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

Placing this file here will very likely make it part of official sof-bin releases by default. Just making sure everyone is aware.

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Really cool to see, thanks @iuliana-prodan !

@@ -1,4 +1,4 @@
# Commonly used definitions in cavs topologies
# Commonly used definitions in topologies
Copy link
Collaborator

Choose a reason for hiding this comment

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

We'll need to figure out how tp move the SSP_BLOB version definitions to some Intel specific file, but rest are indeed generic!

Copy link
Collaborator

@RanderWang RanderWang left a comment

Choose a reason for hiding this comment

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

LGTM


Define {
HEADSET_PLAYBACK_PCM_STREAM_NAME "Headset Playback"
HEADSET_PCM_NAME "Headset"
Copy link
Collaborator

Choose a reason for hiding this comment

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

alignment ?

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

LGTM

@kv2019i
Copy link
Collaborator

kv2019i commented Feb 20, 2024

@ranj063 Good to merge?

@marc-hb
Copy link
Collaborator

marc-hb commented Feb 20, 2024

I can move the first two patches in other PR since these are generic, not related with 8MP topology

Please do for smaller and faster reviews and (more importantly) more CI

https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html#defining-smaller-prs

@iuliana-prodan
Copy link
Contributor Author

I can move the first two patches in other PR since these are generic, not related with 8MP topology

Please do for smaller and faster reviews and (more importantly) more CI

https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html#defining-smaller-prs

@marc-hb can we please leave it as is, now.
It has already 3 approvals and the CI looks good (mtl, lnl and tgl are failing on zmain for a while, not related with these changes).

@kv2019i kv2019i merged commit 3ab82dc into thesofproject:main Feb 21, 2024
39 of 44 checks passed
@marc-hb
Copy link
Collaborator

marc-hb commented Feb 21, 2024

Our daily tests run for longer and have more coverage.

I doubt this would have make a difference in this particular case but you asked, so I just gave you the general guideline :-)

@iuliana-prodan
Copy link
Contributor Author

Our daily tests run for longer and have more coverage.

I doubt this would have make a difference in this particular case but you asked, so I just gave you the general guideline :-)

Thanks @marc-hb.
I'll keep in mind next time!

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