Add support for adding ATSC muxes manually
This commit is contained in:
parent
b359144b7c
commit
5398629394
2 changed files with 31 additions and 1 deletions
|
@ -1169,7 +1169,7 @@ dvb_mux_add_by_params(th_dvb_adapter_t *tda,
|
|||
break;
|
||||
|
||||
case FE_ATSC:
|
||||
dmc.dmc_fe_params.frequency = freq;
|
||||
dmc.dmc_fe_params.frequency = freq * 1000;
|
||||
|
||||
if(!val2str(constellation, qamtab))
|
||||
return "Invalid VSB constellation";
|
||||
|
|
|
@ -792,6 +792,36 @@ tvheadend.addMuxManually = function(adapterData, satConfStore) {
|
|||
var items = [];
|
||||
|
||||
switch (adapterData.deliverySystem) {
|
||||
case 'ATSC':
|
||||
items.push(new Ext.form.NumberField({
|
||||
fieldLabel : 'Frequency (kHz)',
|
||||
name : 'frequency',
|
||||
allowNegative : false,
|
||||
allowBlank : false,
|
||||
minValue : adapterData.freqMin,
|
||||
maxValue : adapterData.freqMax
|
||||
}));
|
||||
|
||||
items.push(new Ext.form.ComboBox({
|
||||
fieldLabel : 'Modulation',
|
||||
name : 'constellation',
|
||||
hiddenName : 'constellationID',
|
||||
editable : false,
|
||||
allowBlank : false,
|
||||
displayField : 'title',
|
||||
valueField : 'id',
|
||||
mode : 'remote',
|
||||
triggerAction : 'all',
|
||||
store : new Ext.data.JsonStore({
|
||||
root : 'entries',
|
||||
fields : [ 'title', 'id' ],
|
||||
url : 'dvb/feopts/constellations/' + adId
|
||||
})
|
||||
}));
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case 'DVB-T':
|
||||
|
||||
items.push(new Ext.form.NumberField({
|
||||
|
|
Loading…
Add table
Reference in a new issue