]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] msi3101: changes for tuner PLL freq limits
authorAntti Palosaari <crope@iki.fi>
Wed, 7 Aug 2013 16:20:29 +0000 (13:20 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 20 Aug 2013 19:07:54 +0000 (16:07 -0300)
I made some tuner freq limit tests against RF signal generator.
Adjust some PLL limits according to these test results.
Here are the results, taken from two different devices.
Ranges are measured RF limits + calculated VCO limits.
Mirics MSi3101 SDR Dongle:
VHF_MODE  52 - 132  1664 - 4224
B3_MODE  103 - 263  1648 - 4208
B45_MODE 413 - 960  1652 - 3840
Hauppauge WinTV 133559 LF:
VHF_MODE  49 - 130  1568 - 4160
B3_MODE   98 - 259  1568 - 4144
B45_MODE 391 - 960  1564 - 3840

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/msi3101/sdr-msi3101.c

index c4bd9630eea18a346c6f31d0c5422c8bf18ab301..e7a21a2309f2d5863c38f178447c6ef659e37fd0 100644 (file)
@@ -1306,11 +1306,11 @@ static int msi3101_set_tuner(struct msi3101_state *s)
                u8 mode;
                u8 lo_div;
        } band_lut[] = {
-               { 30000000, 0x01, 16}, /* AM_MODE1 */
+               { 47000000, 0x01, 16}, /* AM_MODE1 */
                {108000000, 0x02, 32}, /* VHF_MODE */
-               {240000000, 0x04, 16}, /* B3_MODE */
+               {330000000, 0x04, 16}, /* B3_MODE */
                {960000000, 0x08,  4}, /* B45_MODE */
-               {167500000, 0x10,  2}, /* BL_MODE */
+               {      ~0U, 0x10,  2}, /* BL_MODE */
        };
        static const struct {
                u32 freq;