repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68d3eca
)
Added adapter ID interface
author
warped-rudi
<r.ihle@s-t.de>
Fri, 19 Oct 2012 05:56:19 +0000
(07:56 +0200)
committer
warped-rudi
<r.ihle@s-t.de>
Fri, 19 Oct 2012 05:56:19 +0000
(07:56 +0200)
src/lib/adapter/CuBox/NxpCECAdapterCommunication.h
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/adapter/CuBox/NxpCECAdapterCommunication.h
b/src/lib/adapter/CuBox/NxpCECAdapterCommunication.h
index 066c03248cf4d5c0407807121a68c30eeebf1350..42e611a0f687df5270dd724f2b3c7ab9e5534d5a 100644
(file)
--- a/
src/lib/adapter/CuBox/NxpCECAdapterCommunication.h
+++ b/
src/lib/adapter/CuBox/NxpCECAdapterCommunication.h
@@
-39,6
+39,8
@@
#include "lib/adapter/AdapterCommunication.h"
#include <map>
#include "lib/adapter/AdapterCommunication.h"
#include <map>
+#define NXP_ADAPTER_VID 0x0471
+#define NXP_ADAPTER_PID 0x1001
namespace PLATFORM
{
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; }
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);
///}
void HandleLogicalAddressLost(cec_logical_address oldAddress);
///}