Description

A mythtv-setup Channel Scan with a DVB tuner card that does not have a delivery system selected fails with a "Failed to open card" message in the "Scan Type" selection field. In the log output the following message appears:

This typically happens when mythtv-setup is run with a v30 database; for DVB cards field capturecard/inputname is then set to "DVBInput" which is not a delivery system such as "DVB-T2".

This problem is avoided by selecting first a delivery system, with "2. Capture Cards" / <select capture card> / <select card type> / "Delivery system". However, this is not obvious for even the experts, let alone the casual users.

The way forward is to implement the following for DVB cards:

if there is no valid delivery system then

get the current delivery system from the device

if that is DVB-T and DVB-T2 is supported then change to DVB-T2

if that is DVB-S and DVB-S2 is supported then change to DVB-S2

update the database with the new delivery system

N.B. In mythbackend it is already done like this, but without modifying the database. This allows a mythbackend compiled from master to run with a v30 database.