Skip to content

[RFC][DO NOT MERGE] test topology for demux usage in capture - #2525

Closed
xiulipan wants to merge 3 commits into
thesofproject:masterfrom
xiulipan:pr/newtgl8ch
Closed

xiulipan wants to merge 3 commits into
thesofproject:masterfrom
xiulipan:pr/newtgl8ch

Conversation

@xiulipan

Copy link
Copy Markdown
Contributor

A testing demux topology with 8-ch.

@xiulipan

Copy link
Copy Markdown
Contributor Author

@juimonen Could you help to check if the pipeline and scheduler usage for this kind of pipelines looks right?
@tlauda It looks like a reverse mixer pipeline for playback. But I got error when trigger PCM3 to run. It seems we also need some change to the MUX comp like the MIXER?

TIMESTAMP              DELTA  C# COMPONENT          LOCATION                       CONTENT
[177277351229.635437] (             nan) c0 mux          2.8      src/audio/component.c:182   ERROR comp_set_state() error: wrong state = 5, COMP_TRIGGER_PREPARE
[177277351292.604187] (       62.968750) c0 PIPE                   src/audio/pipeline.c:527   ERROR pipeline_prepare() error: ret = -22, dev->comp.id = 14
[177277351332.812500] (       40.208332) c0 IPC                       src/ipc/handler.c:311   ERROR ipc: pipe 3 comp 14 prepare failed -22
[177277351558.958344] (      226.145828) c0 mux          2.8      src/audio/component.c:172   ERROR comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET
[177277351867.760437] (      308.802094) c0 dai          2.12     src/audio/component.c:172   ERROR comp_set_state() error: wrong state = 5, COMP_TRIGGER_RESET
[177279579655.625000] (  2227787.750000) c0 mux          2.8      src/audio/component.c:149   ERROR comp_set_state() error: wrong state = 1, COMP_TRIGGER_STOP
[177279579786.354187] (      130.729172) c0 PIPE                   src/audio/pipeline.c:667   ERROR pipeline_trigger() error: ret = -22, host->comp.id = 6, cmd = 0
[177279579828.906250] (       42.552082) c0 IPC                       src/ipc/handler.c:468   ERROR ipc: comp 6 trigger 0x50000 failed -22

sof-tgl-nocodec-mux-8ch tplg

@juimonen

Copy link
Copy Markdown

@xiulipan the graph looks correct to me. Have you tried starting pcm 2, does it work? If that works try first starting pcm2 then pcm 2 while pcm 2 is running. it's been long time since I tried demux in real life...

@xiulipan

Copy link
Copy Markdown
Contributor Author

@juimonen The PCM2 is working, but anything related to PCM3 will got the comp mux trigger wrong.

Add the missing pga token into this pipeline template.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add test tplg with MUX with 8ch

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add test tplg with MUX with 4ch

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
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.

2 participants