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

Paul Koster mythtv at kosteronline.net
Thu Mar 4 16:22:26 EST 2004


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`)
) TYPE=MyISAM;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frequencytune_mythtv.patch
Type: application/octet-stream
Size: 3278 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040304/ccb3e0a4/frequencytune_mythtv-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frequencytune_mythweb.patch
Type: application/octet-stream
Size: 4948 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040304/ccb3e0a4/frequencytune_mythweb-0001.obj


More information about the mythtv-dev mailing list