Added adapter ID interface
authorwarped-rudi <r.ihle@s-t.de>
Fri, 19 Oct 2012 05:56:19 +0000 (07:56 +0200)
committerwarped-rudi <r.ihle@s-t.de>
Fri, 19 Oct 2012 05:56:19 +0000 (07:56 +0200)
src/lib/adapter/CuBox/NxpCECAdapterCommunication.h

index 066c03248cf4d5c0407807121a68c30eeebf1350..42e611a0f687df5270dd724f2b3c7ab9e5534d5a 100644 (file)
@@ -39,6 +39,8 @@
 #include "lib/adapter/AdapterCommunication.h"
 #include <map>
 
+#define NXP_ADAPTER_VID 0x0471
+#define NXP_ADAPTER_PID 0x1001
 
 namespace PLATFORM
 {
@@ -84,6 +86,8 @@ namespace CEC
     cec_vendor_id GetVendorId(void);
     bool SupportsSourceLogicalAddress(const cec_logical_address address) { return address > CECDEVICE_TV && address <= CECDEVICE_BROADCAST; }
     cec_adapter_type GetAdapterType(void) { return ADAPTERTYPE_TDA995x; }
+    uint16_t GetAdapterVendorId(void) const { return NXP_ADAPTER_VID; }
+    uint16_t GetAdapterProductId(void) const { return NXP_ADAPTER_PID; }
     void HandleLogicalAddressLost(cec_logical_address oldAddress);
     ///}