Merge "audio: apply volume upon hearing aid device connection" into pi-dev

am: 9872b257cd

Change-Id: Ibb0a31b7e4750e904568d328384983979cf774a0
This commit is contained in:
Eric Laurent
2018-10-16 18:17:20 -07:00
committed by android-build-merger

View File

@@ -5950,6 +5950,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