diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-07-20 05:51:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:03:23 -0400 |
commit | 469ba047c08669f364c2616967e8494b1f3ef21c (patch) | |
tree | d13dc540917a9c2fe55ad41fe22f4f65882728bf | |
parent | 6e5eb59102aa6007d3ea2b382a1d3ca4112c272a (diff) |
V4L/DVB (5927): ivtv: set correct crystal frequency of the GVMVPRX cards
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 55ed0305fd64..cf52111a2dcc 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -57,6 +57,7 @@ | |||
57 | #include "ivtv-yuv.h" | 57 | #include "ivtv-yuv.h" |
58 | 58 | ||
59 | #include <media/tveeprom.h> | 59 | #include <media/tveeprom.h> |
60 | #include <media/saa7115.h> | ||
60 | #include <media/v4l2-chip-ident.h> | 61 | #include <media/v4l2-chip-ident.h> |
61 | 62 | ||
62 | /* var to keep track of the number of array elements in use */ | 63 | /* var to keep track of the number of array elements in use */ |
@@ -893,6 +894,15 @@ static void ivtv_load_and_init_modules(struct ivtv *itv) | |||
893 | else if ((hw & IVTV_HW_UPD64031A) == 0) | 894 | else if ((hw & IVTV_HW_UPD64031A) == 0) |
894 | itv->card = ivtv_get_card(IVTV_CARD_CX23416GYC_NOGR); | 895 | itv->card = ivtv_get_card(IVTV_CARD_CX23416GYC_NOGR); |
895 | } | 896 | } |
897 | else if (itv->card->type == IVTV_CARD_GV_MVPRX || | ||
898 | itv->card->type == IVTV_CARD_GV_MVPRX2E) { | ||
899 | struct v4l2_crystal_freq crystal_freq; | ||
900 | |||
901 | /* The crystal frequency of GVMVPRX is 24.576MHz */ | ||
902 | crystal_freq.freq = SAA7115_FREQ_24_576_MHZ; | ||
903 | crystal_freq.flags = SAA7115_FREQ_FL_UCGC; | ||
904 | itv->video_dec_func(itv, VIDIOC_INT_S_CRYSTAL_FREQ, &crystal_freq); | ||
905 | } | ||
896 | 906 | ||
897 | if (hw & IVTV_HW_CX25840) { | 907 | if (hw & IVTV_HW_CX25840) { |
898 | itv->vbi.raw_decoder_line_size = 1444; | 908 | itv->vbi.raw_decoder_line_size = 1444; |