Commit Graph

10412 Commits

Author SHA1 Message Date
Curtis Malainey c5f00bfde7 audio: dsm: add stub for maxim dsm
Add a stub for the library so fuzzers and CI can compile the adapter

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-26 13:31:36 +01:00
Curtis Malainey 266a8f82b7 audio: rtnr: add stub for testing
Fuzzing and CI only stub library

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-26 13:31:36 +01:00
Curtis Malainey 3c6f2c1c63 audio: igo: add igo stub library
Added for CI and fuzz testing

Also remove exec permissions on related source files

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-26 13:31:36 +01:00
Curtis Malainey d28785ce73 audio: dts: Add library stub
This will allow the fuzzer to probe deeper into the code while also
allowing CI to build test the adapter.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-26 13:31:36 +01:00
Curtis Malainey 74a0e0f1fe audio: waves: add maxx stub
Add a stub for the Waves library for the fuzzer to build against. This
will also improve build tests in CI.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-26 13:31:36 +01:00
Curtis Malainey d4afff0112 audio: Kconfig: Add toplevel stub switch
Now that we have the ability to do a posix builds we can start working
towards a "make allyesconfig" equivalent. One limitation though is that
we cannot build what we don't have, in this case 3P blocks. This commit
adds a toplevel config for 3P adapters to switch to a stub file so they
can still have their builds validated. These will also be eventually
enabled in the fuzzers.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-26 13:31:36 +01:00
Marcin Szkudlinski 55d8f41066 Revert "Audio: SRC: Add safeguard against missing, wrong size or type init data"
This reverts commit 4849a71ada.

The commit has been merged with CI test fail
The test is now failing constantly making CI unusabe

Either CI test or the code requires changes before merging

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
2023-07-26 12:43:10 +01:00
Jyri Sarha 4849a71ada Audio: SRC: Add safeguard against missing, wrong size or type init data
In some error situations the configuration init_data may be NULL, and
in such a situations we should fail gracefully and not crash. Also adds
check that the IPC message is of correct size and of correct type.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
2023-07-25 11:00:21 -07:00
Seppo Ingalsuo 619477a186 App: Overlays: Add DRC component build to TGL, TGL-H, ACE
This patch adds CONFIG_COMP_DRC=y for IPC4 Intel platform
builds.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2023-07-25 15:48:08 +01:00
Seppo Ingalsuo 8d83e5b099 Audio: DRC: Sort header files include statements
The includes are sorted to level 4, 3, 2, 1 and
alphabetic sort order.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2023-07-25 15:48:08 +01:00
Seppo Ingalsuo 30a834a9d4 Audio: DRC: Add IPC4 support
This patch adds to component prepare() handling of IPC4 module
init parameters and set of sink parameters with audio format
from there.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2023-07-25 15:48:08 +01:00
Seppo Ingalsuo 5856042024 Audio: DRC: Convert component to module adapter API
This patch replaces legacy component API with new module adapter
API. There are no changes to functionality.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2023-07-25 15:48:08 +01:00
Flavio Ceolin 07455c572e zephyr: s/MP_NUM_CPUS/MP_MAX_NUM_CPUS/
Zephyr uses MP_MAX_NUM_CPUS internally to represent the
number of cores available and consequently to allocate
resources. It is even expected, and checked through assert,
that these two symbols have the same value. Use different
value can lead to an undesired behavior, so lets use
MP_MAX_NUM_CPUS.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-07-25 15:27:05 +01:00
SaiSurya, Ch cbee96c9bb scripts: add support for vangogh platform
Add support for Vangogh platform in build scripts.

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya, Ch b1683ec1d6 amd: vangogh: add build support for vangogh
Add build support to enable vangogh platform.

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya Ch ea233be4a7 tools: topology: add vangogh topology support
Add vangogh platform topology for nau8821,max988388.

Signed-off-by: SaiSurya Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya, Ch da39550a4f src: arch: xtensa: configs: add defconfig
Add defconfig for vangogh platform.

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya, Ch 90ac563cee Add HS I2S DMA capabilities.
Define HS I2S DMA capabilities.

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya, Ch d033181551 drivers: amd: vangogh: add drivers support for vangogh platform
Add drivers support for vangogh platform.

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya, Ch ea546c933b platform: Add vangogh platform support
Add vangogh platform support

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya, Ch a8967f784c platform: amd: create common platform code for different amd platforms
- Renoir and rembrandt have the common functionality.
   Moving the common code to common folder as per the recommendation from
   maintainers and to support future platform's common functionality.
 - Remove unused code.

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
SaiSurya, Ch 13fc45e8fa drivers: amd: create common driver code for different amd platforms
- Renoir and Rembrandt have the common functionality.
   Moving the common code to common folder as per the recommendation from
   maintainers and to support future platform's common functionality.
 - Remove unused code.

Signed-off-by: SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-25 15:00:03 +01:00
Adrian Warecki a38458dd22 pcm_converter: Add support for U8 <-> S32 conversion
Added functions that convert between 8-bit unsigned and 32-bit signed
format.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-07-24 16:53:20 +01:00
Adrian Warecki 404b0760a6 format: 8-bit saturation inline function
Added a new inline function which saturates 8-bit signed value.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-07-24 16:53:20 +01:00
Adrian Warecki 72d19a7030 pcm_converter: Add support for copying 8-bit formats
Added support for copying 8-bit unsigned probes in 8 and 16 bit containers.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-07-24 16:53:20 +01:00
Adrian Warecki a0e2d961ed format: stream: Add support for unsigned 8 bit format
Defined a new frame type SOF_IPC_FRAME_U8 for 8-bit unsigned samples. Added
support for a new format to stream format conversion function and
get_sample_bytes function.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-07-24 16:53:20 +01:00
Adrian Warecki 722d86301a cmocka: volume: Add default case to handle unsupported formats
The switch supporting various sample formats was missing a default handler,
which caused compilation errors when enabling/adding a new format that is
not supported.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-07-24 16:53:20 +01:00
Adrian Warecki a60492e848 cmocka: selector: Add default case to handle unsupported formats
The switch supporting various sample formats was missing a default handler,
which caused compilation errors when enabling/adding a new format that is
not supported.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-07-24 16:53:20 +01:00
Yong Zhi a6de3b1602 topology2: cavs-rt5682: Change ECHO_REF_PCM_ID to 29 to avoid conflict
Fix tplgtool2.py caught error with sof-mtl-max98357a-rt5682.tplg

ERROR: Multiple pcm id=27: 2 (['EchoRef', 'DMIC0 RTC AEC'])

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
2023-07-24 16:38:34 +01:00
Curtis Malainey fbde1dccf8 samples: Fix zephyr config
Samples should not be built without the kconfig option

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-24 12:03:21 +03:00
Sathya Prakash M R 214f98378f smart amp : Do not use DYNAMIC topology
DYNAMIC topology should not be used for pipeline with volatile
Kcontrols.
Hence ensuring the flag is un defined before processing
smart amp related PCM and DAI configs

Suggested-by: Sridharan, Ranjani <ranjani.sridharan@linux.intel.com>
Signed-off-by: Sathya Prakash M R <sathya.prakash.m.r@intel.com>
2023-07-20 22:10:43 +03:00
Chao Song fc1ddf95d4 topology2: fix conditional inclusion of DMIC snippets for nocodec
DMIC now is controlled by two variables, PASSHTHROUGH
and NUM_DMICS, we should consider the values for both
variables to decide the inclusion of DMIC pipelines,
routes, widgets, etc.

Fixes: #7931

Signed-off-by: Chao Song <chao.song@linux.intel.com>
2023-07-20 09:57:12 -07:00
Peter Ujfalusi 1411dd6607 board: intel_adsp_cavs25_tglh: Disable DTRACE
DTRACE is IPC3 only, it is not used anymore.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
2023-07-20 12:12:46 +03:00
Peter Ujfalusi df5576872f board: intel_adsp_cavs25: Disable DTRACE
DTRACE is IPC3 only, it is not used anymore.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
2023-07-20 12:12:46 +03:00
Curtis Malainey 011de4a094 audio: dsm: fix include path
Header is not in the include directory, add inclusion directive

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-19 14:21:37 +03:00
Curtis Malainey 35fe98f4d9 audio: dsm: remove dependency on CAVS
If there is a compat issue it will show up at build time, also it blocks
stubbing out the library, so remove it.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-19 14:21:37 +03:00
Daniel Baluta 95874fd8e2 ipc3: helper: Fix mixer scenario
With mixer after commit 21ed10abf8 ("ipc3: helper: Do not silently
accept unrecognized component type in IPC") we get the following error

dma-trace  src/ipc/ipc3/helper.c:333  ERROR comp_new(): component type not recognized

This happens because now we return an error from comp_specific_builder() with the default
case.

Fix this by adding a case for mixer.

Fixes: 21ed10abf8 ("ipc3: helper: Do not silently accept unrecognized component type in IPC")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2023-07-18 09:26:08 -07:00
Curtis Malainey 803f61323c audio: constify buffer_fmt get args
we aren't modifying it, so make it const

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-18 14:58:45 +03:00
Jyri Sarha 21ed10abf8 ipc3: helper: Do not silently accept unrecognized component type in IPC
Return an error code from comp_specific_builder() if the component
type is not recognized, instead of just silently ignoring the error.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
2023-07-17 10:37:52 +03:00
Curtis Malainey be2c2fc000 audio: rtnr: add headers for type dependencies
many of these headers don't include what they actually use, correct by
including

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-17 10:23:51 +03:00
Curtis Malainey d9f6d07186 audio: rtnr: partial revert of 589df2aea4
The original commit failed to take into account that the assigned stream
was an adapter (not audio_stream) therefore revert in this file since
the adapter is unchanged.

Fixes: 589df2aea4 ("buffer: don't access stream internals")
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-17 10:23:51 +03:00
Curtis Malainey cdb115f58e audio: rtnr: fix function arg attributes
constify RO params

Fixes: 10f6dd0d7b ("module-adapter: add a constant data pointer")
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-17 10:23:51 +03:00
SaiSurya Ch 2475094eef Dockerfile: add AMD/Vangogh gcc toolchain
Add AMD/Vangogh gcc toolchain.

Signed-off-by: SaiSurya Ch <saisurya.chakkaveeravenkatanaga@amd.com>
2023-07-14 12:50:49 +01:00
Andrula Song 21b637e16a Audio: Volume: Fix the HiFi4 version peak meter update error
Fix the HiFi4 version of volume processing peak meter update
error.

Signed-off-by: Andrula Song <andrula.song@intel.com>
2023-07-14 12:38:29 +01:00
Andrula Song b27515eb2f Audio: Normalize the 16/16 bit format peak meter to 32 bits.
Shift left the peak meter of 16/16 bit format 16 bits to normalize
this value to 32 bits to meet the CI test requirement.

Signed-off-by: Andrula Song <andrula.song@intel.com>
2023-07-14 12:38:29 +01:00
Curtis Malainey 6b46b8d7d9 audio: drc: fix missing header
Also remove from incorporated C file.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-14 12:36:48 +01:00
Curtis Malainey 6b8acc52d9 audio: dts: fix buffer_fmt lookup
Missed conversion

Fixes: 90828e2305 ("buffer: external modules use API to access buffer_fmt")
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-14 12:33:42 +01:00
Curtis Malainey 48620f7a90 audio: dts: Fix header pathing
DTS headers have been publish, don't use local includes and don't modify
include paths for no reason.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-14 12:33:42 +01:00
Curtis Malainey 9d51b5c10f audio: delete switch component
mostly not implemented and hasn't been meaningfully touched in > 3 yr.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2023-07-14 12:33:10 +01:00
Yong Zhi 47cb612379 topology2: speaker-echo-ref.conf: Use macros for PCM ID
Use macro to avoid hardcoding of the PCM Id.

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
2023-07-14 14:29:12 +03:00