Merge "AudioService: send connection intent for HDMI ARC device" into lmp-mr1-dev
This commit is contained in:
@@ -4740,7 +4740,8 @@ public class AudioService extends IAudioService.Stub {
|
||||
} else if (device == AudioSystem.DEVICE_OUT_DGTL_DOCK_HEADSET) {
|
||||
connType = AudioRoutesInfo.MAIN_DOCK_SPEAKERS;
|
||||
intent.setAction(AudioManager.ACTION_DIGITAL_AUDIO_DOCK_PLUG);
|
||||
} else if (device == AudioSystem.DEVICE_OUT_HDMI) {
|
||||
} else if (device == AudioSystem.DEVICE_OUT_HDMI ||
|
||||
device == AudioSystem.DEVICE_OUT_HDMI_ARC) {
|
||||
connType = AudioRoutesInfo.MAIN_HDMI;
|
||||
configureHdmiPlugIntent(intent, state);
|
||||
}
|
||||
@@ -4835,7 +4836,8 @@ public class AudioService extends IAudioService.Stub {
|
||||
for (AudioPort port : ports) {
|
||||
if (port instanceof AudioDevicePort) {
|
||||
final AudioDevicePort devicePort = (AudioDevicePort) port;
|
||||
if (devicePort.type() == AudioManager.DEVICE_OUT_HDMI) {
|
||||
if (devicePort.type() == AudioManager.DEVICE_OUT_HDMI ||
|
||||
devicePort.type() == AudioManager.DEVICE_OUT_HDMI_ARC) {
|
||||
// format the list of supported encodings
|
||||
int[] formats = devicePort.formats();
|
||||
if (formats.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user