diff options
| author | 2018-10-16 18:31:56 -0700 | |
|---|---|---|
| committer | 2018-10-16 18:31:56 -0700 | |
| commit | 5541547eddf26a776d3e5fdeae6b65491ab0b601 (patch) | |
| tree | 0ea9053c2356ca971cf7b74e9dc96aaea42e33b6 | |
| parent | abeafe3dbd856b1e45ed807afc689dfea364b1ca (diff) | |
| parent | cf7cca0a436c43e0fc7c5ef0222ad8d9e3705159 (diff) | |
Merge "audio: apply volume upon hearing aid device connection" into pi-dev am: 9872b257cd
am: cf7cca0a43
Change-Id: I16d10f8ad3b10c934028cc35ed0fba57de0df3fa
| -rw-r--r-- | services/core/java/com/android/server/audio/AudioService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java index f0ff570e385b..cd1a7c2be26c 100644 --- a/services/core/java/com/android/server/audio/AudioService.java +++ b/services/core/java/com/android/server/audio/AudioService.java @@ -5975,6 +5975,9 @@ public class AudioService extends IAudioService.Stub address)); sendMsg(mAudioHandler, MSG_ACCESSORY_PLUG_MEDIA_UNMUTE, SENDMSG_QUEUE, AudioSystem.DEVICE_OUT_HEARING_AID, 0, null, 0); + sendMsg(mAudioHandler, MSG_SET_DEVICE_VOLUME, SENDMSG_QUEUE, + AudioSystem.DEVICE_OUT_HEARING_AID, 0, + mStreamStates[AudioSystem.STREAM_MUSIC], 0); } // must be called synchronized on mConnectedDevices |