freebsd-ports/multimedia/tvheadend/files/patch-src__main.c
Bernhard Froehlich b61debe0fc A TV streaming server for Linux and FreeBSD supporting
DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video
(V4L) as input sources.

WWW: https://tvheadend.org/
2013-07-17 16:08:41 +00:00

16 lines
519 B
C

--- src/main.c.orig 2013-07-14 13:20:52.000000000 +0200
+++ src/main.c 2013-07-15 08:18:16.497236179 +0200
@@ -901,8 +901,13 @@
snprintf(path, sizeof(path), "/sys/class/%s/device/speed", dev);
if(readlinefromfile(path, l, sizeof(l))) {
+#if defined(PLATFORM_FREEBSD)
+ // Assume USB2.0 on FreeBSD because there are no supported PCI devices
+ return HOSTCONNECTION_USB480;
+#else
// Unable to read speed, assume it's PCI
return HOSTCONNECTION_PCI;
+#endif
} else {
speed = atoi(l);