Repository navigation
Comparing changes
Open a pull request
base repository: thesofproject/sof-utils
base: main
head repository: thesofproject/sof-utils
compare: feat/sof-builder-tplg-text-editor
- 5 commits
- 8 files changed
- 1 contributor
Commits on Dec 4, 2026
-
sof-builder: Fix platform feature .conf parsing and IncludeByKey
- parser.py: Expand inline IncludeByKey blocks via _expand_ast_children_inline() and _match_include_by_key(), evaluate integer arithmetic in _eval_int_arith(), add _has_topology_objects() so files with both Class definitions and Object blocks render pipelines cleanly, and finalize nested pipeline widgets/routes. - model.py, window.py: Support passing a .conf file path directly on the CLI (discovering the enclosing topology2 workspace root in discover_topology2_dir() and opening the file in a tab on startup). Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Configuration menu - View commit details
-
Copy full SHA for 9aa9053 - Browse repository at this point
Copy the full SHA 9aa9053View commit details -
sof-builder: Add binary .tplg open, ABI matching, and full export
- Parse ALSA .tplg manifest headers and SOF ABI version bytes (IPC4 <3H> and IPC3 <3B>) in tplg_ipc4.py and tplg_binary.py. - Discover local topology2 checkouts by ABI version and fall back to read-only git archive snapshots cached under ~/.cache/sof-builder/versioned-sources/. - Identify matching .conf source / CMake targets with structural & parameter diffing, or decompile binary pipelines, widgets, routes, controls, and PCMs directly into an editable GraphViewModel. - Preserve decoded binary SOF ABI bytes in compiler.py and serialize multi-pipeline topologies to compilable .conf in serializer.py. - Add banner switching, binary/source open flows, and CLI .tplg loading in window.py. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Configuration menu - View commit details
-
Copy full SHA for 28c74d2 - Browse repository at this point
Copy the full SHA 28c74d2View commit details -
sof-builder: Add text editor font/size, find/replace, gutter, Edit menu
- Add monospace font family dropdown, point-size SpinButton, Wrap toggle, and Ctrl++/Ctrl+-/Ctrl+0/Ctrl+Scroll zoom synced across tabs and persisted in ui_state.json. - Attach a DrawingArea left line-number gutter synced with scroll and font metrics, plus current-line and matching bracket highlights preserved across syntax re-colorization. - Add collapsible Find/Replace bar (Ctrl+F, Ctrl+H, F3/Shift+F3, regex/case toggles, atomic Replace All) and Go-to-Line bar (Ctrl+G). - Add auto-indent on Return, multi-line Tab/Shift+Tab indent/outdent, Ctrl+/ line comment toggling, Ctrl+D duplicate line, Ctrl+Shift+K delete line, smart Home, and pair editing. - Route Edit menu Undo/Redo/Select All/Cut/Copy/Paste/Delete and Find/Go-to-Line/Zoom actions to TopologyTextEditor in text mode. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Configuration menu - View commit details
-
Copy full SHA for 838d998 - Browse repository at this point
Copy the full SHA 838d998View commit details -
sof-builder: Address PR #9 review comments
- parser.py, model.py: Isolate TplgClassDef copies via TplgClassDef.clone() before _resolve_pipeline_inheritance(), descend through non-Class conditional blocks in _has_topology_objects(), normalize parser DAI ConfigNode keys, and restore persisted # @sof-builder-manifest metadata. - tplg_binary.py, tplg_ipc4.py: Normalize undecoded zero SOF ABI fields to None, mark extracted git snapshots read-only with is_versioned_snapshot_path(), compare input/output audio formats in diff_binary_vs_source(), require all fingerprint sets and zero param_diffs for is_exact, fix DAI/pipeline DAPM direction hints, and restore decoded gain/src/asrc/component tokens. - serializer.py: Prefer decoded bytes_hex over auto-default included_param_file, support parser-generated Object.PCM.pcm keys and quoted pcm_caps formats/rates, round-trip binary manifest metadata comments, and serialize Object.Dai.* sections. - text_editor.py: Invalidate cached _search_matches immediately on buffer edits and match regex replace_current() against full buffer context for lookbehinds and backreferences. - window.py: Guard Save against overwriting read-only git snapshots, prevent auto source substitution on format mismatches, restore tplg:source:/tplg:bin: tabs via .tplg path and mode, abort exports/compiles when text commit fails, and preserve binary provenance across text commits. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Configuration menu - View commit details
-
Copy full SHA for c66a15c - Browse repository at this point
Copy the full SHA c66a15cView commit details -
sof-builder: Address follow-up PR #9 review comments
- serializer.py, parser.py: Check prefer_full_topology before the disk-source fast path, insert/refresh # @sof-builder-manifest: headers across all save paths without duplicating stale lines, serialize CombineArrays pin audio formats and primitive array elements cleanly, preserve nested Object.Widget.pipeline scheduler settings on reparse, emit DAI default_hw_config_id, and unconditionally refresh DAI includes (SAI/UAOL). - tplg_binary.py: Add missing Any import, preserve sample_type and interleaving_style on decoded pin formats, swap reversed DAI_IN/DAI_OUT direction hints, reconstruct all hw_configs alongside default_hw_config_id, and compare gain/SRC/ASRC/kcontrol and bytes-control parameters in diff_binary_vs_source(). - window.py: Add missing Set import, prevent auto source substitution when param_diffs is non-empty, insert/refresh manifest metadata when saving raw text buffers, track and restore resolved workspace and compiler per GraphTabPage, and run .tplg export compilation asynchronously via GLib.idle_add. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Configuration menu - View commit details
-
Copy full SHA for 8c4315d - Browse repository at this point
Copy the full SHA 8c4315dView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...feat/sof-builder-tplg-text-editor