summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-05-25 01:22:41 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-05-25 01:22:41 +0000
commit8b4ba9e06fa0f932b664304018ac132019dee4e6 (patch)
tree8044619bad514014243d5616ad7659c6d5ce583e /linux/drivers/media/common
parent8817e52a9b01c76ac3a33ac34ab4708fe3bf81a4 (diff)
downloadmediapointer-dvb-s2-8b4ba9e06fa0f932b664304018ac132019dee4e6.tar.gz
mediapointer-dvb-s2-8b4ba9e06fa0f932b664304018ac132019dee4e6.tar.bz2
Change order for FM tune
From: Dmitri Belimov <d.belimov@gmail.com> Change order data of buffer in FM simple_tune function. It is usefull for: 1. Set data of tuner with CP bit UP. 0xCE for MK5 or 0xC6 for MK3 2. When call simple_fm_tune, read this byte from config and overwrite this byte in function simple_radio_bandswitch for set CP bit to OFF. Of course it can be usefull for other tuner for overwrite default settings of FM. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r--linux/drivers/media/common/tuners/tuner-simple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/common/tuners/tuner-simple.c b/linux/drivers/media/common/tuners/tuner-simple.c
index ebbc1e045..2ac1c8edb 100644
--- a/linux/drivers/media/common/tuners/tuner-simple.c
+++ b/linux/drivers/media/common/tuners/tuner-simple.c
@@ -701,12 +701,12 @@ static int simple_set_radio_freq(struct dvb_frontend *fe,
return 0;
}
- /* Bandswitch byte */
- simple_radio_bandswitch(fe, &buffer[0]);
-
buffer[2] = (t_params->ranges[0].config & ~TUNER_RATIO_MASK) |
TUNER_RATIO_SELECT_50; /* 50 kHz step */
+ /* Bandswitch byte */
+ simple_radio_bandswitch(fe, &buffer[0]);
+
/* Convert from 1/16 kHz V4L steps to 1/20 MHz (=50 kHz) PLL steps
freq * (1 Mhz / 16000 V4L steps) * (20 PLL steps / 1 MHz) =
freq * (1/800) */