mirror of https://github.com/thesofproject/sof.git
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:
parent
d6fdeb37a7
commit
83f43ac059
|
@ -321,7 +321,7 @@ static void reset_state(struct vol_data *cd)
|
||||||
}
|
}
|
||||||
|
|
||||||
cd->channels = 0;
|
cd->channels = 0;
|
||||||
cd->ramp_finished = false;
|
cd->ramp_finished = true;
|
||||||
cd->vol_ramp_active = false;
|
cd->vol_ramp_active = false;
|
||||||
cd->vol_ramp_frames = 0;
|
cd->vol_ramp_frames = 0;
|
||||||
cd->vol_ramp_elapsed_frames = 0;
|
cd->vol_ramp_elapsed_frames = 0;
|
||||||
|
|
Loading…
Reference in New Issue