summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-07-20 11:26:34 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2007-07-20 11:26:34 +0200
commitba6335c0bee940630c05f4e22276b03ed7217b33 (patch)
tree332d877cb11bffcae4293d181ed4cc9336382891 /linux/drivers/media/video/ivtv
parentfe6ee54582737eb02f62ebdec950ba397873c644 (diff)
downloadmediapointer-dvb-s2-ba6335c0bee940630c05f4e22276b03ed7217b33.tar.gz
mediapointer-dvb-s2-ba6335c0bee940630c05f4e22276b03ed7217b33.tar.bz2
ivtv: init channel for NTSC_M_JP standard.
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-driver.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-driver.c b/linux/drivers/media/video/ivtv/ivtv-driver.c
index a7289f975..2c935e1af 100644
--- a/linux/drivers/media/video/ivtv/ivtv-driver.c
+++ b/linux/drivers/media/video/ivtv/ivtv-driver.c
@@ -1158,8 +1158,13 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
vf.tuner = 0;
vf.type = V4L2_TUNER_ANALOG_TV;
vf.frequency = 6400; /* the tuner 'baseline' frequency */
- if (itv->std & V4L2_STD_NTSC_M) {
- /* Why on earth? */
+
+ /* Set initial frequency. For PAL/SECAM broadcasts no
+ 'default' channel exists AFAIK. */
+ if (itv->std == V4L2_STD_NTSC_M_JP) {
+ vf.frequency = 1460; /* ch. 1 91250*16/1000 */
+ }
+ else if (itv->std & V4L2_STD_NTSC_M) {
vf.frequency = 1076; /* ch. 4 67250*16/1000 */
}