Ticket #802: dvbchannel.3.patch
File dvbchannel.3.patch, 3.5 KB (added by , 20 years ago) |
---|
-
libs/libmythtv/dvbtypes.h
423 423 QString lnb_lof_hi, QString lnb_lof_lo, QString _sistandard, 424 424 QString hp_code_rate, QString lp_code_rate, QString constellation, 425 425 QString transmission_mode, QString guard_interval, QString hierarchy, 426 QString modulation, QString bandwidth );426 QString modulation, QString bandwidth, QString input_name); 427 427 428 428 DVBTuning tuning; 429 429 … … 436 436 uint16_t transportID; 437 437 438 438 QString sistandard; 439 QString input_name; 439 440 uint8_t version; 440 441 private: 441 442 mutable QMutex lock; -
libs/libmythtv/dvbchannel.cpp
234 234 235 235 CHANNEL(QString("Tuned to frequency for channel %1.").arg(chan)); 236 236 237 // It would be nice to use a lookup table like in V4L cards, 238 // However, it would require using the cardinputid as a key 239 // because there is no gaurantee of a 1:1 mapping between a 240 // diseqc <port,pos> to inputname 241 // If a sb lookup is required, might as well just get the name 242 // directly (which is what was done during the Parse() call 243 currentcapchannel = 0; 244 channelnames[currentcapchannel] = chan_opts.input_name; 237 245 inputChannel[currentcapchannel] = curchannelname; 238 246 239 247 return true; 240 248 } 241 249 … … 250 258 251 259 bool DVBChannel::SwitchToInput(const QString &input, const QString &chan) 252 260 { 253 currentcapchannel = 0; 254 if (channelnames.empty()) 255 channelnames[currentcapchannel] = input; 256 261 (void)input; 257 262 return SetChannelByString(chan); 258 263 } 259 264 … … 338 343 " lnb_lof_hi, lnb_lof_lo, sistandard, " 339 344 " hp_code_rate, lp_code_rate, constellation, " 340 345 " transmission_mode, guard_interval, hierarchy, " 341 " modulation, bandwidth "346 " modulation, bandwidth, inputname " 342 347 "FROM dtv_multiplex, cardinput, capturecard " 343 348 "WHERE dtv_multiplex.sourceid = cardinput.sourceid AND "); 344 349 … … 370 375 query.value(12).toString(), query.value(13).toString(), 371 376 query.value(14).toString(), query.value(15).toString(), 372 377 query.value(16).toString(), query.value(17).toString(), 373 query.value(18).toString(), query.value(19).toString()); 378 query.value(18).toString(), query.value(19).toString(), 379 query.value(20).toString()); 374 380 } 375 381 376 382 /** \fn DVBChannel::CheckOptions() -
libs/libmythtv/dvbtypes.cpp
906 906 QString lnb_lof_hi, QString lnb_lof_lo, QString _sistandard, 907 907 QString hp_code_rate, QString lp_code_rate, QString constellation, 908 908 QString trans_mode, QString guard_interval, QString hierarchy, 909 QString modulation, QString bandwidth )909 QString modulation, QString bandwidth, QString _input_name) 910 910 { 911 911 lock.lock(); 912 912 … … 928 928 ok = tuning.parseATSC(frequency, modulation); 929 929 930 930 sistandard = _sistandard; 931 931 input_name = _input_name; 932 932 933 lock.unlock(); 933 934 return ok; 934 935 }