12 Mar
2018
12 Mar
'18
6:09 a.m.
This patch fixes the bug in the check for terminating the volume ramp down.
Signed-off-by: Ranjani Sridharan ranjani.sridharan@linux.intel.com --- src/audio/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/audio/volume.c b/src/audio/volume.c index 45a343e..51a5826 100644 --- a/src/audio/volume.c +++ b/src/audio/volume.c @@ -335,7 +335,7 @@ static uint64_t vol_work(void *data, uint64_t delay) vol -= VOL_RAMP_STEP;
/* ramp completed ? */ - if (vol <= cd->tvolume[i] || vol >= VOL_MAX) + if (vol <= cd->tvolume[i] || vol <= VOL_MIN) vol_update(cd, i); else { cd->volume[i] = vol;
--
2.14.1