Skip to content

Commit

Permalink
Merge pull request #4559 from koying/fixdroidpassthrough
Browse files Browse the repository at this point in the history
FIX: [droid] allow all boxes to enable passthrough (frodo way)
  • Loading branch information
t-nelson committed Apr 15, 2014
2 parents bb5f437 + ef61014 commit 79931b1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,23 +230,16 @@ void CAESinkAUDIOTRACK::EnumerateDevicesEx(AEDeviceInfoList &list, bool force)
m_info.m_dataFormats.clear();
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;
m_info.m_dataFormats.push_back(AE_FMT_AC3);
m_info.m_dataFormats.push_back(AE_FMT_DTS);
}
#endif
m_info.m_deviceType = AE_DEVTYPE_HDMI;
m_info.m_deviceName = "AudioTrack";
m_info.m_displayName = "android";
m_info.m_displayNameExtra = "audiotrack";
m_info.m_channels += AE_CH_FL;
m_info.m_channels += AE_CH_FR;
m_info.m_sampleRates.push_back(CJNIAudioTrack::getNativeOutputSampleRate(CJNIAudioManager::STREAM_MUSIC));
m_info.m_dataFormats.push_back(AE_FMT_S16LE);
m_info.m_dataFormats.push_back(AE_FMT_AC3);
m_info.m_dataFormats.push_back(AE_FMT_DTS);
#if 0 //defined(__ARM_NEON__)
if (g_cpuInfo.GetCPUFeatures() & CPU_FEATURE_NEON)
m_info.m_dataFormats.push_back(AE_FMT_FLOAT);
Expand Down

0 comments on commit 79931b1

Please sign in to comment.