Skip to content

Commit

Permalink
audio: volume: add config for peak volume
Browse files Browse the repository at this point in the history
Add config to control peak volume code need build or not.

Signed-off-by: Baofeng Tian <[email protected]>
  • Loading branch information
btian1 committed Sep 15, 2023
1 parent f5f57b2 commit 484d123
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio/volume/volume.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,9 @@ static int volume_process(struct processing_module *mod,
comp_dbg(mod->dev, "volume_process()");

while (avail_frames) {
#if CONFIG_COMP_PEAK_VOL
volume_update_current_vol_ipc4(cd);

#endif
if (cd->ramp_finished || cd->vol_ramp_frames > avail_frames) {
/* without ramping process all at once */
frames = avail_frames;
Expand Down

0 comments on commit 484d123

Please sign in to comment.