By default the input and output sample rates for the testbench
will be calculated from the frames_per_sched and deadline. But
this patch makes it possible for it to be overridden in preparation
for support for SRC based pipelines.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Update testbench with a table containing the shared library handles
for all components. Currently, we support only volume and src
components. More component support will be added in future.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Moves L1 cache operations from other components to buffer.
Right now handles buffers connected to DMAs.
Will handle connections to other cores in the future.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
Moves inclusion of PLATFORM_INCDIR before SOF_INCDIR.
This temporarily fixes wrong inclusion of core-isa.h from
xtensa-root directory during build with gcc. It's the best
solution for now, because that unwanted header comes from
Xtensa Newlib C library, which will take much more time to change.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
The 256 Bytes block are used frequently for component new, 16 is
not enough for GP-MRB multiple SSPs/pipelines support, here expand
it to be 64.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Fix frequenyc to 997Hz and gain to -20dB to match AES17 single
tone test case requirement
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
period bytes depends on the frame_fmt and the number of channels
set in topology. So fix calculation accordingly.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This patch adds the get() handler to respond to requests for the current
tone state.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Hostless pipelines such as the tone pipeline do not need
host page table while setting up pcm params. Walk pipeline
in both directions to ensure it is hostless.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Scales down host dma l1 exit times, since they were defined
for Fast RING clock, but implementation uses XTAL based timer.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
Clear memory windows after initialization on APL and CNL.
They were recently moved to the beginning of HPSRAM and since
that area is also used by ROM, there was some unneeded data left.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This patch enables the 1, 2, and 4ch topologies usage with S32_LE and
S16_LE sample formats. The DMA burst length is also changed to maximum
(8) to fully utilize the DMIC FIFO.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Extracts number of available cores to platform/platcfg.h.
This header is asm friendly and can be easily used in xtos.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This patch adds initial empty implementation of runtime power management.
It is based on linux kernel implementation and will be developed
in the future.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
math: ceil_divide - Check the signs of the dividant and divisor before rounding
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
add the 8-channel feature for the capture function
for apl-gpmrb platform.
Signed-off-by: Wu Zhigang <zhigang.wu@linux.intel.com>
Reviewed-by: Keyon Jie <yang.jie@linux.intel.com>
The loud DC thump sound plus the impulse like noises in the beginning of
capture can be mitigated with the gain ramp and muted filters start.
The gain ramp rate and CIC and FIR unmute delays parameters can be
adjusted from dmic.h header file.
Note: The logarithmic ramp length is now hardwired to 300 us for the 1 ms
update rate via macro LOGRAMP_GM in dmic.c. A larger value will shorten the
ramp. It will be replaced later by topology passed ramp characteristic.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Depending on HW configuration for two PDM controllers or less the
IPM bit field value calculation need to be done like for HW version 1.
The new style IPM bit field value calculation is used for three or four
PDM controllers.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This aligns the HW versions 1 and 2 code and avoids a build error about
unused variables.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
The IPM bit field should be set to the number of used stereo controllers.
This patch fixes the issue that pdm[0] got counted twice.
Signed-off-by: Sathish K. Kuttan <sathish.k.kuttan@intel.com>