Opened 6 years ago

Closed 6 years ago

#12469 closed Patch - Bug Fix (Duplicate)

Re: Ticket #10043 Locked - MythTV does not lock HDHR Tuners

Reported by: andyvt@… Owned by: Silicondust
Priority: minor Milestone: unknown
Component: MythTV - HDHomeRun Version: Unspecified
Severity: low Keywords:
Cc: Ticket locked: yes


It seems that ticket #10043 has been locked so I can't respond to the decision to do nothing. I would have rather not done it this way, but I can't find another way to request reconsideration.

When configured properly the HDHR treats its tuners as virtual tuners. Locking them allows MythTV to retain an exclusive hold on a tuner so alternate access methods don't euthanize recordings. If there is another tuner available, the HDHR will allow it to grab it, otherwise the request will fail. When MythTV doesn't lock the tuners, even if there are open tuners it is quite likely that recordings will be truncated.

The only time you need MythTV to explictly fail over to a new tuner is if multiple HDHR devices are in the pool. While this would be a great feature, the scope is far greater than just fixing how MythTV works with the HDHR.


Attachments (1)

0002-Add-support-for-HDHR-tuner-locking-during-recording.patch (1.6 KB) - added by andyvt@… 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by andyvt@…

comment:1 Changed 6 years ago by gigem

Resolution: Duplicate
Status: newclosed
Ticket locked: set

Leaving ticket #10043 locked was inadvertent. It's unlocked now. Please follow up there.

I think you are misunderstanding. While the HDHR supports allocating tuners from a pool, MythTV does not support it. Applying the supplied patch will cause MythTV to lock the tuner while MythTV uses it, thereby preventing another application from interrupting MythTV's use of the tuner. It will not, however, prevent MythTV from wanting to use a specific tuner even when some other application is already using it. That's because MythTV is currently written to the tuners statically allocated to it by number and expects to have exclusive access them.

To reword that last comment from the original ticket -- We do not want a partial solution to the problem. We will only accept patches that solve the entire problem. That means changing MythTV to configure an hdhomerun_device_selector_t object and to use hdhomerun_device_selector_choose_and_lock() to allocate tuners dynamically.

Note: See TracTickets for help on using tickets.