aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS. Davilla <davilla@4pi.com>2013-12-25 12:58:52 -0500
committerS. Davilla <davilla@4pi.com>2013-12-25 12:59:03 -0500
commit98a50e87b99aba4e6a68b9caf55f6b63f81a20eb (patch)
tree055311006de5b615769c7c679b58281b7f9634a4
parentb90d7c9b64b36170ebadb3a16076d74295b978a9 (diff)
droid: restore passthough for aml devices
-rw-r--r--xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
index 32db4b63ae..dc89edf5cd 100644
--- a/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
@@ -248,6 +248,11 @@ void CAESinkAUDIOTRACK::EnumerateDevicesEx(AEDeviceInfoList &list, bool force)
m_info.m_sampleRates.clear();
m_info.m_deviceType = AE_DEVTYPE_PCM;
+#if defined(HAS_LIBAMCODEC)
+ // AML devices can do passthough
+ if (aml_present())
+ m_info.m_deviceType = AE_DEVTYPE_HDMI;
+#endif
m_info.m_deviceName = "AudioTrack";
m_info.m_displayName = "android";
m_info.m_displayNameExtra = "audiotrack";