Commit 503ae3e
ipc4: mixin: Fix HiFi3 impl of 24-bit mixing
AE_ADD24S() expects input arguments to be Q9.23 values. Therefore,
negative 24-bit values in a 32-bit container should have their sign
extended to the upper 8 bits. All other five implementations of 24-bit
mixing (IPC3 mixer's generic and HIFI3, IPC4 mixin's generic, IPC4
mixin's mix with gain generic and HIFI3) perform sign extension prior
to mixing and do not rely on samples being already sign-extended.
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>1 parent e3075f5 commit 503ae3e
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
| |||
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
| 270 | + | |
| 271 | + | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
| |||
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
| 291 | + | |
| 292 | + | |
286 | 293 | | |
287 | 294 | | |
288 | 295 | | |
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
| 299 | + | |
| 300 | + | |
292 | 301 | | |
293 | 302 | | |
294 | 303 | | |
| |||
0 commit comments