Repository navigation
sof-ucm: Align PCM and transducer columns to minimize edge crossings - #13
Merged
Merged
Conversation
- graph_builder.py: Prevent fe_stream_to_pcm_nid from matching physical card transducer widgets, and add _demote_non_terminal_codec_endpoints() so intermediate codec pins (rt722 HP/SPK/MIC2, dmic-codec DMic) stay in the center Codec zone while only terminal physical transducers occupy the right Endpoint column. - layout.py: Group middle lanes sharing a downstream Endpoint, infer lane playback vs. capture from pipelines/PCMs/endpoints, add 2-pass barycenter column sorting plus ALAP pulling for root codec supply widgets (e.g. SDCA PDEs), and sort/pack both the left PCM column and right Endpoint column opposite their connected middle nodes. - tests/test_tplg_and_graph.py: Add unit test test_pcm_and_endpoint_columns_align_without_crossings covering codec-pin demotion, Deepbuffer/PCM31 grouping, and playback/capture vertical ordering. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
lgirdwood
force-pushed
the
fix/sof-ucm-column-alignment
branch
from
December 5, 2026 19:14
ffd0ca6 to
9bc6b35
Compare
lgirdwood
marked this pull request as ready for review
December 5, 2026 19:15
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes left PCM column ordering, right physical transducer column alignment, and SoundWire/codec endpoint classification in
sof-ucm(observed onladybirdsof-soundwire):graph_builder.py):cardDAPM widgets to DSP FE PCM stream stubs infe_stream_to_pcm_nid._demote_non_terminal_codec_endpoints()so intermediate codec pins (rt722 HP,rt722 SPK,rt722 MIC2,dmic-codec:DMic) stay in the middleCodeczone instead of colliding in the rightEndpointcolumn alongside physical card transducers (Headphone,Speaker,Headset Mic,SoC DMIC).layout.py):HDMI 1/2/3/hifi4 -> Digital Out HDMI), classify playback vs. capture lanes from DSP pipelines/PCMs/endpoints, run 2-pass barycenter column sorting, and pull non-PCM root codec supply nodes (rt722 PDE *) ALAP next to their consumer widgets.PCMcolumn and rightEndpointcolumn (_pack_column_near_targets()) directly across from their connected middle nodes.tests/test_tplg_and_graph.py):test_pcm_and_endpoint_columns_align_without_crossings.Testing
make -C /home/lrg/work/sof-utils check: passed (py_compileclean acrosssof-builder,sof-ucm,sof-top;12/12sof-ucmunit tests passed in0.821s).ladybird(--ssh ladybird --card 0 --render-png, 149 nodes, 93 edges).