diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-22 09:47:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:37 -0500 |
commit | c71d4bc512dda42069c70219bd00315a91550367 (patch) | |
tree | ec7246259bf759b17fb47fa8ac05fefadbfd3ee4 /drivers/media/video/tuner-xc2028.c | |
parent | a1dcd9de648c8cf21abaeca7f77885665eed4117 (diff) |
V4L/DVB (6657): Fix standard selection for PAL/M, PAL/N, PAL/Nc and NTSC
Those standards use 6 MHz firmware.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 429e81be697e..911831442b59 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -910,12 +910,18 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe, | |||
910 | struct analog_parameters *p) | 910 | struct analog_parameters *p) |
911 | { | 911 | { |
912 | struct xc2028_data *priv = fe->tuner_priv; | 912 | struct xc2028_data *priv = fe->tuner_priv; |
913 | fe_bandwidth_t bw; | ||
914 | |||
915 | /* FIXME: Maybe there are more 6 MHz video standards */ | ||
916 | if (p->std & V4L2_STD_MN) | ||
917 | bw = BANDWIDTH_6_MHZ; | ||
918 | else | ||
919 | bw = BANDWIDTH_8_MHZ; | ||
913 | 920 | ||
914 | tuner_dbg("%s called\n", __FUNCTION__); | 921 | tuner_dbg("%s called\n", __FUNCTION__); |
915 | 922 | ||
916 | return generic_set_tv_freq(fe, 62500l * p->frequency, T_ANALOG_TV, | 923 | return generic_set_tv_freq(fe, 62500l * p->frequency, T_ANALOG_TV, |
917 | p->std, BANDWIDTH_8_MHZ); | 924 | p->std, bw); |
918 | /* XXX Are some analog standards 6MHz? */ | ||
919 | } | 925 | } |
920 | 926 | ||
921 | static int xc2028_set_params(struct dvb_frontend *fe, | 927 | static int xc2028_set_params(struct dvb_frontend *fe, |