Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[rbp] #define the virtual PID and VID to use for the RPi peripherals

  • Loading branch information...
commit 494cb5e4f24766f76cf6db8114f33a81fd00b8ba 1 parent 19793b2
@opdenkamp opdenkamp authored committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 xbmc/peripherals/bus/linux/PeripheralBusRPi.cpp
View
9 xbmc/peripherals/bus/linux/PeripheralBusRPi.cpp
@@ -28,6 +28,9 @@ extern "C" {
using namespace PERIPHERALS;
+#define RPI_PERIPHERAL_BUS_VID 0x2708
+#define RPI_PERIPHERAL_CEC_PID 0x1001
+
CPeripheralBusRPi::CPeripheralBusRPi(CPeripherals *manager) :
CPeripheralBus(manager, PERIPHERAL_BUS_RPI)
{
@@ -39,10 +42,10 @@ bool CPeripheralBusRPi::PerformDeviceScan(PeripheralScanResults &results)
if (FindAdapter())
{
PeripheralScanResult result;
- result.m_iVendorId = 0x2708;
- result.m_iProductId = 0x1001;
+ result.m_iVendorId = RPI_PERIPHERAL_BUS_VID;
+ result.m_iProductId = RPI_PERIPHERAL_CEC_PID;
result.m_type = PERIPHERAL_CEC;
- result.m_strLocation = "RPI";
+ result.m_strLocation = "RPI/CEC";
if (!results.ContainsResult(result))
results.m_results.push_back(result);
Please sign in to comment.
Something went wrong with that request. Please try again.