#include <unistd.h>
#endif
-#define CEC_VID 0x2548
-#define CEC_PID 0x1001
+#define CEC_VID 0x2548
+#define CEC_PID 0x1001
+#define CEC_PID2 0x1002
using namespace CEC;
using namespace std;
kresult = IORegistryEntryGetParentEntry(parent, kIOServicePlane, &parent);
IOObjectRelease(oldparent);
}
- if (strlen(bsdPath) && iVendor == CEC_VID && iProduct == CEC_PID)
+ if (strlen(bsdPath) && iVendor == CEC_VID && (iProduct == CEC_PID || iProduct == CEC_PID2))
{
if (!strDevicePath || !strcmp(bsdPath, strDevicePath))
{
int iVendor, iProduct;
sscanf(udev_device_get_sysattr_value(pdev, "idVendor"), "%x", &iVendor);
sscanf(udev_device_get_sysattr_value(pdev, "idProduct"), "%x", &iProduct);
- if (iVendor == CEC_VID && iProduct == CEC_PID)
+ if (iVendor == CEC_VID && (iProduct == CEC_PID || iProduct == CEC_PID2))
{
CStdString strPath(udev_device_get_syspath(pdev));
if (!strDevicePath || !strcmp(strPath.c_str(), strDevicePath))
int iVendor, iProduct;
sscanf(strVendorId, "%x", &iVendor);
sscanf(strProductId, "%x", &iProduct);
- if (iVendor != CEC_VID || iProduct != CEC_PID)
+ if (iVendor != CEC_VID || (iProduct != CEC_PID && iProduct != CEC_PID2))
continue;
HKEY hDeviceKey = SetupDiOpenDevRegKey(hDevHandle, &devInfoData, DICS_FLAG_GLOBAL, 0, DIREG_DEV, KEY_QUERY_VALUE);