Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thesofproject/sof-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e24b8f6
Choose a base ref
...
head repository: thesofproject/sof-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8c4315d
Choose a head ref
  • 5 commits
  • 8 files changed
  • 1 contributor

Commits on Dec 4, 2026

  1. 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>
    lrgirdwo committed Dec 4, 2026
    Configuration menu
    Copy the full SHA
    9aa9053 View commit details
    Browse the repository at this point in the history
  2. 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>
    lrgirdwo committed Dec 4, 2026
    Configuration menu
    Copy the full SHA
    28c74d2 View commit details
    Browse the repository at this point in the history
  3. 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>
    lrgirdwo committed Dec 4, 2026
    Configuration menu
    Copy the full SHA
    838d998 View commit details
    Browse the repository at this point in the history
  4. 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>
    lrgirdwo committed Dec 4, 2026
    Configuration menu
    Copy the full SHA
    c66a15c View commit details
    Browse the repository at this point in the history
  5. 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>
    lrgirdwo committed Dec 4, 2026
    Configuration menu
    Copy the full SHA
    8c4315d View commit details
    Browse the repository at this point in the history
Loading