Go to file
Seppo Ingalsuo c23c8ac5d3 Drivers: DMIC: Fix risk for overflow in unmute ramp calculation
This patch adds cast to int64_t for the multiplication and adds 32 bit
saturation to ensure overflow of the product is not possible.

This function is used to calculate ramp time in IPC4 NHLT blob mode
where the time is not passed from topology. Currently rates up to
48 kHz remain under product int32_t range, so normally there is no
issue. However 96 kHz rate would always result to incorrect
LOGRAMP_TIME_MIN_MS (10 ms).

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2022-09-06 13:52:47 +01:00
.github .github/zephyr.yml: use new script zephyr/docker-run.sh 2022-09-01 16:26:02 +01:00
app zephyr: deprecate zephyr.h and use kernel.h header 2022-09-06 09:59:15 +01:00
doc header: rtos: decouple headers into rtos specific directories. 2022-08-31 12:01:07 +01:00
installer installer: remove byt..jsl platforms 2022-08-31 21:03:16 +01:00
keys Move signing key pair from rimage/ up one level 2020-05-13 10:16:04 +01:00
rimage@02abc5d342 rimage: update to version 02abc5d342 2022-06-20 15:18:27 +01:00
scripts scripts/test-repro-build.sh: leave only TGL 2022-09-02 18:30:02 +01:00
smex header: rtos: decouple headers into rtos specific directories. 2022-08-31 12:01:07 +01:00
src Drivers: DMIC: Fix risk for overflow in unmute ramp calculation 2022-09-06 13:52:47 +01:00
submanifests Add west.yml configuring zephyr dependencies from sof 2022-08-03 11:43:22 +01:00
test Test: cmocka: Add unit tests for matrix library 2022-08-31 14:45:32 +01:00
third_party/include component: add initial post processing component and topology 2022-06-20 16:06:17 +01:00
tools test/tplg-build.sh: remove spurious xargs -n1 option 2022-09-02 11:25:19 +01:00
xtos/include header: rtos: use rtos specific version of string.h 2022-08-31 12:01:07 +01:00
zephyr zephyr/docker-run.sh: add comments about image versions 2022-09-02 18:28:30 +01:00
.gitignore .gitignore: stop ignoring CMake files for in-source doxygen builds 2022-07-19 09:38:30 +01:00
.gitmodules .gitmodules: remove .git suffix from rimage.git 2021-09-30 15:56:44 +01:00
.travis.yml .github: replace HAVE_CONFIG KConfig hack with an override 2021-03-23 12:17:22 +00:00
CMakeLists.txt cmake: stop sneakily downloading missing submodules at build time 2022-08-31 10:40:04 +01:00
CODEOWNERS OWNERS: move google files to team reference 2022-05-30 09:45:24 +01:00
Kconfig kconfig: allow SOF Kconfig to be included in other projects 2021-08-04 12:34:39 +01:00
Kconfig.sof perf_cnt: add the tracing of window-based average calculation 2022-05-05 21:52:13 +01: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 sof: replace log calls with zephyr logging api 2022-04-27 15:05:24 +01:00
LICENCE LICENCE: Add Khronos Group Inc license header 2022-04-12 19:41:27 +03:00
README.md readme: remove IRC link 2021-06-16 22:13:08 +01:00
west.yml west: update to newer Zephyr baseline 2022-08-31 10:33:46 +01:00

README.md

Sound Open Firmware

Status

GitHub Actions Build Status Gitter chat

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