mirror of https://github.com/thesofproject/sof.git
c23c8ac5d3
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> |
||
---|---|---|
.github | ||
app | ||
doc | ||
installer | ||
keys | ||
rimage@02abc5d342 | ||
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