From: Andreas Ă–man Date: Wed, 6 Feb 2013 08:10:31 +0000 (-0500) Subject: Add support for adding ATSC muxes manually X-Git-Tag: v3.5~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53986293940c326fdc4d1ef748c115b2f494835d;p=thirdparty%2Ftvheadend.git Add support for adding ATSC muxes manually --- diff --git a/src/dvb/dvb_multiplex.c b/src/dvb/dvb_multiplex.c index 7fd5e2c25..986765ae7 100644 --- a/src/dvb/dvb_multiplex.c +++ b/src/dvb/dvb_multiplex.c @@ -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"; diff --git a/src/webui/static/app/dvb.js b/src/webui/static/app/dvb.js index eeca7090f..4d423d3f4 100644 --- a/src/webui/static/app/dvb.js +++ b/src/webui/static/app/dvb.js @@ -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({