Skip to content

Commit b6aa921

Browse files
singalsukv2019i
authored andcommitted
Audio: Volume: No update of process function for every ramp value
The volume process function for pass-through can be changed when all ramps are completed. This change that avoids processing function lookup in worst case every 128 us is measured to save in TGL platform about 1 MCPS from CPU_PEAK(MAX). Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent bc506f1 commit b6aa921

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/audio/volume/volume.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ static inline void volume_ramp(struct processing_module *mod)
347347
}
348348
}
349349

350-
set_volume_process(cd, dev, true);
350+
if (cd->is_passthrough)
351+
set_volume_process(cd, dev, true);
351352
}
352353

353354
/**

0 commit comments

Comments
 (0)