aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/tuner-xc2028.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-06-06 07:15:08 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:07:18 -0400
commite2860d9621caec0b38d47df917a0ac00a083ffeb (patch)
tree2595327307b0739dfe78722a5765a45a63010f0b /drivers/media/common/tuners/tuner-xc2028.c
parent0a863975e288667fd65737f65f9d4cd5d9817ba9 (diff)
V4L/DVB (11922): tuner-xc2028: cleanup: better use tuner type defines
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/tuner-xc2028.c')
-rw-r--r--drivers/media/common/tuners/tuner-xc2028.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c
index 27e7cb6622b1..bb42d99bc49d 100644
--- a/drivers/media/common/tuners/tuner-xc2028.c
+++ b/drivers/media/common/tuners/tuner-xc2028.c
@@ -925,7 +925,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
925 * proper frequency. 925 * proper frequency.
926 * Analog modes require offset = 0 926 * Analog modes require offset = 0
927 */ 927 */
928 if (new_mode != T_ANALOG_TV) { 928 if (new_mode == T_DIGITAL_TV) {
929 /* Sets the offset according with firmware */ 929 /* Sets the offset according with firmware */
930 if (priv->cur_fw.type & DTV6) 930 if (priv->cur_fw.type & DTV6)
931 offset = 1750000; 931 offset = 1750000;
@@ -998,7 +998,7 @@ static int xc2028_set_analog_freq(struct dvb_frontend *fe,
998 if (priv->ctrl.input1) 998 if (priv->ctrl.input1)
999 type |= INPUT1; 999 type |= INPUT1;
1000 return generic_set_freq(fe, (625l * p->frequency) / 10, 1000 return generic_set_freq(fe, (625l * p->frequency) / 10,
1001 T_ANALOG_TV, type, 0, 0); 1001 T_RADIO, type, 0, 0);
1002 } 1002 }
1003 1003
1004 /* if std is not defined, choose one */ 1004 /* if std is not defined, choose one */