summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-04-17 23:22:09 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2006-04-17 23:22:09 -0400
commit5f35d55636599845c22433ac77c66277e4c25ad5 (patch)
treeb546367ce42e22ce6dd79d262f5486c6f12b3bf7 /linux/drivers
parent2bc21bcdb502df4abb44c04f0f66b66e849894ba (diff)
downloadmediapointer-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>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/cx88/cx88-blackbird.c15
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);