#include "CECCommandHandler.h"
#include "../devices/CECBusDevice.h"
+#include "../devices/CECAudioSystem.h"
#include "../CECProcessor.h"
using namespace CEC;
case CEC_OPCODE_USER_CONTROL_RELEASE:
HandleUserControlRelease(command);
break;
+ case CEC_OPCODE_GIVE_AUDIO_STATUS:
+ HandleGiveAudioStatus(command);
+ break;
default:
UnhandledCommand(command);
m_busDevice->GetProcessor()->AddCommand(command);
return false;
}
+bool CCECCommandHandler::HandleGiveAudioStatus(const cec_command &command)
+{
+ CCECBusDevice *device = GetDevice(command.destination);
+ if (device && device->GetType() == CEC_DEVICE_TYPE_AUDIO_SYSTEM)
+ return ((CCECAudioSystem *) device)->TransmitAudioStatus(command.initiator);
+
+ return false;
+}
+
bool CCECCommandHandler::HandleGiveDeckStatus(const cec_command &command)
{
CCECBusDevice *device = GetDevice(command.destination);