Opened 5 years ago

Closed 4 years ago

#12342 closed Patch - Feature (fixed)

Add support for DVB-T2 for tuners that do not auto-switch

Reported by: David Matthews <dm@…> Owned by: Stuart Auchterlonie
Priority: minor Milestone: 0.28
Component: MythTV - DVB Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This patch provides support for DVB-T2 in the same way as DVB-S2 is supported. The drivers for the first DVB-T2 tuners (e.g. PCTV-290) automatically switched between DVB-T and DVB-T2 so that there was no need for the application to treat it specially. More recent drivers, such as that for the Si2168 in the DVBSky T9580 and PCTV 292e require explicit switching.

There are separate commits for the basic support and for channel scanning. The channel scanner includes support for editing transports and for a full scan. The full scan tries to lock each frequency with DVB-T and only tries DVB-T2 if that fails. This avoids creating duplicate entries when scanning with a device that ignores the DVB-T/T2 setting and locks to either. There is currently no support for PLPs (physical layer pipes).

The code for this has been submitted as a GitHub? pull request. https://github.com/MythTV/mythtv/pull/90

Change History (11)

comment:1 Changed 5 years ago by stuartm

Owner: set to stuartm
Status: newaccepted

comment:2 Changed 5 years ago by stuartm

Milestone: unknown0.28
Version: UnspecifiedMaster Head

comment:3 Changed 5 years ago by HenkPoley@…

Please note that there are cards that support DVB-T/T2 and also DVB-C, but do not auto-switch between those. Such as the DVBSky T680C and Technotrend CT2-4650 CI.

Adding support for that here would probably be the right place.

comment:4 Changed 5 years ago by will@…

When is this going to be merged?

comment:5 Changed 5 years ago by peterspringett@…

Likewise, I would be very interested to know when this is likely to be merged. I have a PCTV 292e and it would love to see DVB-T2 available in MythTV for it.

comment:6 Changed 5 years ago by lincoln@…

I have tested this with fixes/0.27 using a TBS6281 with the opensource driver. I was able to successfully run a channel scan in mythtv-setup and both the dvb-t and dvb-t2 channels worked correctly. Can test with master if asked.

comment:7 Changed 4 years ago by Stuart Auchterlonie

Owner: changed from stuartm to Stuart Auchterlonie
Status: acceptedassigned

I'll grab this as I now have one of these

comment:8 Changed 4 years ago by David Matthews <dm@…>

In 6d7526559ddcdf09f0cbbfa59e1d25afb255a039/mythtv:

Remove "if (true
" added during development. This should have been removed before committing.

(cherry picked from commit 45b27c16108c8f400e1dbb5a20d993515be9f812)
Signed-off-by: Stuart Auchterlonie <stuarta@…>

Refs #12342

comment:9 Changed 4 years ago by David Matthews <dm@…>

In 02f2d5e7abd522eb5195548513b58a5f7bb6c209/mythtv:

Support for DVB-T2 in the channel scanner. When used with a card that supports DVB-T2
it adds the ability to select DVB-T/T2 when editing a transport and extends the full
scan to check whether a frequency will lock with DVB-T2. It only tests for DVB-T2 if it
has failed to lock with DVB-T to avoid having duplicate entries with cards that auto-switch
between DVB-T and DVB-T2. It also fixes a bug where previously if a lock was obtained
with an offset frequency but not with the centre frequency the entry in the database
contained only the centre frequency.

(cherry picked from commit 2bfbbf39cc5819bd8767baa1586d98e53abd15a2)
Signed-off-by: Stuart Auchterlonie <stuarta@…>

Conflicts:

mythtv/libs/libmythtv/cardutil.h
mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp

Refs #12342

comment:10 Changed 4 years ago by Stuart Auchterlonie <stuarta@…>

In 8f23115c8d5a14c8b8858baadd5d9a30e28f377d/mythtv:

Refs #12342. Apply cardinput changes to this patch

comment:11 Changed 4 years ago by Stuart Auchterlonie <stuarta@…>

Resolution: fixed
Status: assignedclosed

In 8894d687297439a36abc759354786e5915325110/mythtv:

Fixes #12342. Adds support for non auto switching tuners.

Note: See TracTickets for help on using tickets.