Commit 133c744
committed
volume: fix scaling function reset after max volume
Fix a generic issue where the scale_vol function pointer is not reset
after volume reaches its maximum value. When volume hits max,
is_passthrough is set to true and scale_vol points to the passthrough
function. On subsequent volume decreases, is_passthrough remains set
and the correct gain function is never re-selected, so the volume
change has no audible effect.
Fix by resetting is_passthrough to false and re-selecting scale_vol
via set_volume_process() on every SOF_CTRL_CMD_VOLUME command,
ensuring correct volume scaling in both directions.
Signed-off-by: Sneha Voona <sneha.voona@amd.com>1 parent 7dc0d17 commit 133c744
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
222 | 227 | | |
223 | 228 | | |
224 | 229 | | |
| |||
0 commit comments