mirror of https://github.com/thesofproject/sof.git
topology: pipe-demux-eq-iir-playback: change slot mapping
Change the default slot mapping from L_lo-L_hi-R_lo-R_hi to L_lo-R_lo-L_hi-R_hi so slot 0/1 is for woofer and slot 2/3 is for tweeter. Signed-off-by: Brent Lu <brent.lu@intel.com>
This commit is contained in:
parent
771c2bb318
commit
8ed1e90b5c
|
@ -31,9 +31,9 @@ dnl I.e. row index is the input channel, 1 means it is copied to
|
|||
dnl corresponding output channel (column index), 0 means it is discarded.
|
||||
dnl There's a separate matrix for all outputs.
|
||||
define(matrix1, `ROUTE_MATRIX(1,
|
||||
`BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
|
|
|
@ -31,9 +31,9 @@ dnl I.e. row index is the input channel, 1 means it is copied to
|
|||
dnl corresponding output channel (column index), 0 means it is discarded.
|
||||
dnl There's a separate matrix for all outputs.
|
||||
define(matrix1, `ROUTE_MATRIX(1,
|
||||
`BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
`BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,0)',
|
||||
|
|
|
@ -23,17 +23,17 @@ C_CONTROLBYTES(concat(`DEMUX', PIPELINE_ID), PIPELINE_ID,
|
|||
define(DEF_EQIIR_COEF, concat(`eqiir_coef_', PIPELINE_ID))
|
||||
define(DEF_EQIIR_PRIV, concat(`eqiir_priv_', PIPELINE_ID))
|
||||
|
||||
# Bandsplit, created with example_iir_bandsplit.m 25-Aug-2021
|
||||
# Bandsplit, created with example_iir_bandsplit.m 26-Oct-2021
|
||||
CONTROLBYTES_PRIV(DEF_EQIIR_PRIV,
|
||||
` bytes "0x53,0x4f,0x46,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0xb0,0x00,0x00,0x00,0x00,0x30,0x01,0x03,'
|
||||
` 0xb0,0x00,0x00,0x00,0x01,0x20,0x01,0x03,'
|
||||
` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0xb0,0x00,0x00,0x00,0x04,0x00,0x00,0x00,'
|
||||
` 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,'
|
||||
` 0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,'
|
||||
` 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
` 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,'
|
||||
|
|
|
@ -32,7 +32,7 @@ bq_hi = eq_iir_blob_quant(eq_hi.p_z, eq_hi.p_p, eq_hi.p_k);
|
|||
|
||||
%% Build blob
|
||||
channels_in_config = 4; % Setup max 4 channels EQ
|
||||
assign_response = [0 1 0 1]; % Order: lo, hi, lo, hi
|
||||
assign_response = [0 0 1 1]; % Order: lo, lo, hi, hi
|
||||
num_responses = 2; % Two responses: lo, hi
|
||||
bm = eq_iir_blob_merge(channels_in_config, ...
|
||||
num_responses, ...
|
||||
|
|
Loading…
Reference in New Issue