Skip to content

audio: eq_iir: tune: accept multiple measurement files in sof_ucm2_eq…#10987

Open
singalsu wants to merge 1 commit into
thesofproject:mainfrom
singalsu:eqiir_tune_ucm2_eq_add_multiple_meas
Open

audio: eq_iir: tune: accept multiple measurement files in sof_ucm2_eq…#10987
singalsu wants to merge 1 commit into
thesofproject:mainfrom
singalsu:eqiir_tune_ucm2_eq_add_multiple_meas

Conversation

@singalsu

Copy link
Copy Markdown
Collaborator

…_generate

Allow the meas_file argument to be a cell array of paths in addition to a single string. Each file is still loaded and column-averaged the same way it was before; the per-file traces are then averaged together into the single response the IIR + FIR fit consumes.

All files must share the exact same frequency grid. A mismatch aborts before any fit is attempted with an error that names both the offending file and the reference (first) file, so it is obvious which measurement was captured on a different grid.

The main use case is a series of measurements taken with the microphone at different positions in front of the speaker, so the tuning target is the spatial average of those positions instead of the exact frequency response at one arbitrary spot.

@singalsu singalsu marked this pull request as ready for review July 10, 2026 11:08
Copilot AI review requested due to automatic review settings July 10, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the SOF UCM2 EQ tuning generator to support averaging multiple measurement captures into a single response curve before running the existing IIR+FIR fit, enabling spatial averaging across microphone positions.

Changes:

  • Allow meas_file to be provided as a cell array of file paths in addition to a single path string.
  • Load each measurement independently, average multi-column traces per file, then average across files.
  • Enforce identical frequency grids across all provided measurement files and error out early on mismatch.

Comment thread src/audio/eq_iir/tune/sof_ucm2_eq_generate.m
@singalsu singalsu force-pushed the eqiir_tune_ucm2_eq_add_multiple_meas branch from 520b6bd to 1e0e0c4 Compare July 10, 2026 11:24
@singalsu singalsu requested a review from Copilot July 10, 2026 11:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/audio/eq_iir/tune/sof_ucm2_eq_generate.m
…_generate

Allow the meas_file argument to be a cell array of paths in addition to
a single string. Each file is still loaded and column-averaged the same
way it was before; the per-file traces are then averaged together into
the single response the IIR + FIR fit consumes.

All files must share the exact same frequency grid. A mismatch aborts
before any fit is attempted with an error that names both the offending
file and the reference (first) file, so it is obvious which measurement
was captured on a different grid.

The main use case is a series of measurements taken with the microphone
at different positions in front of the speaker, so the tuning target is
the spatial average of those positions instead of the exact frequency
response at one arbitrary spot.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu force-pushed the eqiir_tune_ucm2_eq_add_multiple_meas branch from 1e0e0c4 to 4f31ce1 Compare July 10, 2026 11:54
@singalsu singalsu requested a review from Copilot July 10, 2026 11:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@singalsu singalsu requested review from kv2019i and lgirdwood July 10, 2026 12:06
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.

3 participants