diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-07-20 11:51:58 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-07-20 11:51:58 +0200 |
commit | b5047096d075a65785a77f75666fb9d27c1fb29a (patch) | |
tree | 892fb1645633d42a84767d3731f6c69de7a08505 | |
parent | 9a1c8c1ee97550f01ef0be6fe7ea966c182f2c01 (diff) | |
download | mediapointer-dvb-s2-b5047096d075a65785a77f75666fb9d27c1fb29a.tar.gz mediapointer-dvb-s2-b5047096d075a65785a77f75666fb9d27c1fb29a.tar.bz2 |
ivtv: set correct crystal frequency of the GVMVPRX cards
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-driver.c b/linux/drivers/media/video/ivtv/ivtv-driver.c index b86b524d8..eaf69488e 100644 --- a/linux/drivers/media/video/ivtv/ivtv-driver.c +++ b/linux/drivers/media/video/ivtv/ivtv-driver.c @@ -57,6 +57,7 @@ #include "ivtv-yuv.h" #include <media/tveeprom.h> +#include <media/saa7115.h> #include <media/v4l2-chip-ident.h> /* var to keep track of the number of array elements in use */ @@ -897,6 +898,15 @@ static void ivtv_load_and_init_modules(struct ivtv *itv) else if ((hw & IVTV_HW_UPD64031A) == 0) itv->card = ivtv_get_card(IVTV_CARD_CX23416GYC_NOGR); } + else if (itv->card->type == IVTV_CARD_GV_MVPRX || + itv->card->type == IVTV_CARD_GV_MVPRX2E) { + struct v4l2_crystal_freq crystal_freq; + + /* The crystal frequency of GVMVPRX is 24.576MHz */ + crystal_freq.freq = SAA7115_FREQ_24_576_MHZ; + crystal_freq.flags = SAA7115_FREQ_FL_UCGC; + itv->video_dec_func(itv, VIDIOC_INT_S_CRYSTAL_FREQ, &crystal_freq); + } if (hw & IVTV_HW_CX25840) { itv->vbi.raw_decoder_line_size = 1444; |