Skip to content

Commit 794da7a

Browse files
author
Eric Laurent
committed
AudioService: pause music when undocked
Send becomming noisy event also when disconnecting a dock (analog, digital or USB) or HDMI. Bug 6760590. Change-Id: I497df35a3c6817d2b300f532d4cc3f12e3ce9ace
1 parent 694121c commit 794da7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

media/java/android/media/AudioService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3294,7 +3294,9 @@ private boolean handleDeviceConnection(boolean connected, int device, String par
32943294
// sent if none of these devices is connected.
32953295
int mBecomingNoisyIntentDevices =
32963296
AudioSystem.DEVICE_OUT_WIRED_HEADSET | AudioSystem.DEVICE_OUT_WIRED_HEADPHONE |
3297-
AudioSystem.DEVICE_OUT_ALL_A2DP;
3297+
AudioSystem.DEVICE_OUT_ALL_A2DP | AudioSystem.DEVICE_OUT_AUX_DIGITAL |
3298+
AudioSystem.DEVICE_OUT_ANLG_DOCK_HEADSET | AudioSystem.DEVICE_OUT_DGTL_DOCK_HEADSET |
3299+
AudioSystem.DEVICE_OUT_ALL_USB;
32983300

32993301
// must be called before removing the device from mConnectedDevices
33003302
private int checkSendBecomingNoisyIntent(int device, int state) {

0 commit comments

Comments
 (0)