-
Notifications
You must be signed in to change notification settings - Fork 303
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
topology: fix bad parameters in generic dmic dai add #2089
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a438feb
topology: intel-generic-dmic.m4: fix dai parameters
46afa5a
topology: sof-bdw-codec.m4: add time domain DMA
13c2de7
topology: sof-cht-nocodec.m4: add time domain DMA
a8c73ea
topology: sof-cht-rt5682.m4: add time domain DMA
d542258
topology: sof-byt-codec.m4: add time domain DMA
5f4aaf4
topology: sof-cht-max98090.m4: add time domain DMA
e0f67a6
topology: sof-cht-src-50khz-pcm512x.m4: add time domain DMA
5b9e6f7
topology: sof-imx8qxp-cs42888.m4: add time domain DMA
b4b66b8
topology: sof-imx8qxp-nocodec-sai.m4: add time domain DMA
64cf2dc
topology: sof-imx8qxp-nocodec.m4: add time domain DMA
912459b
topology: sof-imx8qxp-wm8960.m4: add time domain DMA
6bccee4
topology: sof-cml-rt5682.m4: remove extra parameters
1ec17c9
topology: sof-bdw-codec.m4: add scheduling dai to media pipe
6882461
topology: sof-hsw-rt5640.m4: remove topology
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
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 |
---|---|---|
|
@@ -45,12 +45,27 @@ PIPELINE_PCM_ADD(sof/pipe-low-latency-capture.m4, | |
1000, 0, 0, | ||
48000, 48000, 48000) | ||
|
||
# | ||
# DAI configuration | ||
# | ||
# SSP port 0 is our only pipeline DAI | ||
# | ||
|
||
# playback DAI is SSP0 using 2 periods | ||
# Buffers use s24le format, 1000us deadline on core 0 with priority 0 | ||
DAI_ADD(sof/pipe-dai-playback.m4, | ||
1, SSP, 0, Codec, | ||
PIPELINE_SOURCE_1, 2, s24le, | ||
1000, 1, 0, SCHEDULE_TIME_DOMAIN_DMA) | ||
|
||
# PCM Media Playback pipeline 3 on PCM 1 using max 2 channels of s32le. | ||
# 2000us deadline on core 0 with priority 0 | ||
PIPELINE_PCM_ADD(sof/pipe-pcm-media.m4, | ||
3, 1, 2, s32le, | ||
2000, 0, 0, | ||
8000, 96000, 48000) | ||
8000, 96000, 48000, | ||
SCHEDULE_TIME_DOMAIN_DMA, | ||
PIPELINE_PLAYBACK_SCHED_COMP_1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. leave broadwell with DMA |
||
|
||
# Connect pipelines together | ||
SectionGraph."PIPE_NAME" { | ||
|
@@ -62,25 +77,12 @@ SectionGraph."PIPE_NAME" { | |
] | ||
} | ||
|
||
# | ||
# DAI configuration | ||
# | ||
# SSP port 0 is our only pipeline DAI | ||
# | ||
|
||
# playback DAI is SSP0 using 2 periods | ||
# Buffers use s24le format, 1000us deadline on core 0 with priority 1 | ||
DAI_ADD(sof/pipe-dai-playback.m4, | ||
1, SSP, 0, Codec, | ||
PIPELINE_SOURCE_1, 2, s24le, | ||
1000, 1, 0) | ||
|
||
# capture DAI is SSP0 using 2 periods | ||
# Buffers use s24le format, 1000us deadline on core 0 with priority 0 | ||
DAI_ADD(sof/pipe-dai-capture.m4, | ||
2, SSP, 0, Codec, | ||
PIPELINE_SINK_2, 2, s24le, | ||
1000, 0, 0) | ||
1000, 0, 0, SCHEDULE_TIME_DOMAIN_DMA) | ||
|
||
# PCM Low Latency | ||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2) | ||
|
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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.
those parameters are obviously wrong, but shouldn't we use the TIMER now?
The DMIC is clock master so there's no real benefit in using DMA interrupts here, is there?
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.
hmm, ok someone needs to jump in here, because I don't know this area.... maybe before the wrong value 16000 something has been just interpreted as != 0 -> so timer?
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.
@tlauda @lgirdwood see above?
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.
@juimonen these are wrong, please validate against the DAI_ADD defn. It looks like we are also missing some macro defs for Time domain, these can be added too in order to avoid ambiguous definitions.
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.
@lgirdwood Pierre's questions was should this be TIMER or DMA...? And I guess it is TIMER as I see only that defined anywhere. And then I see DAI_ADD macros without either TIMER or DMA that compiles to "" in conf files, which is alsp probably not good.... So should those then be DMA?
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.
and forget last comment about not using, was not grepping for tokens... so question is should the empty "" be DOMAIN_DMA?
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.
So in below topologies the TIME_DOMAIN is not specified so it is "":
sof-cht-max98090.m4
sof-cht-nocodec.m4
sof-cht-rt5682.m4
sof-imx8qxp-nocodec.m4
sof-imx8qxp-nocodec-sai.m4
sof-imx8qxp-cs42888.m4
sof-imx8qxp-wm8960.m4
sof-hsw-rt5640.m4
sof-bdw-codec.m4
sof-cht-src-50khz-pcm512x.m4
platform/intel/intel-generic-dmic.m4
sof-byt-codec.m4
Any objections I just change it to TIMER in all?
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.
@juimonen The imx8qxp ones are 100% DMA-driven, so TIMER might/will break them. No words on the other ones though.
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.
@juimonen all topologies use the SOC clock master so there's no problem using the TIMER
the two cases where the codec is master is wm8804 and some versions of pcm512x, those would need to remain DMA based.
In general when the DAI uses 'codec_slave' we can use the TIMER.
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.
@tlauda any comment here ?