From 484d123bcb31f233740640fd2f7ab3604e0127be Mon Sep 17 00:00:00 2001 From: Baofeng Tian Date: Thu, 14 Sep 2023 16:09:34 +0800 Subject: [PATCH] audio: volume: add config for peak volume Add config to control peak volume code need build or not. Signed-off-by: Baofeng Tian --- src/audio/volume/volume.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio/volume/volume.c b/src/audio/volume/volume.c index 2c7d83b1fcc4..a74ba5d4e6c4 100644 --- a/src/audio/volume/volume.c +++ b/src/audio/volume/volume.c @@ -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;