Commit d77a98e
committed
Mixer: Remove attenuation and apply saturation to mixed audio
This patch removes the down scaling of inputs to preserve the signal level
non-modified in mixing. The 64 bit mix is saturated (clamp) to prevent
overflow.
It is recommended to instead use in topology volume components with safe
gain set in the inputs of mixer (-6/-9.5/-12 dB for 2/3/4 inputs) if
saturation in mixing must be prevented.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent 3a29be9 commit d77a98e
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
0 commit comments