[mythtv-commits] Ticket #13052: MythTV assumes demux1 when frontend1 is in use, but no demux1 device is available only demux0
MythTV
noreply at mythtv.org
Mon Feb 4 14:10:17 UTC 2019
#13052: MythTV assumes demux1 when frontend1 is in use, but no demux1 device is
available only demux0
--------------------------------------+-----------------------------
Reporter: Matt <maff667@…> | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Channel Scanner | Version: Unspecified
Severity: low | Resolution:
Keywords: demux1,demux0,scan | Ticket locked: 0
--------------------------------------+-----------------------------
Comment (by Mike Bibbings):
This behaviour stems from a very old trac ticket (2009)
https://code.mythtv.org/trac/ticket/5061 which mentions HVR3000 and
HVR4000 cards. Prior to this change demux0 was always used.
Today there are many devices which have two frontends per adapter but only
1 demux/dvr, demux0, dvr0. Only one of the frontends can be used at anyone
time with this demux/dvr.
For example TBS 6522 has two frontends for each adapter, frontend 0 is
DVB-T/T2 demux0, frontend 1 is DVB-S/S2, demux0.
Whilst it is possible to "hack" by sym linking demux0 to demux1, this is
not very user friendly.
A change in cardutil.cpp CardUtil::GetDeviceName is required. To maintain
existing behaviour, test to see if demux<n> exists where <n> is the
frontend number, if the test fails return demux0. Similarly for dvr<n>.
Attached is a patch, tested against current master (but can be backported
to mythtv 29 and 30 if needed).
Test system Xubuntu 18.04 with TBS 6522 PCI-e Dual DVB-S/S2,DVB-T/2 and
Astrometa USB DVB/T/T2 tuners.
Patch also applied to my production system, which has Hauppauge QuadHD
DVB-T/T2 and TBS-6981 Dual DVB-S/S2 tuner, with no ill effects.
Mike
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13052#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list