Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools: Tune: Collection of patches to produce ALSA UCM friendly binary control blobs #9070

Merged
merged 6 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tools/tune/eq/example_fir_eq.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function example_fir_eq()
%% -------------------
%% Example 1: Loudness
%% -------------------
fn.bin = 'eq_fir_loudness.bin';
fn.bin = 'eq_fir_loudness.blob';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, I was a bit confused by .bin. It's much clearer now with .blob!

:-)))

fn.txt = 'eq_fir_loudness.txt';
fn.tplg1 = 'eq_fir_coef_loudness.m4';
fn.tplg2 = 'loudness.conf';
Expand Down Expand Up @@ -52,7 +52,7 @@ function example_fir_eq()
%% -------------------
%% Example 2: Mid boost
%% -------------------
fn.bin = 'eq_fir_mid.bin';
fn.bin = 'eq_fir_mid.blob';
fn.txt = 'eq_fir_mid.txt';
fn.tplg1 = 'eq_fir_coef_mid.m4';
fn.tplg2 = 'midboost.conf';
Expand All @@ -79,7 +79,7 @@ function example_fir_eq()
%% -------------------
%% Example 3: Flat EQ
%% -------------------
fn.bin = 'eq_fir_flat.bin';
fn.bin = 'eq_fir_flat.blob';
fn.txt = 'eq_fir_flat.txt';
fn.tplg1 = 'eq_fir_coef_flat.m4';
fn.tplg2 = 'flat.conf';
Expand All @@ -106,7 +106,7 @@ function example_fir_eq()
%% --------------------------
%% Example 4: Pass-through EQ
%% --------------------------
fn.bin = 'eq_fir_pass.bin';
fn.bin = 'eq_fir_pass.blob';
fn.txt = 'eq_fir_pass.txt';
fn.tplg1 = 'eq_fir_coef_pass.m4';
fn.tplg2 = 'passthrough.conf';
Expand Down
2 changes: 1 addition & 1 deletion tools/tune/eq/example_iir_bandsplit.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function example_iir_bandsplit()
%% --------------------------------------------------
%% Example: Band-split 2ch to 4ch low and high bands
%% --------------------------------------------------
blob_fn = fullfile(cpath, 'eq_iir_bandsplit.bin');
blob_fn = fullfile(cpath, 'eq_iir_bandsplit.blob');
alsa_fn = fullfile(cpath, 'eq_iir_bandsplit.txt');
tplg_fn = fullfile(tpath, 'eq_iir_bandsplit.m4');
comment = 'Bandsplit, created with example_iir_bandsplit.m';
Expand Down
14 changes: 7 additions & 7 deletions tools/tune/eq/example_iir_eq.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function example_iir_eq()
%% -------------------
%% Example 1: Loudness
%% -------------------
fn.bin = 'eq_iir_loudness.bin';
fn.bin = 'eq_iir_loudness.blob';
fn.txt = 'eq_iir_loudness.txt';
fn.tplg1 = 'eq_iir_coef_loudness.m4';
fn.tplg2 = 'loudness.conf';
Expand Down Expand Up @@ -52,7 +52,7 @@ function example_iir_eq()
%% ------------------------------------
%% Example 2: Bass boost
%% ------------------------------------
fn.bin = 'eq_iir_bassboost.bin';
fn.bin = 'eq_iir_bassboost.blob';
fn.txt = 'eq_iir_bassboost.txt';
fn.tplg1 = 'eq_iir_coef_bassboost.m4';
fn.tplg2 = 'bassboost.conf';
Expand All @@ -79,7 +79,7 @@ function example_iir_eq()
%% ------------------------------------
%% Example 3: Band-pass
%% ------------------------------------
fn.bin = 'eq_iir_bandpass.bin';
fn.bin = 'eq_iir_bandpass.blob';
fn.txt = 'eq_iir_bandpass.txt';
fn.tplg1 = 'eq_iir_coef_bandpass.m4';
fn.tplg2 = 'bandpass.conf';
Expand All @@ -106,7 +106,7 @@ function example_iir_eq()
%% -------------------
%% Example 4: Flat IIR
%% -------------------
fn.bin = 'eq_iir_flat.bin';
fn.bin = 'eq_iir_flat.blob';
fn.txt = 'eq_iir_flat.txt';
fn.tplg1 = 'eq_iir_coef_flat.m4';
fn.tplg2 = 'flat.conf';
Expand All @@ -133,7 +133,7 @@ function example_iir_eq()
%% ---------------------------
%% Example 5: Pass-through IIR
%% ---------------------------
fn.bin = 'eq_iir_pass.bin';
fn.bin = 'eq_iir_pass.blob';
fn.txt = 'eq_iir_pass.txt';
fn.tplg1 = 'eq_iir_coef_pass.m4';
fn.tplg2 = 'passthrough.conf';
Expand Down Expand Up @@ -178,7 +178,7 @@ function example_iir_eq()
fc, g, fsk);
comment = sprintf('%d Hz second order high-pass, gain %d dB, created with example_iir_eq.m', ...
fc, g);
fn.bin = sprintf('eq_iir_highpass_%dhz_%ddb_%dkhz.bin', fc, g, fsk);
fn.bin = sprintf('eq_iir_highpass_%dhz_%ddb_%dkhz.blob', fc, g, fsk);

%% Design IIR high-pass
eq_hp = hp_iir_eq(fs, fc, g);
Expand All @@ -205,7 +205,7 @@ function example_iir_eq()
%% Example 7: Merge previous desigs to single blob for use as presets
%% ------------------------------------------------------------------

fn.bin = 'eq_iir_bundle.bin';
fn.bin = 'eq_iir_bundle.blob';
fn.txt = 'eq_iir_bundle.txt';
fn.tplg1 = 'eq_iir_bundle.m4';
fn.tplg2 = 'bundle.conf';
Expand Down
4 changes: 2 additions & 2 deletions tools/tune/eq/example_spk_eq.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ function example_spk_eq()

%% File names
fir.txt = 'eq_fir_spk.txt';
fir.bin = 'eq_fir_spk.bin';
fir.bin = 'eq_fir_spk.blob';
fir.tplg1 = 'eq_fir_coef_spk.m4';
fir.tplg2 = 'example_speaker.conf';
iir.txt = 'eq_iir_spk.txt';
iir.bin = 'eq_iir_spk.bin';
iir.bin = 'eq_iir_spk.blob';
iir.tplg1 = 'eq_iir_coef_spk.m4';
iir.tplg2 = 'example_speaker.conf';

Expand Down