mirror of https://github.com/thesofproject/sof.git
7d0a0c673f
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> |
||
---|---|---|
.github | ||
app | ||
doc | ||
installer | ||
keys | ||
rimage@9643a986dd | ||
scripts | ||
smex | ||
src | ||
submanifests | ||
test | ||
third_party/include | ||
tools | ||
xtos/include | ||
zephyr | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
CMakeLists.txt | ||
CODEOWNERS | ||
Kconfig | ||
Kconfig.sof | ||
Kconfig.xtos-build | ||
Kconfig.xtos-dbg | ||
Kconfig.zephyr-log | ||
LICENCE | ||
README.md | ||
west.yml |
README.md
Sound Open Firmware
Status
Documentation
See docs
Running the tests
See unit testing documentation
Deployment
TODO: Add additional notes about how to deploy this on a live system
Contributing
See Contributing to the Project
License
This project is licensed under the BSD Clause 3 - see the LICENCE file for details