This patch extends the allowed sample rate range to 8 - 192 kHz, and
channels count to 1 - 16. Previously only 48 kHz and 2 - 4 channels was
allowed.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch increases the SRC source buffer to contain 5 periods of data
(measured for 1 ms @ 48 kHz ). It fixes the issue in 176.4 kHz to 48 kHz
playback conversion that the pipeline freezes with insufficient available
data in source buffer for SRC to convert and too little free in buffer
for host to fill another 48 frames.
176.4 kHz playback is currently the largest buffer size consumer due
to non-steady in/out rate. The higher rate conversion 192 kHz to 48 kHz
can operate with smaller size buffer due to steady in/out rate.
Note: This has been only simulated in the host test bench since SRC
playback does not run currently in real devices due to another issue.
However since buffers simulation is accurate this should be a real issue.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
The topology files naming has been updated to include mclk-N so it
needs to be added here as well for the script src_run.sh to work.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch provides scripts to measure such performance as THD+N,
dynamic range, frequency response, gain, etc.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch provides tests for sample rate converter (SRC) SOF component.
The tests are executed via the SOF host (x86) version test executable and
the SRC component library.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch modifies the test topology generator to add dmic topologies
with pre-defined PDM controller configurations, sample rates and
formats.
It also modifies the DMIC_CONFIG macro to get the number of
active pdm from the pdm config.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Add some pre-defined PDM controller configs that sets the
number of active controllers and the corresponding
pdm tuples.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Rename SAMPLE_BITS macro to a more generic CONFIG_DATA macro for SSP
to also include the mclk id.
Also modify users of the macro with the new name.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Add SAMPLE_RATE token for tone comp.
Include it in tone definition and set it from the test pipeline definition.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Some platforms might have more than one MCLK's exposed. Add a token
that will allow specifying the MCLK ID to be used in such cases.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This patch adds the scripts src_std_int32.m and src_tiny_int16.m those
were used to create the conversions matrices for the default and tiny
profiles. The scripts call the included src_generate function that
does the task with help from the filter design and coefficients
export utilities.
The quality and resources consumption of SRC can be customized with
this tool.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch adds the DMIC config definition and the DMIC
config entry in DAI config.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This patch makes changes to DAI config in topology to separate out
SSP specific params from common params in preparation for other
DAI types coming soon.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This patch makes the following changes to make way for handling
different DAI types in tplg build script:
1. Define the test DAI type while processing m4 files
2. DAI format and DAI port might be relevant for other types of DAI's.
So use generic TEST_DAI_PORT and TEST_DAI_FORMAT instead of
TEST_SSP_PORT TEST_SSP_FORMAT
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
When using xargs, the last topology file while batch processing alsatplg
doesn't get compiled properly.
Also remove a stray ; in the script.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Otherwise, the channels may be used up when pipeline number > 8.
Todo: remove dmac definition from tplg, just allocate them inside
firmware.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>