Go to file
Laurentiu Mihalcea 9831a9ded7 audio: dai-zephyr: reset DMA buffer cursors on TRIGGER_RELEASE
On NXP platforms, stopping the DMAC and then re-configuring it
leads to the internal DMA buffer cursors being reset. Leaving the
SOF DMA buffer cursors in the same state means the DMA driver
and SOF may potentially end up with two different views of the
same buffer (from the cursors' point of view). This in, turn,
may lead to the DAI consuming stale data because of the values of
"free" and "pending" queried from dma_reload() stopping
dai_common_copy() from copying new data. To fix this, reset the
read and write cursors of the DMA buffer from SOF side. This
way, both SOF and the DMA driver will have the same initial
view of the DMA buffer cursors.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-02-23 11:29:51 +02:00
.github installer: replace imx8 with imx8m 2024-02-16 21:48:10 +02:00
app overlays: dts: use prebuilt library for production 2024-02-19 14:32:12 +00:00
doc header: rtos: decouple headers into rtos specific directories. 2022-08-31 12:01:07 +01:00
installer installer: replace imx8 with imx8m 2024-02-16 21:48:10 +02:00
keys Move signing key pair from rimage/ up one level 2020-05-13 10:16:04 +01:00
lmdk lmdk: dummy: Remove unused api version definitions 2024-02-19 14:31:09 +00:00
posix/include src: panic: Modify the signature of __panic() 2024-02-16 21:45:27 +02:00
scripts scripts: xtensa-build-all: remove imx8/imx8x 2024-02-16 21:48:10 +02:00
smex smex: elf: fixed error handling from file operation 2023-12-11 17:03:31 +02:00
src audio: dai-zephyr: reset DMA buffer cursors on TRIGGER_RELEASE 2024-02-23 11:29:51 +02:00
submanifests sof-ci-jenkins: zephyr-override-template: Whitelist nxp_hal 2023-06-28 13:38:59 +03:00
test src: panic: Modify the signature of __panic() 2024-02-16 21:45:27 +02:00
third_party/include module_adapter: dts: update the path to include DTS header files 2023-12-01 16:20:29 +02:00
tools topology2: add topology for imx8MP 2024-02-21 14:10:27 +02:00
xtos/include src: panic: Modify the signature of __panic() 2024-02-16 21:45:27 +02:00
zephyr zephyr/docker-build.sh: explain why we autodetect with FindZephyr-sdk 2024-02-19 14:20:07 +00:00
.gitignore rimage: move everything down to subdir tools/rimage/, prepare move to sof 2023-10-05 10:18:11 -07:00
.gitmodules Delete old rimage submodule and old rimage west module 2023-10-09 13:08:07 -07:00
.travis.yml .github: replace HAVE_CONFIG KConfig hack with an override 2021-03-23 12:17:22 +00:00
CMakeLists.txt cmake: switch XTOS build to sof/tools/rimage 2023-10-09 13:06:12 -07:00
CODEOWNERS CODEOWNERS: add kv2019i to the list of default owners 2023-09-01 09:23:17 +01:00
Kconfig kconfig: allow SOF Kconfig to be included in other projects 2021-08-04 12:34:39 +01:00
Kconfig.sof audio: add a config to sof and zephyr code 2023-08-18 10:15:44 +03:00
Kconfig.xtos-build kconfig: move BUILD_VM_ROM Kconfig.xtos-build 2021-05-25 15:53:39 +01:00
Kconfig.xtos-dbg Kconfig: use uncached buffer only for debugging 2021-09-29 16:36:27 +01:00
Kconfig.zephyr-log audio: Put buffer state log under CONFIG_SOF_LOG_DBG_BUFFER switch 2023-08-16 21:21:55 +03:00
LICENCE LICENCE: Add Khronos Group Inc license header 2022-04-12 19:41:27 +03:00
README.md rimage: move everything down to subdir tools/rimage/, prepare move to sof 2023-10-05 10:18:11 -07:00
versions.json versions.json: set version to 2.8.99 2023-11-27 16:49:43 +00:00
west.yml west.yml: update zephyr to 9852e8e15bc8 2024-01-26 10:56:33 +02:00

README.md

Sound Open Firmware

Status

Daily Actions

Gitter chat

#sof channel on discord.com

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