Project

General

Profile

Bug #1855

TvAdapter in recent unstable (3.9) creates new adapter for each restart with HDHomeRun

Added by Philip Hempel almost 11 years ago. Updated almost 11 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Infrastructure
Target version:
-
Start date:
2013-12-06
Due date:
% Done:

100%

Estimated time:
Found in version:
3.9.275~gf6f79ad~saucy
Affected Versions:

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

Screenshot from 2013-12-06 09_43_28.png (300 KB) Screenshot from 2013-12-06 09_43_28.png TV Adapter for HDHomeRun Philip Hempel, 2013-12-06 15:44

History

#1

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

#2

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);
}
#3

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

#4

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.

Also available in: Atom PDF