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;