sof icon indicating copy to clipboard operation
sof copied to clipboard

[FEATURE] topology2: nocodec: remove redundant copiers

Open plbossart opened this issue 1 year ago • 9 comments

Is your feature request related to a problem? Please describe. The nocodec topology exposes redundant intermediate copiers on the SSP input path

sof-mtl-nocodec Screenshot from 2024-03-20 18-04-54

Describe the solution you'd like Removal of those intermediate useless copiers.

plbossart avatar Mar 21 '24 16:03 plbossart

@marcinszkudlinski @mwasko do other OSes use the intermediate copiers ? i.e. safe to remove for compatibility reasons. Thanks !

lgirdwood avatar Apr 17 '24 12:04 lgirdwood

FYI @ujfalusi @singalsu -- in context of the "capture pipeline with branches" discussion.

kv2019i avatar May 28 '24 16:05 kv2019i

@marcinszkudlinski @mwasko do other OSes use the intermediate copiers ? i.e. safe to remove for compatibility reasons. Thanks !

It seems that these additional copiers were added by Bard in change : https://github.com/thesofproject/sof/commit/f6f9b62d5a17a416d203ae531ae652ae131837c2 . It seems that one potential problem they can solve is perhaps different formats for gain type modules?

dnikodem avatar Jun 03 '24 07:06 dnikodem

fwiw, in nocodec configurations we have fixed FE PCM format for all streams and while the modules in paths most of the time have two formats supported, one of them is the (static) FE format. This works around the issue that we cannot handle a module copier which does branching correctly. The format cannot be changed at the branch, if there is need for a change, it has to be done on the branch itself after the module copier.

ujfalusi avatar Jun 03 '24 08:06 ujfalusi

Stable branched for 2.10, nobody assigned to work on this, so moving this to 2.11.

kv2019i avatar Jun 05 '24 08:06 kv2019i

No owner -> v2.12

kv2019i avatar Sep 05 '24 11:09 kv2019i

Feature cutoff for v2.12. No owner in 2.12 cycle either, so clearing the milestone for now.

kv2019i avatar Dec 13 '24 11:12 kv2019i

@singalsu is this something you can look at in general (just a quick check)- if its only impacts SSP paths then we can de-prioritize and close. If it impacts other endpoints like SDW or display then we should schedule. Thanks !

lgirdwood avatar Feb 12 '25 14:02 lgirdwood

@singalsu is this something you can look at in general (just a quick check)- if its only impacts SSP paths then we can de-prioritize and close. If it impacts other endpoints like SDW or display then we should schedule. Thanks !

The SSP nocodec case looks clear, the module-copier looks redundant. But we have one similar extra module-copier in Chromebook topologies with mic input to google-rtc-aec. Need to check if it performs format conversion. The parts of topologies should be not shared (look quite different -- didn't check yet the code) so they can be addressed separately. Since this issue is about nocodec, can be de-priorised and done when we have more time.

singalsu avatar Feb 13 '25 13:02 singalsu