Skip to content
Commit 1ceb1957 authored by Kunlei Zhang's avatar Kunlei Zhang Committed by Gerrit - the friendly Code Review server
Browse files

policy: fix voice volume is set wrong after device switch

During voice call, when device switch from speaker to headset,
first new device of primary output is set to headset, voice
volume is calculated in headset, and then it is applied for
voice call correctly. Later, other outputs loop to select new
device and caculate volume in new device. Due to inactive output
selectes AUIOD_DEVICE_NONE, it causes wrong voice volume is
calculated to set.

Fix it by add check to avoid applying volume for inactive output.

Change-Id: I092d870fe5e32c324c953e595cfbc5fce5696321
parent 2dd1094f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment