mirror of https://github.com/thesofproject/sof.git
Audio: Fix the ramp gain setting.
Fix the ramp gain setting bug to start ramp from the previous gain instead of zero. Signed-off-by: Andrula Song <andrula.song@intel.com>
This commit is contained in:
parent
0703228ec2
commit
05751b80e7
|
@ -981,7 +981,6 @@ static int volume_set_config(struct processing_module *mod, uint32_t config_id,
|
||||||
cdata.curve_type,
|
cdata.curve_type,
|
||||||
cdata.curve_duration);
|
cdata.curve_duration);
|
||||||
|
|
||||||
cd->volume[i] = cd->vol_min;
|
|
||||||
volume_set_chan(mod, i, cd->tvolume[i], true);
|
volume_set_chan(mod, i, cd->tvolume[i], true);
|
||||||
if (cd->volume[i] != cd->tvolume[i])
|
if (cd->volume[i] != cd->tvolume[i])
|
||||||
cd->ramp_finished = false;
|
cd->ramp_finished = false;
|
||||||
|
@ -991,7 +990,6 @@ static int volume_set_config(struct processing_module *mod, uint32_t config_id,
|
||||||
cdata.curve_type,
|
cdata.curve_type,
|
||||||
cdata.curve_duration);
|
cdata.curve_duration);
|
||||||
|
|
||||||
cd->volume[cdata.channel_id] = cd->vol_min;
|
|
||||||
volume_set_chan(mod, cdata.channel_id, cd->tvolume[cdata.channel_id],
|
volume_set_chan(mod, cdata.channel_id, cd->tvolume[cdata.channel_id],
|
||||||
true);
|
true);
|
||||||
if (cd->volume[cdata.channel_id] != cd->tvolume[cdata.channel_id])
|
if (cd->volume[cdata.channel_id] != cd->tvolume[cdata.channel_id])
|
||||||
|
|
Loading…
Reference in New Issue