Ticket #2343: dvb-c_get_tuning_parameters.diff
File dvb-c_get_tuning_parameters.diff, 2.7 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/siscan.cpp
old new int SIScan::InsertMultiplex(const transp 1365 1365 if (!GetDVBChannel()->GetTuningParams(tuning)) 1366 1366 tuning = (*transport).tuning; 1367 1367 1368 uint bestFrequency = FindBestMplexFreq(1369 tuning.Frequency(),1370 transport,1371 (*transport).SourceID,1372 sm->GetDetectedTransportID(),1373 sm->GetDetectedNetworkID());1374 1375 1368 // Write the best info we have to the DB 1376 1369 if (FE_OFDM == GetDVBChannel()->GetCardType()) 1370 { 1371 // determine the best frequency in case of other_frequencies 1372 uint bestFrequency = FindBestMplexFreq( 1373 tuning.Frequency(), transport, (*transport).SourceID, 1374 sm->GetDetectedTransportID(), sm->GetDetectedNetworkID()); 1375 1377 1376 mplexid = ChannelUtil::CreateMultiplex( 1378 1377 (*transport).SourceID, (*transport).standard, 1379 1378 bestFrequency, tuning.ModulationDB(), … … int SIScan::InsertMultiplex(const transp 1385 1384 QString::null /*inner FEC*/,tuning.ConstellationDB(), 1386 1385 tuning.HierarchyChar(), tuning.HPCodeRateString(), 1387 1386 tuning.LPCodeRateString(), tuning.GuardIntervalString()); 1387 } 1388 1388 else if (FE_QPSK == GetDVBChannel()->GetCardType()) 1389 1389 mplexid = ChannelUtil::CreateMultiplex( 1390 1390 (*transport).SourceID, (*transport).standard, … … int SIScan::InsertMultiplex(const transp 1398 1398 tuning.QPSKInnerFECString(),QString::null, 1399 1399 -1, QString::null, 1400 1400 QString::null, QString::null); 1401 else if (FE_QAM == GetDVBChannel()->GetCardType()) 1402 mplexid = ChannelUtil::CreateMultiplex( 1403 (*transport).SourceID, (*transport).standard, 1404 (*transport).tuning.Frequency(), 1405 tuning.ModulationString(), 1406 sm->GetDetectedTransportID(), 1407 sm->GetDetectedNetworkID(), 1408 tuning.QAMSymbolRate(), -1, 1409 -1 /* polarity */, tuning.InversionChar(), 1410 -1 /* transmission mode */, 1411 tuning.QAMInnerFECString(), QString::null, 1412 -1, QString::null, 1413 QString::null, QString::null); 1401 1414 else 1402 1415 mplexid = ChannelUtil::CreateMultiplex( 1403 1416 (*transport).SourceID, (*transport).standard,