Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c32d801f authored by João Oliveira's avatar João Oliveira Committed by Michael Bestas
Browse files

Fix HDMI CEC volume control setting being ignored

When HDMI CEC is enabled, volume controls stop working - the volume
index changes internally but actual audio output stays at 100%. This
happens because MyHdmiControlStatusChangeListenerCallback.onStatusChange()
doesn't check mHdmiCecVolumeControlEnabled when calling updateHdmiCecSinkLocked(),
and MyHdmiCecVolumeControlFeatureListener.onHdmiCecVolumeControlFeature()
sets the flag but never calls updateHdmiCecSinkLocked() to apply it.
This makes the "HDMI CEC Volume Control" toggle useless.

Fix by
- Checking mHdmiCecVolumeControlEnabled in the CEC status callback
- Calling updateHdmiCecSinkLocked() when the volume control setting changes

Change-Id: Ic610c2c62cfad79a924d359d9af207362d9d08e7
parent 32f4bbaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment