diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-04-17 23:22:09 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-04-17 23:22:09 -0400 |
commit | 5f35d55636599845c22433ac77c66277e4c25ad5 (patch) | |
tree | b546367ce42e22ce6dd79d262f5486c6f12b3bf7 | |
parent | 2bc21bcdb502df4abb44c04f0f66b66e849894ba (diff) | |
download | mediapointer-dvb-s2-5f35d55636599845c22433ac77c66277e4c25ad5.tar.gz mediapointer-dvb-s2-5f35d55636599845c22433ac77c66277e4c25ad5.tar.bz2 |
KWorld HardwareMpegTV XPert: set encoder video standard based on tvnorm
From: Michael Krufky <mkrufky@linuxtv.org>
The KWorld HardwareMpegTV XPert uses a multistandard tuner, tda8290 + tda8275.
Without checking the video standard in blackbird_probe, the encoder defaults
to PAL, even if the incoming video stream is NTSC. This patch checks the video
standard set by the cx2388x decoder, and sets the encoding height and frame
accordingly.
This patch is designed to only affect the KWorld HardwareMpegTV XPert.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-blackbird.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c index 935706680..73580db8b 100644 --- a/linux/drivers/media/video/cx88/cx88-blackbird.c +++ b/linux/drivers/media/video/cx88/cx88-blackbird.c @@ -1719,8 +1719,8 @@ static int __devinit blackbird_probe(struct pci_dev *pci_dev, memcpy(&dev->params,&default_mpeg_params,sizeof(default_mpeg_params)); memcpy(&dev->dnr_params,&default_dnr_params,sizeof(default_dnr_params)); - if (core->board == CX88_BOARD_HAUPPAUGE_ROSLYN) { - + switch (core->board) { + case CX88_BOARD_HAUPPAUGE_ROSLYN: if (core->tuner_formats & V4L2_STD_525_60) { dev->height = 480; dev->params.vi_frame_rate = 30; @@ -1728,7 +1728,16 @@ static int __devinit blackbird_probe(struct pci_dev *pci_dev, dev->height = 576; dev->params.vi_frame_rate = 25; } - + break; + case CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT: + if (core->tvnorm->id & V4L2_STD_525_60) { + dev->height = 480; + dev->params.vi_frame_rate = 30; + } else { + dev->height = 576; + dev->params.vi_frame_rate = 25; + } + break; } err = cx8802_init_common(dev); |