Ticket #13371: 20190112-hdhr-8mhz.patch

File 20190112-hdhr-8mhz.patch, 790 bytes (added by Klaas de Waal, 7 years ago)

Always 8MHz bandwidth for HDHomeRun DVB-C devices

  • mythtv/libs/libmythtv/recorders/hdhrchannel.cpp

    diff --git a/mythtv/libs/libmythtv/recorders/hdhrchannel.cpp b/mythtv/libs/libmythtv/recorders/hdhrchannel.cpp
    index 133fe827e1..8704cf3474 100644
    a b static QString format_dvbc(const DTVMultiplex &tuning, const QString &mod)  
    136136{
    137137    const QChar b = tuning.bandwidth.toChar();
    138138
     139    // need bandwidth to set modulation and symbol rate
     140    if ((QChar('a') == b) && (mod != "auto") && (tuning.symbolrate > 0))
     141        return QString("a8%1-%2")
     142            .arg(mod).arg(tuning.symbolrate/1000);
     143
    139144    if ((QChar('a') == b) || (mod == "auto"))
    140145        return "auto"; // uses bandwidth from channel map
    141146    else if ((QChar('a') != b) && (tuning.symbolrate > 0))