Skip to content

Commit

Permalink
Audio: Volume: No update of process function for every ramp value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
singalsu committed Apr 5, 2024
1 parent cb9d1ae commit ba8af58
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 @@ -347,7 +347,8 @@ static inline void volume_ramp(struct processing_module *mod)
}
}

set_volume_process(cd, dev, true);
if (cd->is_passthrough)
set_volume_process(cd, dev, true);
}

/**
Expand Down

0 comments on commit ba8af58

Please sign in to comment.