Commit dc814fc3 by joakimzhang Committed by zhangq

Detect external surround sound on Xiaomi devices

exoplayer can enable dolby passthrough on xiaomi device when get
EXTERNAL_SURROUND_SOUND_KEY

Signed-off-by: joakimzhang <zq15011526977@gmail.com>
parent eb9de7a1
...@@ -155,6 +155,7 @@ public final class AudioCapabilities { ...@@ -155,6 +155,7 @@ public final class AudioCapabilities {
} }
private static boolean deviceMaySetExternalSurroundSoundGlobalSetting() { private static boolean deviceMaySetExternalSurroundSoundGlobalSetting() {
return Util.SDK_INT >= 17 && "Amazon".equals(Util.MANUFACTURER); return Util.SDK_INT >= 17 &&
("Amazon".equals(Util.MANUFACTURER) || "Xiaomi".equals(Util.MANUFACTURER));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment