[media] it913x-fe ver 1.09 amend adc table entries
authortvboxspy <tvboxspy@gmail.com>
Mon, 31 Oct 2011 15:06:34 +0000 (12:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 Nov 2011 15:25:41 +0000 (13:25 -0200)
Amend adc table entries and size.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/it913x-fe-priv.h
drivers/media/dvb/frontends/it913x-fe.c

index abf1395f624032eb11df8d5725e254b7c96f5808..836a5b818219bbf1ffd040bf6b68dc12fa0c1146 100644 (file)
@@ -153,8 +153,7 @@ struct table {
 };
 
 static struct table fe_clockTable[] = {
-               {12000000, tab3},       /* FPGA     */
-               {16384000, tab6},       /* 16.38MHz */
+               {12000000, tab3},       /* 12.00MHz */
                {20480000, tab6},       /* 20.48MHz */
                {36000000, tab3},       /* 36.00MHz */
                {30000000, tab1},       /* 30.00MHz */
@@ -164,7 +163,6 @@ static struct table fe_clockTable[] = {
                {34000000, tab2},       /* 34.00MHz */
                {24000000, tab1},       /* 24.00MHz */
                {22000000, tab8},       /* 22.00MHz */
-               {12000000, tab3}        /* 12.00MHz */
 };
 
 /* fe get */
index 5113b89a814e72727a863be6e459f79c3778c4bd..6d12dccf5ce859d4ee04a09430df01c3e271113f 100644 (file)
@@ -53,7 +53,6 @@ struct it913x_fe_state {
        struct ite_config *config;
        u8 i2c_addr;
        u32 frequency;
-       u8 adf;
        u32 crystalFrequency;
        u32 adcFrequency;
        u8 tuner_type;
@@ -698,7 +697,7 @@ static int it913x_fe_start(struct it913x_fe_state *state)
        if (state->config->chip_ver == 1)
                ret = it913x_init_tuner(state);
 
-       if (adf < 12) {
+       if (adf < 10) {
                state->crystalFrequency = fe_clockTable[adf].xtal ;
                state->table = fe_clockTable[adf].table;
                state->adcFrequency = state->table->adcFrequency;
@@ -889,5 +888,5 @@ static struct dvb_frontend_ops it913x_fe_ofdm_ops = {
 
 MODULE_DESCRIPTION("it913x Frontend and it9137 tuner");
 MODULE_AUTHOR("Malcolm Priestley tvboxspy@gmail.com");
-MODULE_VERSION("1.08");
+MODULE_VERSION("1.09");
 MODULE_LICENSE("GPL");