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 <rander.wang@intel.com>
This commit is contained in:
Rander Wang 2022-02-11 10:19:29 +08:00 committed by Liam Girdwood
parent d6fdeb37a7
commit 83f43ac059
1 changed files with 1 additions and 1 deletions

View File

@ -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;