From 83f43ac0593fc7c6ee87dd13b81c79b3ad6bd422 Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Fri, 11 Feb 2022 10:19:29 +0800 Subject: [PATCH] volume: set ramp_finished to true by default ramp_finished should be true for reset state or it will result unexpected ramp operation. Signed-off-by: Rander Wang --- src/audio/volume/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/volume/volume.c b/src/audio/volume/volume.c index 3b597c1f7..c7236fe60 100644 --- a/src/audio/volume/volume.c +++ b/src/audio/volume/volume.c @@ -321,7 +321,7 @@ static void reset_state(struct vol_data *cd) } cd->channels = 0; - cd->ramp_finished = false; + cd->ramp_finished = true; cd->vol_ramp_active = false; cd->vol_ramp_frames = 0; cd->vol_ramp_elapsed_frames = 0;