Bug #1855
TvAdapter in recent unstable (3.9) creates new adapter for each restart with HDHomeRun
100%
Description
With a new install the system works great, will create correct interface configuration for hdhomerun, once you restart tvheadend it will create one or more additional interfaces.
{ "devid": "(null)/HDHomeRun.1/0000:7f60", "adapters": { "d374b5f778cb3646df57a5c9a60b3329": { "rootpath": "/dev/dvb/adapter1", "number": 0, "frontends": { "62ee49c6aae88791e168f3f5e2abb250": { "fe_path": "/dev/dvb/adapter1/frontend0", "dvr_path": "/dev/dvb/adapter1/dvr0", "dmx_path": "/dev/dvb/adapter1/demux0", "fe_number": 0, "fullmux": false, "noclosefe": false, "enabled": false, "priority": 0, "displayname": "/dev/dvb/adapter1/frontend0", "type": "ATSC" } } } } }
Once this occurs the system will no longer use the previous configured interface.
You will also notice aberrations related to the images on the page. This only occurs 3.9. I have a production configuration that does not do this.
BTW, I love how 3.9 works, very intuitive! Simpler mapping of channels!!!!
Files
History
Updated by Adam Sutton almost 11 years ago
Nice, I just gave you lots of free adapters now just need to figure out how to use them
I guess I need to revisit the HW mapping code, clearly doesn't work properly with HDHR. I might need to ask some further questions, but I don't know what they are just yet. I'll give it some thought.
Adam
Updated by Brendan Pike almost 11 years ago
The parser only knows how to deal with pci and usb devices. The hdhomerun driver is a virtual platform device.
In input/mpegts/linuxdvb/linuxdvb_device.c forcing the parser to just use the path of the frontend instead worked for me.
The real fix is to just force this if the device is a platform device with HDHomeRun.X.
di->di_min_adapter = mina; /* Create ID */ snprintf(buf, sizeof(buf), "/dev/dvb/adapter%d", a); di->di_id = strdup(buf); }
Updated by Adam Sutton almost 11 years ago
Ta, I figured out the issue last night, just not had a chance to check things through.
Adam
Updated by Adam Sutton almost 11 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset tvheadend|commit:6f62adc28709fbe2ef82265f0a56c0eb8a5c4b62.