cec: handle GiveAudioStatus. currently send a feature abort
[deb_libcec.git] / src / lib / devices / CECAudioSystem.cpp
index d0ab39ebf15781ebbc6841cf5642d8372d0a926a..3ed22e989f1683c7d9a67a410783e01fced57c35 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 #include "CECAudioSystem.h"
+#include "../CECProcessor.h"
 
 using namespace CEC;
 
@@ -40,3 +41,14 @@ CCECAudioSystem::CCECAudioSystem(CCECProcessor *processor, cec_logical_address a
   m_type          = CEC_DEVICE_TYPE_AUDIO_SYSTEM;
   m_strDeviceName = "Audio";
 }
+
+bool CCECAudioSystem::TransmitAudioStatus(cec_logical_address dest)
+{
+  // TODO
+  CStdString strLog;
+  strLog.Format("<< %x -> %x: audio status feature abort", m_iLogicalAddress, dest);
+  AddLog(CEC_LOG_NOTICE, strLog);
+
+  m_processor->TransmitAbort(dest, CEC_OPCODE_GIVE_AUDIO_STATUS);
+  return false;
+}