+2008-08-18 Zaheer Abbas Merali <zaheerabbas at merali dot org>
+
+ patch by: Michael Krufky
+
+ * sys/dvb/gstdvbsrc.c:
+ * sys/dvb/parsechannels.c:
+ Add ATSC tunning and channels.conf parsing support.
+ Fixes #537455
+
2008-08-13 Michael Smith <msmith@songbirdnest.com>
* sys/dshowdecwrapper/gstdshowaudiodec.c:
{QAM_128, "QAM 128", "QAM 128"},
{QAM_256, "QAM 256", "QAM 256"},
{QAM_AUTO, "AUTO", "AUTO"},
+ {VSB_8, "8VSB", "8VSB"},
+ {VSB_16, "16VSB", "16VSB"},
{0, NULL, NULL},
};
G_TYPE_BOOLEAN, fe_info.caps % FE_CAN_HIERARCHY_AUTO, "auto-fec",
G_TYPE_BOOLEAN, fe_info.caps & FE_CAN_FEC_AUTO, NULL);
break;
+ case FE_ATSC:
+ adapter_desc = "ATSC";
+ adapter_structure = gst_structure_new ("dvb-adapter",
+ "type", G_TYPE_STRING, adapter_desc, NULL);
+ break;
default:
g_error ("Unknown frontend type: %d", object->adapter_type);
adapter_structure = gst_structure_new ("dvb-adapter",
feparams.u.qam.modulation = object->modulation;
feparams.u.qam.symbol_rate = sym_rate;
break;
+ case FE_ATSC:
+ GST_INFO_OBJECT (object, "Tuning ATSC to %d", freq);
+ feparams.frequency = freq;
+ feparams.u.vsb.modulation = object->modulation;
+ break;
default:
g_error ("Unknown frontend type: %d", object->adapter_type);
g_hash_table_insert (params, g_strdup ("frequency"),
g_strdup (fields[1]));
parsed = TRUE;
+ } else if (numfields == 6) {
+ /* atsc (vsb/qam) */
+ g_hash_table_insert (params, g_strdup ("type"), g_strdup ("atsc"));
+ g_hash_table_insert (params, g_strdup ("modulation"),
+ g_strdup (fields[2]));
+
+ g_hash_table_insert (params, g_strdup ("frequency"),
+ g_strdup (fields[1]));
+ parsed = TRUE;
}
if (parsed) {
g_hash_table_insert (params, g_strdup ("sid"),
g_object_set (dvbbasebin, "inversion", 1, NULL);
else
g_object_set (dvbbasebin, "inversion", 2, NULL);
+ } else if (strcmp (type, "atsc") == 0) {
+ gchar *val;
+
+ ret = TRUE;
+
+ val = g_hash_table_lookup (params, "modulation");
+ if (strcmp (val, "QAM_64") == 0)
+ g_object_set (dvbbasebin, "modulation", 3, NULL);
+ else if (strcmp (val, "QAM_256") == 0)
+ g_object_set (dvbbasebin, "modulation", 5, NULL);
+ else if (strcmp (val, "8VSB") == 0)
+ g_object_set (dvbbasebin, "modulation", 7, NULL);
+ else if (strcmp (val, "16VSB") == 0)
+ g_object_set (dvbbasebin, "modulation", 8, NULL);
+ else
+ ret = FALSE;
}
}
destroy_channels_hash (channels);