sof/src
Seppo Ingalsuo 7d0a0c673f Audio: Module adapter: Pass entire cdata to clients for all controls
This patch unifies all the control types (bytes, enum, switch).
Previously for binary control the fragment pointed to
cdata->data[0].data while for other control types the cdata
was passed via fragment. If fragment always points to cdata
the module adapter client can reliably check the control type
from cdata->cmd and handle other than binary control types.

Since the client components with binary control pass the
data to comp_data_blob_set() in data_blob.c the restore of
pointer fragment to cdata->data[0].data can be done there.

A check for SOF_CTRL_CMD_BINARY is added to comp_data_blob_set()
and comp_data_blob_get_cmd() to avoid wrong usage of controls.

With IPC4 in comp_data_blob_set() the use of
struct sof_ipc_ctrl_data pointer step is not done but the
fragment is treated as raw data payload without the header.
The generic support for other than binary control will be
solved later for IPC4.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2023-04-06 22:05:08 +01:00
..
arch testbench: strip out threading for pure xt-run usage. 2023-03-30 11:42:42 +01:00
audio Audio: Module adapter: Pass entire cdata to clients for all controls 2023-04-06 22:05:08 +01:00
debug Replace sof/debug/panic.h with rtos/panic.h 2023-02-21 15:34:47 +00:00
drivers Drivers: Host: Timer: Add dummy platform_dai_wallclock() function 2023-03-30 11:42:42 +01:00
idc IDC: set IDC task priority equal to that of the IPC task 2023-03-01 15:30:05 +00:00
include zephyr: Make CONFIG_DMA_DOMAIN no longer experimental 2023-04-05 12:31:46 +01:00
init scheduling: add Data Processing scheduler type 2023-03-14 14:00:28 +00:00
ipc zephyr: cavs: use zephyr pm, clk and dma glue 2023-03-27 12:37:26 +03:00
lib ams: handle alloc failures in ams_init() 2023-03-15 12:01:15 +02:00
library_manager Switch to using rtos/sof.h instead of sof/sof.h 2023-02-22 13:15:06 +00:00
logging zephyr: deprecate zephyr.h and use kernel.h header 2022-09-06 09:59:15 +01:00
math Math: library: Add an exponential function 2023-02-20 11:17:37 +00:00
platform imx: platform: Enable tracing for Zephyr 2023-04-05 12:31:46 +01:00
probe Switch to using rtos/task.h instead of sof/schedule/task.h 2023-02-24 14:28:49 +02:00
samples smart_amp_test: process same frames from all inputs 2023-04-04 19:54:09 +03:00
schedule schedule: fix address space mismatches 2023-03-17 12:24:45 +00:00
trace Switch to using rtos/task.h instead of sof/schedule/task.h 2023-02-24 14:28:49 +02:00
CMakeLists.txt library_manager: module_adapter: Enable build of library manager and IADK modules 2022-09-07 18:05:11 +01:00
Kconfig library_manager: module_adapter: Enable build of library manager and IADK modules 2022-09-07 18:05:11 +01:00
spinlock.c header: rtos: use rtos specific version of interrupt.h 2022-09-12 11:44:27 +01:00