cec: added vendor id for Yamaha
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 29 Nov 2011 00:09:37 +0000 (01:09 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 29 Nov 2011 00:09:37 +0000 (01:09 +0100)
include/cectypes.h
src/lib/implementations/CECCommandHandler.cpp
src/testclient/main.cpp

index ede11f4e2f47813f25a0e6cfefdef964f08692eb..6f29921b8cfea6e715203250498e565ab5dc2b9a 100644 (file)
@@ -598,6 +598,7 @@ typedef enum cec_vendor_id
   CEC_VENDOR_PANASONIC = 0x8045,
   CEC_VENDOR_PIONEER   = 0xE036,
   CEC_VENDOR_ONKYO     = 0x09B0,
+  CEC_VENDOR_YAMAHA    = 0xA0DE,
   CEC_VENDOR_UNKNOWN   = 0
 } cec_vendor_id;
 
index 9debd5d9423cd3ad0fd47fc35400674c997b2278..f1c13b62e62762d6cd53058e48a259124cfaa943 100644 (file)
@@ -917,6 +917,8 @@ const char *CCECCommandHandler::ToString(const cec_vendor_id vendor)
     return "Pioneer";
   case CEC_VENDOR_ONKYO:
     return "Onkyo";
+  case CEC_VENDOR_YAMAHA:
+    return "Yamaha";
   default:
     return "Unknown";
   }
index 0a7a9be9874326691bbb2ea07142d78daee3963e..1fbff3d45d9f831f4529c0120733cc46084b805f 100644 (file)
@@ -740,7 +740,7 @@ int main (int argc, char *argv[])
           cec_logical_addresses addresses = parser->GetActiveDevices();
           for (uint8_t iPtr = 0; iPtr < 16; iPtr++)
             if (addresses[iPtr])
-              cout << "logical address " << iPtr << endl;
+              cout << "logical address " << (int)iPtr << endl;
         }
         else if (command == "ad")
         {