-
Notifications
You must be signed in to change notification settings - Fork 321
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
topology1: Add sample topology for i.MX8MP boards with wm8904 codec #5302
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# | ||
# Topology for i.MX8MP board with wm8904 codec | ||
# | ||
|
||
# Include topology builder | ||
include(`utils.m4') | ||
include(`dai.m4') | ||
include(`pipeline.m4') | ||
include(`sai.m4') | ||
include(`pcm.m4') | ||
include(`buffer.m4') | ||
|
||
# Include TLV library | ||
include(`common/tlv.m4') | ||
|
||
# Include Token library | ||
include(`sof/tokens.m4') | ||
|
||
# Include DSP configuration | ||
include(`platform/imx/imx8.m4') | ||
|
||
# | ||
# Define the pipelines | ||
# | ||
# PCM0 <----> volume <-----> SAI3 (wm8904) | ||
# | ||
|
||
dnl PIPELINE_PCM_ADD(pipeline, | ||
dnl pipe id, pcm, max channels, format, | ||
dnl period, priority, core, | ||
dnl pcm_min_rate, pcm_max_rate, pipeline_rate, | ||
dnl time_domain, sched_comp) | ||
|
||
# Low Latency playback pipeline 1 on PCM 0 using max 2 channels of s32le. | ||
# Set 1000us deadline with priority 0 on core 0 | ||
PIPELINE_PCM_ADD(sof/pipe-`PPROC'-playback.m4, | ||
1, 0, 2, s32le, | ||
1000, 0, 0, | ||
44100, 44100, 44100) | ||
|
||
# Low Latency capture pipeline 2 on PCM 0 using max 2 channels of s32le. | ||
# Set 1000us deadline with priority 0 on core 0 | ||
PIPELINE_PCM_ADD(sof/pipe-volume-capture.m4, | ||
2, 0, 2, s32le, | ||
1000, 0, 0, | ||
44100, 44100, 44100) | ||
# | ||
# DAIs configuration | ||
# | ||
|
||
dnl DAI_ADD(pipeline, | ||
dnl pipe id, dai type, dai_index, dai_be, | ||
dnl buffer, periods, format, | ||
dnl period, priority, core, time_domain) | ||
|
||
# playback DAI is SAI3 using 2 periods | ||
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 | ||
DAI_ADD(sof/pipe-dai-playback.m4, | ||
1, SAI, 3, sai3-wm8904-hifi, | ||
PIPELINE_SOURCE_1, 2, s32le, | ||
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) | ||
|
||
# capture DAI is SAI3 using 2 periods | ||
# Buffers use s32le format, with 48 frame per 1000us on core 0 with priority 0 | ||
DAI_ADD(sof/pipe-dai-capture.m4, | ||
2, SAI, 3, sai3-wm8904-hifi, | ||
PIPELINE_SINK_2, 2, s32le, | ||
1000, 0, 0) | ||
|
||
|
||
# PCM Low Latency, id 0 | ||
|
||
dnl PCM_DUPLEX_ADD(name, pcm_id, playback, capture) | ||
PCM_DUPLEX_ADD(Port0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) | ||
|
||
dnl DAI_CONFIG(type, idx, link_id, name, sai_config) | ||
DAI_CONFIG(SAI, 3, 0, sai3-wm8904-hifi, | ||
SAI_CONFIG(I2S, SAI_CLOCK(mclk, 11565177, codec_mclk_in), | ||
SAI_CLOCK(bclk, 1411200, codec_provider), | ||
SAI_CLOCK(fsync, 44100, codec_provider), | ||
dbaluta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
SAI_TDM(2, 32, 3, 3), | ||
SAI_CONFIG_DATA(SAI, 3, 0))) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@a1batross thanks, this looks good! I'm glad to see other i.MX8mp platform supported. One question below
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.
@dbaluta thanks for such useful software!