Skip to content

Commit

Permalink
update usb dvb device detection with device ep_8f
Browse files Browse the repository at this point in the history
  • Loading branch information
atvcaptain committed Oct 2, 2017
1 parent d850db5 commit eeb4c19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dvb/dvb.cpp
Expand Up @@ -339,6 +339,11 @@ bool eDVBAdapterLinux::isusb(int nr)
return true;
}
snprintf(devicename, sizeof(devicename), "/sys/class/dvb/dvb%d.frontend0/device/ep_84", nr);
if (::access(devicename, X_OK) >= 0)
{
return true;
}
snprintf(devicename, sizeof(devicename), "/sys/class/dvb/dvb%d.frontend0/device/ep_8f", nr);
return ::access(devicename, X_OK) >= 0;
}

Expand Down

0 comments on commit eeb4c19

Please sign in to comment.