[mythtv] [PATCH][Discussion]Supporting frequencies next to freqid's in MythTV

Chris Petersen lists at forevermore.net
Thu Mar 4 16:44:41 EST 2004

To whoever applies this to the main mythtv branch - Please also apply
the mythweb patch, since there's a good chance I'll miss the commit
notice if you choose to include it.


On Thu, 2004-03-04 at 13:22, Paul Koster wrote:
> Because of the troublesome way of configuring TV channels in large parts of
> Europe because cable providers do not strictly use the frequency id's /
> tables as it's supposedly done in the US, I've attached a patch that allows
> one to enter frequencies next to frequency id's.
> The patch is certainly not perfect, but hopefully it can be the start of a
> discussion.
> Main changes:
> - extended table 'channel' with two fields 'frequency' and 'freqselect' (see
> below for details)
> - changed tune behavior that when freqselect=FREQUENCY that the indirection
> using the lookup tables is skipped
> - changed the channel configuration screen of mythWeb to be able to
> configure channels using frequencies
> Some issues:
> - the 'freqselect' per channel is not good. Probably it can be a global
> setting or otherwise a per input setting.
> - MythWeb channel setup should only allow frequencies or freq id's depending
> on the freqselect setting
> - MythTV setup should be adapted to allow specification of frequencies in a
> similar way as it is done in MythWeb
> - A grep -R freqid shows that hdtvrecorder.cpp and filldate.cpp are
> dependent on 'freqid'. I have no idea what the first does, but for the
> second I assume that it won't give many troubles initially and can always be
> adapted later.
> --
> Paul
> CREATE TABLE `channel` (
>   `chanid` int(10) unsigned NOT NULL default '0',
>   `channum` varchar(5) NOT NULL default '',
>   `freqid` varchar(5) NOT NULL default '',
>   `sourceid` int(10) unsigned default NULL,
>   `callsign` varchar(20) default NULL,
>   `name` varchar(20) default NULL,
>   `icon` varchar(255) default NULL,
>   `finetune` int(11) default NULL,
>   `videofilters` varchar(255) default NULL,
>   `xmltvid` varchar(64) default NULL,
>   `recpriority` int(10) NOT NULL default '0',
>   `contrast` int(11) default '32768',
>   `brightness` int(11) default '32768',
>   `colour` int(11) default '32768',
>   `hue` int(11) default '32768',
>   `tvformat` varchar(10) NOT NULL default 'Default',
>   `commfree` tinyint(4) NOT NULL default '0',
>   `visible` tinyint(1) NOT NULL default '1',
>   `frequency` int(10) default NULL,
>   `freqselect` enum('FREQID','FREQUENCY') NOT NULL default 'FREQID',
>   PRIMARY KEY  (`chanid`)
> ______________________________________________________________________
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

More information about the mythtv-dev mailing list