[RFC] add TGL 1ch and 8ch nocodec tplg - #2121
Conversation
test nocodec topology for 1-ch and 8-ch. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
If do not strict channel, the playback will try to always use 2 channel as min channel. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
|
Issue with channel detail: 2ch file will map to 2 ch and failed, no error in error trace aplay log and error logger/dev/zero map to 8 ch aplay workIt seems the 8 ch pipeline can not work with 2 ch from host. |
|
@xiulipan I would expect our (upto) 8chn pipeline to switch to 2chan mode when asked by the host. However, it may be the pipeline/component is taking min/max channels as 8 instead of min 2 and max 8 channels. Best to check. Please rule out topology and kconfig first (as kconfig now has max channel option) |
| # 48000, 48000, 48000) | ||
|
|
||
| # Low Latency capture pipeline 2 on PCM 0 using max 2 channels of s16le. | ||
| # Schedule 48 frames per 1000us deadline on core 0 with priority 0 |
There was a problem hiding this comment.
can you fix all comments to describe support for 8 channels? It's all 'max 2 channels of s16le'
| # 1000, 0, 0, | ||
| # 48000, 48000, 48000) | ||
|
|
||
| # Low Latency playback pipeline 5 on PCM 2 using max 2 channels of s16le. |
| # TGL Host GW DMAC support max 6 playback and max 6 capture channels so some | ||
| # pipelines/PCMs/DAIs are commented out to keep within HW bounds. If these | ||
| # are needed then they can be used provided other PCMs/pipelines/SSPs are | ||
| # commented out in their place. |
There was a problem hiding this comment.
this is really awful to review. You should use one file and macros to select the configuration you want.
There was a problem hiding this comment.
@xiulipan also commented out code doesn't get compiled. So, if possible, better make this compile-time selectable without the need to edit. Then it can also be included in CI.
There was a problem hiding this comment.
I would also include a commen here that multi DAI config is blocking on certain features being implemented (and link to the features).
|
@plbossart @lyakh I agreed that this PR is ugly. But what I want is to have some discuss about if we can support 1-ch to 8-ch in one tplg? |
use -DNUM_CH=1 or 8 and conditional code. you only need to test and generate two files from the same .m4 file. |
| #DAI_ADD(sof/pipe-dai-capture.m4, | ||
| # 4, SSP, 1, NoCodec-1, | ||
| # PIPELINE_SINK_4, 2, s16le, | ||
| # 1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER) |
There was a problem hiding this comment.
This should really be using multi DAI config. i.e. we load all the different SSP configs and select at runtime. However, I'm fine if this is commented out providing there is a big comment explaining this.
| DAI_ADD(sof/pipe-dai-capture.m4, | ||
| 6, SSP, 2, NoCodec-2, | ||
| PIPELINE_SINK_6, 2, s16le, | ||
| 1000, 0, 0, SCHEDULE_TIME_DOMAIN_TIMER) |
There was a problem hiding this comment.
This goes upto 6 chans, where are 7 and 8. To be honest, you could probably drop support for 3,5 and 7 in this as I dont think there are any use cases unless I'm mistaken.
| # TGL Host GW DMAC support max 6 playback and max 6 capture channels so some | ||
| # pipelines/PCMs/DAIs are commented out to keep within HW bounds. If these | ||
| # are needed then they can be used provided other PCMs/pipelines/SSPs are | ||
| # commented out in their place. |
There was a problem hiding this comment.
I would also include a commen here that multi DAI config is blocking on certain features being implemented (and link to the features).
| #PCM_DUPLEX_ADD(Port1, 1, PIPELINE_PCM_3, PIPELINE_PCM_4) | ||
| PCM_DUPLEX_ADD(Port2, 2, PIPELINE_PCM_5, PIPELINE_PCM_6) | ||
| # PCM_CAPTURE_ADD(DMIC01, 6, PIPELINE_PCM_13) | ||
|
|
There was a problem hiding this comment.
Probably confusing here for users to uncomment the correct PCM/DAI config. Could the PCM s be next to there DAI_ADD so it's easy to uncomment the correct items when changing mode.
|
@xiulipan any update ? I've marked for v1.6 |
|
Due to merge of PR#2303 this PR must be rebased or test results for KD tests with audio format 24b/32b ignored. |
|
SOFCI TEST |
|
Please rebase for Python tests to pass. |
|
@xiulipan any update ? |
|
@xiulipan ping. Moved to v1.7 |
|
@mengdonglin @lgirdwood Do we still need 1 and 8 channel test topology for TGL? |
|
@xiulipan lets close, we can always revisist if this is needed for test but it doesn't look like it today. |
Add 1ch and 8ch nocodec tplg for test.
Find an issue with PCM_CAPABILITIES about restrict min channel to 2.