[media] it913x: remove unused af9033 demod tuner config inits

Those are demodulator init tables according to used tuner tuner
config. af9033 demod driver does those inits currently and due
to that these duplicate inits could be removed.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Antti Palosaari 2013-03-07 21:59:41 -03:00 committed by Mauro Carvalho Chehab
parent dc4a2c40f8
commit d423e108c1
3 changed files with 0 additions and 594 deletions

View File

@ -285,12 +285,6 @@ static int af9033_init(struct dvb_frontend *fe)
goto err;
}
/*
* FIXME: These inits are logically property of demodulator driver
* (that driver), but currently in case of IT9135 those are done by
* tuner driver.
*/
/* load OFSM settings */
dev_dbg(&state->i2c->dev, "%s: load ofsm settings\n", __func__);
switch (state->cfg.tuner) {

View File

@ -141,40 +141,10 @@ static int it913x_init(struct dvb_frontend *fe)
{
struct it913x_state *state = fe->tuner_priv;
int ret, i, reg;
struct it913xset *set_lna;
u8 val, nv_val;
u8 nv[] = {48, 32, 24, 16, 12, 8, 6, 4, 2};
u8 b[2];
/* LNA Scripts */
switch (state->tuner_type) {
case AF9033_TUNER_IT9135_51:
set_lna = it9135_51;
break;
case AF9033_TUNER_IT9135_52:
set_lna = it9135_52;
break;
case AF9033_TUNER_IT9135_60:
set_lna = it9135_60;
break;
case AF9033_TUNER_IT9135_61:
set_lna = it9135_61;
break;
case AF9033_TUNER_IT9135_62:
set_lna = it9135_62;
break;
case AF9033_TUNER_IT9135_38:
default:
set_lna = it9135_38;
}
dev_dbg(&state->i2c_adap->dev, "%s: Tuner LNA type :%02x\n",
KBUILD_MODNAME, state->tuner_type);
ret = it913x_script_loader(state, set_lna);
if (ret < 0)
return ret;
if (state->chip_ver == 2) {
ret = it913x_wr_reg(state, PRO_DMOD, TRIGGER_OFSM, 0x1);
if (ret < 0)

View File

@ -36,564 +36,6 @@ struct it913xset { u32 pro;
u8 count;
};
/* Version 1 types */
static struct it913xset it9135_38[] = {
{PRO_DMOD, 0x0043, {0x00}, 0x01},
{PRO_DMOD, 0x0046, {0x38}, 0x01},
{PRO_DMOD, 0x0051, {0x01}, 0x01},
{PRO_DMOD, 0x005f, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0x0068, {0x0a}, 0x01},
{PRO_DMOD, 0x0070, {0x0a, 0x05, 0x02}, 0x03},
{PRO_DMOD, 0x0075, {0x8c, 0x8c, 0x8c, 0xc8, 0x01}, 0x05},
{PRO_DMOD, 0x007e, {0x04, 0x00}, 0x02},
{PRO_DMOD, 0x0081, { 0x0a, 0x12, 0x02, 0x0a, 0x03, 0xc8, 0xb8,
0xd0, 0xc3, 0x01}, 0x0a},
{PRO_DMOD, 0x008e, {0x01}, 0x01},
{PRO_DMOD, 0x0092, {0x06, 0x00, 0x00, 0x00, 0x00}, 0x05},
{PRO_DMOD, 0x0099, {0x01}, 0x01},
{PRO_DMOD, 0x009b, {0x3c, 0x28}, 0x02},
{PRO_DMOD, 0x009f, {0xe1, 0xcf}, 0x02},
{PRO_DMOD, 0x00a3, {0x01, 0x5a, 0x01, 0x01}, 0x04},
{PRO_DMOD, 0x00a9, {0x00, 0x01}, 0x02},
{PRO_DMOD, 0x00b0, {0x01}, 0x01},
{PRO_DMOD, 0x00b3, {0x02, 0x32}, 0x02},
{PRO_DMOD, 0x00b6, {0x14}, 0x01},
{PRO_DMOD, 0x00c0, {0x11, 0x00, 0x05}, 0x03},
{PRO_DMOD, 0x00c4, {0x00}, 0x01},
{PRO_DMOD, 0x00c6, {0x19, 0x00}, 0x02},
{PRO_DMOD, 0x00cc, {0x2e, 0x51, 0x33}, 0x03},
{PRO_DMOD, 0x00f3, {0x05, 0x8c, 0x8c}, 0x03},
{PRO_DMOD, 0x00f8, {0x03, 0x06, 0x06}, 0x03},
{PRO_DMOD, 0x00fc, { 0x02, 0x02, 0x02, 0x09, 0x50, 0x7b, 0x77,
0x00, 0x02, 0xc8, 0x05, 0x7b}, 0x0c},
{PRO_DMOD, 0x0109, {0x02}, 0x01},
{PRO_DMOD, 0x0115, {0x0a, 0x03, 0x02, 0x80}, 0x04},
{PRO_DMOD, 0x011a, {0xc8, 0x7b, 0x8a, 0xa0}, 0x04},
{PRO_DMOD, 0x0122, {0x02, 0x18, 0xc3}, 0x03},
{PRO_DMOD, 0x0127, {0x00, 0x07}, 0x02},
{PRO_DMOD, 0x012a, {0x53, 0x51, 0x4e, 0x43}, 0x04},
{PRO_DMOD, 0x0137, {0x01, 0x00, 0x07, 0x00, 0x06}, 0x05},
{PRO_DMOD, 0x013d, {0x00, 0x01, 0x5b, 0xc8, 0x59}, 0x05},
{PRO_DMOD, 0xf000, {0x0f}, 0x01},
{PRO_DMOD, 0xf016, {0x10, 0x04, 0x05, 0x04, 0x05}, 0x05},
{PRO_DMOD, 0xf01f, {0x8c, 0x00, 0x03, 0x0a, 0x0a}, 0x05},
{PRO_DMOD, 0xf029, {0x8c, 0x00, 0x00, 0x01}, 0x04},
{PRO_DMOD, 0xf064, {0x03, 0xf9, 0x03, 0x01}, 0x04},
{PRO_DMOD, 0xf06f, {0xe0, 0x03}, 0x02},
{PRO_DMOD, 0xf072, {0x0f, 0x03}, 0x02},
{PRO_DMOD, 0xf077, {0x01, 0x00}, 0x02},
{PRO_DMOD, 0xf085, {0x00, 0x02, 0x00}, 0x03},
{PRO_DMOD, 0xf09b, {0x3f, 0x00, 0x20, 0x00, 0x0c, 0x00}, 0x06},
{PRO_DMOD, 0xf130, {0x04}, 0x01},
{PRO_DMOD, 0xf132, {0x04}, 0x01},
{PRO_DMOD, 0xf144, {0x1a}, 0x01},
{PRO_DMOD, 0xf146, {0x00}, 0x01},
{PRO_DMOD, 0xf14a, {0x01}, 0x01},
{PRO_DMOD, 0xf14c, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf14f, {0x04}, 0x01},
{PRO_DMOD, 0xf158, {0x7f}, 0x01},
{PRO_DMOD, 0xf15a, {0x00, 0x08}, 0x02},
{PRO_DMOD, 0xf15d, {0x03, 0x05}, 0x02},
{PRO_DMOD, 0xf163, {0x05}, 0x01},
{PRO_DMOD, 0xf166, {0x01, 0x40, 0x0f}, 0x03},
{PRO_DMOD, 0xf17a, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf183, {0x01}, 0x01},
{PRO_DMOD, 0xf19d, {0x40}, 0x01},
{PRO_DMOD, 0xf1bc, {0x36, 0x00}, 0x02},
{PRO_DMOD, 0xf1cb, {0xa0, 0x01}, 0x02},
{PRO_DMOD, 0xf204, {0x10}, 0x01},
{PRO_DMOD, 0xf214, {0x00}, 0x01},
{PRO_DMOD, 0xf24c, {0x88, 0x95, 0x9a, 0x90}, 0x04},
{PRO_DMOD, 0xf25a, {0x07, 0xe8, 0x03, 0xb0, 0x04}, 0x05},
{PRO_DMOD, 0xf270, {0x01, 0x02, 0x01, 0x02}, 0x04},
{PRO_DMOD, 0xf40e, {0x0a, 0x40, 0x08}, 0x03},
{PRO_DMOD, 0xf55f, {0x0a}, 0x01},
{PRO_DMOD, 0xf561, {0x15, 0x20}, 0x02},
{PRO_DMOD, 0xf5df, {0xfb, 0x00}, 0x02},
{PRO_DMOD, 0xf5e3, {0x09, 0x01, 0x01}, 0x03},
{PRO_DMOD, 0xf5f8, {0x01}, 0x01},
{PRO_DMOD, 0xf5fd, {0x01}, 0x01},
{PRO_DMOD, 0xf600, { 0x05, 0x08, 0x0b, 0x0e, 0x11, 0x14, 0x17,
0x1f}, 0x08},
{PRO_DMOD, 0xf60e, {0x00, 0x04, 0x32, 0x10}, 0x04},
{PRO_DMOD, 0xf707, {0xfc, 0x00, 0x37, 0x00}, 0x04},
{PRO_DMOD, 0xf78b, {0x01}, 0x01},
{PRO_DMOD, 0xf80f, {0x40, 0x54, 0x5a}, 0x03},
{PRO_DMOD, 0xf905, {0x01}, 0x01},
{PRO_DMOD, 0xfb06, {0x03}, 0x01},
{PRO_DMOD, 0xfd8b, {0x00}, 0x01},
{0xff, 0x0000, {0x00}, 0x00} /* Terminating Entry */
};
static struct it913xset it9135_51[] = {
{PRO_DMOD, 0x0043, {0x00}, 0x01},
{PRO_DMOD, 0x0046, {0x51}, 0x01},
{PRO_DMOD, 0x0051, {0x01}, 0x01},
{PRO_DMOD, 0x005f, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0x0068, {0x0a}, 0x01},
{PRO_DMOD, 0x0070, {0x0a, 0x06, 0x02}, 0x03},
{PRO_DMOD, 0x0075, {0x8c, 0x8c, 0x8c, 0xc8, 0x01}, 0x05},
{PRO_DMOD, 0x007e, {0x04, 0x00}, 0x02},
{PRO_DMOD, 0x0081, { 0x0a, 0x12, 0x02, 0x0a, 0x03, 0xc0, 0x96,
0xcf, 0xc3, 0x01}, 0x0a},
{PRO_DMOD, 0x008e, {0x01}, 0x01},
{PRO_DMOD, 0x0092, {0x06, 0x00, 0x00, 0x00, 0x00}, 0x05},
{PRO_DMOD, 0x0099, {0x01}, 0x01},
{PRO_DMOD, 0x009b, {0x3c, 0x28}, 0x02},
{PRO_DMOD, 0x009f, {0xe1, 0xcf}, 0x02},
{PRO_DMOD, 0x00a3, {0x01, 0x5a, 0x01, 0x01}, 0x04},
{PRO_DMOD, 0x00a9, {0x00, 0x01}, 0x02},
{PRO_DMOD, 0x00b0, {0x01}, 0x01},
{PRO_DMOD, 0x00b3, {0x02, 0x3c}, 0x02},
{PRO_DMOD, 0x00b6, {0x14}, 0x01},
{PRO_DMOD, 0x00c0, {0x11, 0x00, 0x05}, 0x03},
{PRO_DMOD, 0x00c4, {0x00}, 0x01},
{PRO_DMOD, 0x00c6, {0x19, 0x00}, 0x02},
{PRO_DMOD, 0x00cc, {0x2e, 0x51, 0x33}, 0x03},
{PRO_DMOD, 0x00f3, {0x05, 0x8c, 0x8c}, 0x03},
{PRO_DMOD, 0x00f8, {0x03, 0x06, 0x06}, 0x03},
{PRO_DMOD, 0x00fc, { 0x03, 0x02, 0x02, 0x09, 0x50, 0x7a, 0x77,
0x01, 0x02, 0xb0, 0x02, 0x7a}, 0x0c},
{PRO_DMOD, 0x0109, {0x02}, 0x01},
{PRO_DMOD, 0x0115, {0x0a, 0x03, 0x02, 0x80}, 0x04},
{PRO_DMOD, 0x011a, {0xc0, 0x7a, 0xac, 0x8c}, 0x04},
{PRO_DMOD, 0x0122, {0x02, 0x70, 0xa4}, 0x03},
{PRO_DMOD, 0x0127, {0x00, 0x07}, 0x02},
{PRO_DMOD, 0x012a, {0x53, 0x51, 0x4e, 0x43}, 0x04},
{PRO_DMOD, 0x0137, {0x01, 0x00, 0x07, 0x00, 0x06}, 0x05},
{PRO_DMOD, 0x013d, {0x00, 0x01, 0x5b, 0xc0, 0x59}, 0x05},
{PRO_DMOD, 0xf000, {0x0f}, 0x01},
{PRO_DMOD, 0xf016, {0x10, 0x04, 0x05, 0x04, 0x05}, 0x05},
{PRO_DMOD, 0xf01f, {0x8c, 0x00, 0x03, 0x0a, 0x0a}, 0x05},
{PRO_DMOD, 0xf029, {0x8c, 0x00, 0x00, 0x01}, 0x04},
{PRO_DMOD, 0xf064, {0x03, 0xf9, 0x03, 0x01}, 0x04},
{PRO_DMOD, 0xf06f, {0xe0, 0x03}, 0x02},
{PRO_DMOD, 0xf072, {0x0f, 0x03}, 0x02},
{PRO_DMOD, 0xf077, {0x01, 0x00}, 0x02},
{PRO_DMOD, 0xf085, {0xc0, 0x01, 0x00}, 0x03},
{PRO_DMOD, 0xf09b, {0x3f, 0x00, 0x20, 0x00, 0x0c, 0x00}, 0x06},
{PRO_DMOD, 0xf130, {0x04}, 0x01},
{PRO_DMOD, 0xf132, {0x04}, 0x01},
{PRO_DMOD, 0xf144, {0x1a}, 0x01},
{PRO_DMOD, 0xf146, {0x00}, 0x01},
{PRO_DMOD, 0xf14a, {0x01}, 0x01},
{PRO_DMOD, 0xf14c, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf14f, {0x04}, 0x01},
{PRO_DMOD, 0xf158, {0x7f}, 0x01},
{PRO_DMOD, 0xf15a, {0x00, 0x08}, 0x02},
{PRO_DMOD, 0xf15d, {0x03, 0x05}, 0x02},
{PRO_DMOD, 0xf163, {0x05}, 0x01},
{PRO_DMOD, 0xf166, {0x01, 0x40, 0x0f}, 0x03},
{PRO_DMOD, 0xf17a, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf183, {0x01}, 0x01},
{PRO_DMOD, 0xf19d, {0x40}, 0x01},
{PRO_DMOD, 0xf1bc, {0x36, 0x00}, 0x02},
{PRO_DMOD, 0xf1cb, {0xa0, 0x01}, 0x02},
{PRO_DMOD, 0xf204, {0x10}, 0x01},
{PRO_DMOD, 0xf214, {0x00}, 0x01},
{PRO_DMOD, 0xf24c, {0x88, 0x95, 0x9a, 0x90}, 0x04},
{PRO_DMOD, 0xf25a, {0x07, 0xe8, 0x03, 0xb0, 0x04}, 0x05},
{PRO_DMOD, 0xf270, {0x01, 0x02, 0x01, 0x02}, 0x04},
{PRO_DMOD, 0xf40e, {0x0a, 0x40, 0x08}, 0x03},
{PRO_DMOD, 0xf55f, {0x0a}, 0x01},
{PRO_DMOD, 0xf561, {0x15, 0x20}, 0x02},
{PRO_DMOD, 0xf5df, {0xfb, 0x00}, 0x02},
{PRO_DMOD, 0xf5e3, {0x09, 0x01, 0x01}, 0x03},
{PRO_DMOD, 0xf5f8, {0x01}, 0x01},
{PRO_DMOD, 0xf5fd, {0x01}, 0x01},
{PRO_DMOD, 0xf600, { 0x05, 0x08, 0x0b, 0x0e, 0x11, 0x14, 0x17,
0x1f}, 0x08},
{PRO_DMOD, 0xf60e, {0x00, 0x04, 0x32, 0x10}, 0x04},
{PRO_DMOD, 0xf707, {0xfc, 0x00, 0x37, 0x00}, 0x04},
{PRO_DMOD, 0xf78b, {0x01}, 0x01},
{PRO_DMOD, 0xf80f, {0x40, 0x54, 0x5a}, 0x03},
{PRO_DMOD, 0xf905, {0x01}, 0x01},
{PRO_DMOD, 0xfb06, {0x03}, 0x01},
{PRO_DMOD, 0xfd8b, {0x00}, 0x01},
{0xff, 0x0000, {0x00}, 0x00} /* Terminating Entry */
};
static struct it913xset it9135_52[] = {
{PRO_DMOD, 0x0043, {0x00}, 0x01},
{PRO_DMOD, 0x0046, {0x52}, 0x01},
{PRO_DMOD, 0x0051, {0x01}, 0x01},
{PRO_DMOD, 0x005f, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0x0068, {0x10}, 0x01},
{PRO_DMOD, 0x0070, {0x0a, 0x05, 0x02}, 0x03},
{PRO_DMOD, 0x0075, {0x8c, 0x8c, 0x8c, 0xa0, 0x01}, 0x05},
{PRO_DMOD, 0x007e, {0x04, 0x00}, 0x02},
{PRO_DMOD, 0x0081, { 0x0a, 0x12, 0x03, 0x0a, 0x03, 0xb3, 0x97,
0xc0, 0x9e, 0x01}, 0x0a},
{PRO_DMOD, 0x008e, {0x01}, 0x01},
{PRO_DMOD, 0x0092, {0x06, 0x00, 0x00, 0x00, 0x00}, 0x05},
{PRO_DMOD, 0x0099, {0x01}, 0x01},
{PRO_DMOD, 0x009b, {0x3c, 0x28}, 0x02},
{PRO_DMOD, 0x009f, {0xe1, 0xcf}, 0x02},
{PRO_DMOD, 0x00a3, {0x01, 0x5c, 0x01, 0x01}, 0x04},
{PRO_DMOD, 0x00a9, {0x00, 0x01}, 0x02},
{PRO_DMOD, 0x00b0, {0x01}, 0x01},
{PRO_DMOD, 0x00b3, {0x02, 0x3c}, 0x02},
{PRO_DMOD, 0x00b6, {0x14}, 0x01},
{PRO_DMOD, 0x00c0, {0x11, 0x00, 0x05}, 0x03},
{PRO_DMOD, 0x00c4, {0x00}, 0x01},
{PRO_DMOD, 0x00c6, {0x19, 0x00}, 0x02},
{PRO_DMOD, 0x00cc, {0x2e, 0x51, 0x33}, 0x03},
{PRO_DMOD, 0x00f3, {0x05, 0x91, 0x8c}, 0x03},
{PRO_DMOD, 0x00f8, {0x03, 0x06, 0x06}, 0x03},
{PRO_DMOD, 0x00fc, { 0x03, 0x02, 0x02, 0x09, 0x50, 0x74, 0x77,
0x02, 0x02, 0xae, 0x02, 0x6e}, 0x0c},
{PRO_DMOD, 0x0109, {0x02}, 0x01},
{PRO_DMOD, 0x0115, {0x0a, 0x03, 0x02, 0x80}, 0x04},
{PRO_DMOD, 0x011a, {0xcd, 0x62, 0xa4, 0x8c}, 0x04},
{PRO_DMOD, 0x0122, {0x03, 0x18, 0x9e}, 0x03},
{PRO_DMOD, 0x0127, {0x00, 0x07}, 0x02},
{PRO_DMOD, 0x012a, {0x53, 0x51, 0x4e, 0x43}, 0x04},
{PRO_DMOD, 0x0137, {0x00, 0x00, 0x07, 0x00, 0x06}, 0x05},
{PRO_DMOD, 0x013d, {0x00, 0x01, 0x5b, 0xb6, 0x59}, 0x05},
{PRO_DMOD, 0xf000, {0x0f}, 0x01},
{PRO_DMOD, 0xf016, {0x10, 0x04, 0x05, 0x04, 0x05}, 0x05},
{PRO_DMOD, 0xf01f, {0x8c, 0x00, 0x03, 0x0a, 0x0a}, 0x05},
{PRO_DMOD, 0xf029, {0x8c, 0x00, 0x00, 0x01}, 0x04},
{PRO_DMOD, 0xf064, {0x03, 0xf9, 0x03, 0x01}, 0x04},
{PRO_DMOD, 0xf06f, {0xe0, 0x03}, 0x02},
{PRO_DMOD, 0xf072, {0x0f, 0x03}, 0x02},
{PRO_DMOD, 0xf077, {0x01, 0x00}, 0x02},
{PRO_DMOD, 0xf085, {0xc0, 0x01, 0x00}, 0x03},
{PRO_DMOD, 0xf09b, {0x3f, 0x00, 0x20, 0x00, 0x0c, 0x00}, 0x06},
{PRO_DMOD, 0xf130, {0x04}, 0x01},
{PRO_DMOD, 0xf132, {0x04}, 0x01},
{PRO_DMOD, 0xf144, {0x1a}, 0x01},
{PRO_DMOD, 0xf146, {0x00}, 0x01},
{PRO_DMOD, 0xf14a, {0x01}, 0x01},
{PRO_DMOD, 0xf14c, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf14f, {0x04}, 0x01},
{PRO_DMOD, 0xf158, {0x7f}, 0x01},
{PRO_DMOD, 0xf15a, {0x00, 0x08}, 0x02},
{PRO_DMOD, 0xf15d, {0x03, 0x05}, 0x02},
{PRO_DMOD, 0xf163, {0x05}, 0x01},
{PRO_DMOD, 0xf166, {0x01, 0x40, 0x0f}, 0x03},
{PRO_DMOD, 0xf17a, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf183, {0x01}, 0x01},
{PRO_DMOD, 0xf19d, {0x40}, 0x01},
{PRO_DMOD, 0xf1bc, {0x36, 0x00}, 0x02},
{PRO_DMOD, 0xf1cb, {0xa0, 0x01}, 0x02},
{PRO_DMOD, 0xf204, {0x10}, 0x01},
{PRO_DMOD, 0xf214, {0x00}, 0x01},
{PRO_DMOD, 0xf24c, {0x88, 0x95, 0x9a, 0x90}, 0x04},
{PRO_DMOD, 0xf25a, {0x07, 0xe8, 0x03, 0xb0, 0x04}, 0x05},
{PRO_DMOD, 0xf270, {0x01, 0x02, 0x01, 0x02}, 0x04},
{PRO_DMOD, 0xf40e, {0x0a, 0x40, 0x08}, 0x03},
{PRO_DMOD, 0xf55f, {0x0a}, 0x01},
{PRO_DMOD, 0xf561, {0x15, 0x20}, 0x02},
{PRO_DMOD, 0xf5df, {0xfb, 0x00}, 0x02},
{PRO_DMOD, 0xf5e3, {0x09, 0x01, 0x01}, 0x03},
{PRO_DMOD, 0xf5f8, {0x01}, 0x01},
{PRO_DMOD, 0xf5fd, {0x01}, 0x01},
{PRO_DMOD, 0xf600, {0x05, 0x08, 0x0b, 0x0e, 0x11, 0x14, 0x17,
0x1f}, 0x08},
{PRO_DMOD, 0xf60e, {0x00, 0x04, 0x32, 0x10}, 0x04},
{PRO_DMOD, 0xf707, {0xfc, 0x00, 0x37, 0x00}, 0x04},
{PRO_DMOD, 0xf78b, {0x01}, 0x01},
{PRO_DMOD, 0xf80f, {0x40, 0x54, 0x5a}, 0x03},
{PRO_DMOD, 0xf905, {0x01}, 0x01},
{PRO_DMOD, 0xfb06, {0x03}, 0x01},
{PRO_DMOD, 0xfd8b, {0x00}, 0x01},
{0xff, 0x0000, {0x00}, 0x00} /* Terminating Entry */
};
/* Version 2 types */
static struct it913xset it9135_60[] = {
{PRO_DMOD, 0x0043, {0x00}, 0x01},
{PRO_DMOD, 0x0046, {0x60}, 0x01},
{PRO_DMOD, 0x0051, {0x01}, 0x01},
{PRO_DMOD, 0x005f, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0x0068, {0x0a}, 0x01},
{PRO_DMOD, 0x006a, {0x03}, 0x01},
{PRO_DMOD, 0x0070, {0x0a, 0x05, 0x02}, 0x03},
{PRO_DMOD, 0x0075, {0x8c, 0x8c, 0x8c, 0x8c, 0x01}, 0x05},
{PRO_DMOD, 0x007e, {0x04}, 0x01},
{PRO_DMOD, 0x0081, {0x0a, 0x12}, 0x02},
{PRO_DMOD, 0x0084, {0x0a, 0x33, 0xbe, 0xa0, 0xc6, 0xb6, 0x01}, 0x07},
{PRO_DMOD, 0x008e, {0x01}, 0x01},
{PRO_DMOD, 0x0092, {0x06, 0x00, 0x00, 0x00, 0x00}, 0x05},
{PRO_DMOD, 0x0099, {0x01}, 0x01},
{PRO_DMOD, 0x009b, {0x3c, 0x28}, 0x02},
{PRO_DMOD, 0x009f, {0xe1, 0xcf}, 0x02},
{PRO_DMOD, 0x00a3, {0x01, 0x5a, 0x01, 0x01}, 0x04},
{PRO_DMOD, 0x00a9, {0x00, 0x01}, 0x02},
{PRO_DMOD, 0x00b0, {0x01}, 0x01},
{PRO_DMOD, 0x00b3, {0x02, 0x3a}, 0x02},
{PRO_DMOD, 0x00b6, {0x14}, 0x01},
{PRO_DMOD, 0x00c0, {0x11, 0x00, 0x05, 0x01, 0x00}, 0x05},
{PRO_DMOD, 0x00c6, {0x19, 0x00}, 0x02},
{PRO_DMOD, 0x00cb, {0x32, 0x2c, 0x4f, 0x30}, 0x04},
{PRO_DMOD, 0x00f3, {0x05, 0xa0, 0x8c}, 0x03},
{PRO_DMOD, 0x00f8, {0x03, 0x06, 0x06}, 0x03},
{PRO_DMOD, 0x00fc, { 0x03, 0x03, 0x02, 0x0a, 0x50, 0x7b, 0x8c,
0x00, 0x02, 0xbe, 0x00}, 0x0b},
{PRO_DMOD, 0x0109, {0x02}, 0x01},
{PRO_DMOD, 0x0115, {0x0a, 0x03}, 0x02},
{PRO_DMOD, 0x011a, {0xbe}, 0x01},
{PRO_DMOD, 0x0124, {0xae}, 0x01},
{PRO_DMOD, 0x0127, {0x00}, 0x01},
{PRO_DMOD, 0x012a, {0x56, 0x50, 0x47, 0x42}, 0x04},
{PRO_DMOD, 0x0137, {0x00}, 0x01},
{PRO_DMOD, 0x013b, {0x08}, 0x01},
{PRO_DMOD, 0x013f, {0x5b}, 0x01},
{PRO_DMOD, 0x0141, { 0x59, 0xf9, 0x19, 0x19, 0x8c, 0x8c, 0x8c,
0x6e, 0x8c, 0x50, 0x8c, 0x8c, 0xac, 0xc6,
0x33}, 0x0f},
{PRO_DMOD, 0x0151, {0x28}, 0x01},
{PRO_DMOD, 0x0153, {0xbc}, 0x01},
{PRO_DMOD, 0x0178, {0x09}, 0x01},
{PRO_DMOD, 0x0181, {0x94, 0x6e}, 0x02},
{PRO_DMOD, 0x0185, {0x24}, 0x01},
{PRO_DMOD, 0x0187, {0x00, 0x00, 0xbe, 0x02, 0x80}, 0x05},
{PRO_DMOD, 0xed02, {0xff}, 0x01},
{PRO_DMOD, 0xee42, {0xff}, 0x01},
{PRO_DMOD, 0xee82, {0xff}, 0x01},
{PRO_DMOD, 0xf000, {0x0f}, 0x01},
{PRO_DMOD, 0xf01f, {0x8c, 0x00}, 0x02},
{PRO_DMOD, 0xf029, {0x8c, 0x00, 0x00}, 0x03},
{PRO_DMOD, 0xf064, {0x03, 0xf9, 0x03, 0x01}, 0x04},
{PRO_DMOD, 0xf06f, {0xe0, 0x03}, 0x02},
{PRO_DMOD, 0xf072, {0x0f, 0x03}, 0x02},
{PRO_DMOD, 0xf077, {0x01, 0x00}, 0x02},
{PRO_DMOD, 0xf087, {0x00}, 0x01},
{PRO_DMOD, 0xf09b, {0x3f, 0x00, 0x20, 0x00, 0x0c, 0x00}, 0x06},
{PRO_DMOD, 0xf130, {0x04}, 0x01},
{PRO_DMOD, 0xf132, {0x04}, 0x01},
{PRO_DMOD, 0xf144, {0x1a}, 0x01},
{PRO_DMOD, 0xf146, {0x00}, 0x01},
{PRO_DMOD, 0xf14a, {0x01}, 0x01},
{PRO_DMOD, 0xf14c, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf14f, {0x04}, 0x01},
{PRO_DMOD, 0xf158, {0x7f}, 0x01},
{PRO_DMOD, 0xf15a, {0x00, 0x08}, 0x02},
{PRO_DMOD, 0xf15d, {0x03, 0x05}, 0x02},
{PRO_DMOD, 0xf163, {0x05}, 0x01},
{PRO_DMOD, 0xf166, {0x01, 0x40, 0x0f}, 0x03},
{PRO_DMOD, 0xf17a, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf183, {0x01}, 0x01},
{PRO_DMOD, 0xf19d, {0x40}, 0x01},
{PRO_DMOD, 0xf1bc, {0x36, 0x00}, 0x02},
{PRO_DMOD, 0xf1cb, {0xa0, 0x01}, 0x02},
{PRO_DMOD, 0xf204, {0x10}, 0x01},
{PRO_DMOD, 0xf214, {0x00}, 0x01},
{PRO_DMOD, 0xf24c, {0x88, 0x95, 0x9a, 0x90}, 0x04},
{PRO_DMOD, 0xf25a, {0x07, 0xe8, 0x03, 0xb0, 0x04}, 0x05},
{PRO_DMOD, 0xf270, {0x01, 0x02, 0x01, 0x02}, 0x04},
{PRO_DMOD, 0xf40e, {0x0a, 0x40, 0x08}, 0x03},
{PRO_DMOD, 0xf55f, {0x0a}, 0x01},
{PRO_DMOD, 0xf561, {0x15, 0x20}, 0x02},
{PRO_DMOD, 0xf5e3, {0x09, 0x01, 0x01}, 0x03},
{PRO_DMOD, 0xf600, {0x05, 0x08, 0x0b, 0x0e, 0x11, 0x14, 0x17
, 0x1f}, 0x08},
{PRO_DMOD, 0xf60e, {0x00, 0x04, 0x32, 0x10}, 0x04},
{PRO_DMOD, 0xf707, {0xfc, 0x00, 0x37, 0x00}, 0x04},
{PRO_DMOD, 0xf78b, {0x01}, 0x01},
{PRO_DMOD, 0xf80f, {0x40, 0x54, 0x5a}, 0x03},
{PRO_DMOD, 0xf905, {0x01}, 0x01},
{PRO_DMOD, 0xfb06, {0x03}, 0x01},
{PRO_DMOD, 0xfd8b, {0x00}, 0x01},
{0xff, 0x0000, {0x00}, 0x00} /* Terminating Entry */
};
static struct it913xset it9135_61[] = {
{PRO_DMOD, 0x0043, {0x00}, 0x01},
{PRO_DMOD, 0x0046, {0x61}, 0x01},
{PRO_DMOD, 0x0051, {0x01}, 0x01},
{PRO_DMOD, 0x005f, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0x0068, {0x06}, 0x01},
{PRO_DMOD, 0x006a, {0x03}, 0x01},
{PRO_DMOD, 0x0070, {0x0a, 0x05, 0x02}, 0x03},
{PRO_DMOD, 0x0075, {0x8c, 0x8c, 0x8c, 0x90, 0x01}, 0x05},
{PRO_DMOD, 0x007e, {0x04}, 0x01},
{PRO_DMOD, 0x0081, {0x0a, 0x12}, 0x02},
{PRO_DMOD, 0x0084, {0x0a, 0x33, 0xbc, 0x9c, 0xcc, 0xa8, 0x01}, 0x07},
{PRO_DMOD, 0x008e, {0x01}, 0x01},
{PRO_DMOD, 0x0092, {0x06, 0x00, 0x00, 0x00, 0x00}, 0x05},
{PRO_DMOD, 0x0099, {0x01}, 0x01},
{PRO_DMOD, 0x009b, {0x3c, 0x28}, 0x02},
{PRO_DMOD, 0x009f, {0xe1, 0xcf}, 0x02},
{PRO_DMOD, 0x00a3, {0x01, 0x5c, 0x01, 0x01}, 0x04},
{PRO_DMOD, 0x00a9, {0x00, 0x01}, 0x02},
{PRO_DMOD, 0x00b0, {0x01}, 0x01},
{PRO_DMOD, 0x00b3, {0x02, 0x3a}, 0x02},
{PRO_DMOD, 0x00b6, {0x14}, 0x01},
{PRO_DMOD, 0x00c0, {0x11, 0x00, 0x05, 0x01, 0x00}, 0x05},
{PRO_DMOD, 0x00c6, {0x19, 0x00}, 0x02},
{PRO_DMOD, 0x00cb, {0x32, 0x2c, 0x4f, 0x30}, 0x04},
{PRO_DMOD, 0x00f3, {0x05, 0xa0, 0x8c}, 0x03},
{PRO_DMOD, 0x00f8, {0x03, 0x06, 0x06}, 0x03},
{PRO_DMOD, 0x00fc, { 0x03, 0x03, 0x02, 0x08, 0x50, 0x7b, 0x8c,
0x01, 0x02, 0xc8, 0x00}, 0x0b},
{PRO_DMOD, 0x0109, {0x02}, 0x01},
{PRO_DMOD, 0x0115, {0x0a, 0x03}, 0x02},
{PRO_DMOD, 0x011a, {0xc6}, 0x01},
{PRO_DMOD, 0x0124, {0xa8}, 0x01},
{PRO_DMOD, 0x0127, {0x00}, 0x01},
{PRO_DMOD, 0x012a, {0x59, 0x50, 0x47, 0x42}, 0x04},
{PRO_DMOD, 0x0137, {0x00}, 0x01},
{PRO_DMOD, 0x013b, {0x05}, 0x01},
{PRO_DMOD, 0x013f, {0x5b}, 0x01},
{PRO_DMOD, 0x0141, { 0x59, 0xf9, 0x59, 0x59, 0x8c, 0x8c, 0x8c,
0x7b, 0x8c, 0x50, 0x8c, 0x8c, 0xa8, 0xc6,
0x33}, 0x0f},
{PRO_DMOD, 0x0151, {0x28}, 0x01},
{PRO_DMOD, 0x0153, {0xcc}, 0x01},
{PRO_DMOD, 0x0178, {0x09}, 0x01},
{PRO_DMOD, 0x0181, {0x9c, 0x76}, 0x02},
{PRO_DMOD, 0x0185, {0x28}, 0x01},
{PRO_DMOD, 0x0187, {0x01, 0x00, 0xaa, 0x02, 0x80}, 0x05},
{PRO_DMOD, 0xed02, {0xff}, 0x01},
{PRO_DMOD, 0xee42, {0xff}, 0x01},
{PRO_DMOD, 0xee82, {0xff}, 0x01},
{PRO_DMOD, 0xf000, {0x0f}, 0x01},
{PRO_DMOD, 0xf01f, {0x8c, 0x00}, 0x02},
{PRO_DMOD, 0xf029, {0x8c, 0x00, 0x00}, 0x03},
{PRO_DMOD, 0xf064, {0x03, 0xf9, 0x03, 0x01}, 0x04},
{PRO_DMOD, 0xf06f, {0xe0, 0x03}, 0x02},
{PRO_DMOD, 0xf072, {0x0f, 0x03}, 0x02},
{PRO_DMOD, 0xf077, {0x01, 0x00}, 0x02},
{PRO_DMOD, 0xf087, {0x00}, 0x01},
{PRO_DMOD, 0xf09b, {0x3f, 0x00, 0x20, 0x00, 0x0c, 0x00}, 0x06},
{PRO_DMOD, 0xf130, {0x04}, 0x01},
{PRO_DMOD, 0xf132, {0x04}, 0x01},
{PRO_DMOD, 0xf144, {0x1a}, 0x01},
{PRO_DMOD, 0xf146, {0x00}, 0x01},
{PRO_DMOD, 0xf14a, {0x01}, 0x01},
{PRO_DMOD, 0xf14c, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf14f, {0x04}, 0x01},
{PRO_DMOD, 0xf158, {0x7f}, 0x01},
{PRO_DMOD, 0xf15a, {0x00, 0x08}, 0x02},
{PRO_DMOD, 0xf15d, {0x03, 0x05}, 0x02},
{PRO_DMOD, 0xf163, {0x05}, 0x01},
{PRO_DMOD, 0xf166, {0x01, 0x40, 0x0f}, 0x03},
{PRO_DMOD, 0xf17a, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf183, {0x01}, 0x01},
{PRO_DMOD, 0xf19d, {0x40}, 0x01},
{PRO_DMOD, 0xf1bc, {0x36, 0x00}, 0x02},
{PRO_DMOD, 0xf1cb, {0xa0, 0x01}, 0x02},
{PRO_DMOD, 0xf204, {0x10}, 0x01},
{PRO_DMOD, 0xf214, {0x00}, 0x01},
{PRO_DMOD, 0xf24c, {0x88, 0x95, 0x9a, 0x90}, 0x04},
{PRO_DMOD, 0xf25a, {0x07, 0xe8, 0x03, 0xb0, 0x04}, 0x05},
{PRO_DMOD, 0xf270, {0x01, 0x02, 0x01, 0x02}, 0x04},
{PRO_DMOD, 0xf40e, {0x0a, 0x40, 0x08}, 0x03},
{PRO_DMOD, 0xf55f, {0x0a}, 0x01},
{PRO_DMOD, 0xf561, {0x15, 0x20}, 0x02},
{PRO_DMOD, 0xf5e3, {0x09, 0x01, 0x01}, 0x03},
{PRO_DMOD, 0xf600, { 0x05, 0x08, 0x0b, 0x0e, 0x11, 0x14, 0x17,
0x1f}, 0x08},
{PRO_DMOD, 0xf60e, {0x00, 0x04, 0x32, 0x10}, 0x04},
{PRO_DMOD, 0xf707, {0xfc, 0x00, 0x37, 0x00}, 0x04},
{PRO_DMOD, 0xf78b, {0x01}, 0x01},
{PRO_DMOD, 0xf80f, {0x40, 0x54, 0x5a}, 0x03},
{PRO_DMOD, 0xf905, {0x01}, 0x01},
{PRO_DMOD, 0xfb06, {0x03}, 0x01},
{PRO_DMOD, 0xfd8b, {0x00}, 0x01},
{0xff, 0x0000, {0x00}, 0x00} /* Terminating Entry */
};
static struct it913xset it9135_62[] = {
{PRO_DMOD, 0x0043, {0x00}, 0x01},
{PRO_DMOD, 0x0046, {0x62}, 0x01},
{PRO_DMOD, 0x0051, {0x01}, 0x01},
{PRO_DMOD, 0x005f, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0x0068, {0x0a}, 0x01},
{PRO_DMOD, 0x006a, {0x03}, 0x01},
{PRO_DMOD, 0x0070, {0x0a, 0x05, 0x02}, 0x03},
{PRO_DMOD, 0x0075, {0x8c, 0x8c, 0x8c, 0x8c, 0x01}, 0x05},
{PRO_DMOD, 0x007e, {0x04}, 0x01},
{PRO_DMOD, 0x0081, {0x0a, 0x12}, 0x02},
{PRO_DMOD, 0x0084, { 0x0a, 0x33, 0xb8, 0x9c, 0xb2, 0xa6, 0x01},
0x07},
{PRO_DMOD, 0x008e, {0x01}, 0x01},
{PRO_DMOD, 0x0092, {0x06, 0x00, 0x00, 0x00, 0x00}, 0x05},
{PRO_DMOD, 0x0099, {0x01}, 0x01},
{PRO_DMOD, 0x009b, {0x3c, 0x28}, 0x02},
{PRO_DMOD, 0x009f, {0xe1, 0xcf}, 0x02},
{PRO_DMOD, 0x00a3, {0x01, 0x5a, 0x01, 0x01}, 0x04},
{PRO_DMOD, 0x00a9, {0x00, 0x01}, 0x02},
{PRO_DMOD, 0x00b0, {0x01}, 0x01},
{PRO_DMOD, 0x00b3, {0x02, 0x3a}, 0x02},
{PRO_DMOD, 0x00b6, {0x14}, 0x01},
{PRO_DMOD, 0x00c0, {0x11, 0x00, 0x05, 0x01, 0x00}, 0x05},
{PRO_DMOD, 0x00c6, {0x19, 0x00}, 0x02},
{PRO_DMOD, 0x00cb, {0x32, 0x2c, 0x4f, 0x30}, 0x04},
{PRO_DMOD, 0x00f3, {0x05, 0x8c, 0x8c}, 0x03},
{PRO_DMOD, 0x00f8, {0x03, 0x06, 0x06}, 0x03},
{PRO_DMOD, 0x00fc, { 0x02, 0x03, 0x02, 0x09, 0x50, 0x6e, 0x8c,
0x02, 0x02, 0xc2, 0x00}, 0x0b},
{PRO_DMOD, 0x0109, {0x02}, 0x01},
{PRO_DMOD, 0x0115, {0x0a, 0x03}, 0x02},
{PRO_DMOD, 0x011a, {0xb8}, 0x01},
{PRO_DMOD, 0x0124, {0xa8}, 0x01},
{PRO_DMOD, 0x0127, {0x00}, 0x01},
{PRO_DMOD, 0x012a, {0x53, 0x51, 0x4e, 0x43}, 0x04},
{PRO_DMOD, 0x0137, {0x00}, 0x01},
{PRO_DMOD, 0x013b, {0x05}, 0x01},
{PRO_DMOD, 0x013f, {0x5b}, 0x01},
{PRO_DMOD, 0x0141, { 0x59, 0xf9, 0x59, 0x19, 0x8c, 0x8c, 0x8c,
0x7b, 0x8c, 0x50, 0x70, 0x8c, 0x96, 0xd0,
0x33}, 0x0f},
{PRO_DMOD, 0x0151, {0x28}, 0x01},
{PRO_DMOD, 0x0153, {0xb2}, 0x01},
{PRO_DMOD, 0x0178, {0x09}, 0x01},
{PRO_DMOD, 0x0181, {0x9c, 0x6e}, 0x02},
{PRO_DMOD, 0x0185, {0x24}, 0x01},
{PRO_DMOD, 0x0187, {0x00, 0x00, 0xb8, 0x02, 0x80}, 0x05},
{PRO_DMOD, 0xed02, {0xff}, 0x01},
{PRO_DMOD, 0xee42, {0xff}, 0x01},
{PRO_DMOD, 0xee82, {0xff}, 0x01},
{PRO_DMOD, 0xf000, {0x0f}, 0x01},
{PRO_DMOD, 0xf01f, {0x8c, 0x00}, 0x02},
{PRO_DMOD, 0xf029, {0x8c, 0x00, 0x00}, 0x03},
{PRO_DMOD, 0xf064, {0x03, 0xf9, 0x03, 0x01}, 0x04},
{PRO_DMOD, 0xf06f, {0xe0, 0x03}, 0x02},
{PRO_DMOD, 0xf072, {0x0f, 0x03}, 0x02},
{PRO_DMOD, 0xf077, {0x01, 0x00}, 0x02},
{PRO_DMOD, 0xf087, {0x00}, 0x01},
{PRO_DMOD, 0xf09b, {0x3f, 0x00, 0x20, 0x00, 0x0c, 0x00}, 0x06},
{PRO_DMOD, 0xf130, {0x04}, 0x01},
{PRO_DMOD, 0xf132, {0x04}, 0x01},
{PRO_DMOD, 0xf144, {0x1a}, 0x01},
{PRO_DMOD, 0xf146, {0x00}, 0x01},
{PRO_DMOD, 0xf14a, {0x01}, 0x01},
{PRO_DMOD, 0xf14c, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf14f, {0x04}, 0x01},
{PRO_DMOD, 0xf158, {0x7f}, 0x01},
{PRO_DMOD, 0xf15a, {0x00, 0x08}, 0x02},
{PRO_DMOD, 0xf15d, {0x03, 0x05}, 0x02},
{PRO_DMOD, 0xf163, {0x05}, 0x01},
{PRO_DMOD, 0xf166, {0x01, 0x40, 0x0f}, 0x03},
{PRO_DMOD, 0xf17a, {0x00, 0x00}, 0x02},
{PRO_DMOD, 0xf183, {0x01}, 0x01},
{PRO_DMOD, 0xf19d, {0x40}, 0x01},
{PRO_DMOD, 0xf1bc, {0x36, 0x00}, 0x02},
{PRO_DMOD, 0xf1cb, {0xa0, 0x01}, 0x02},
{PRO_DMOD, 0xf204, {0x10}, 0x01},
{PRO_DMOD, 0xf214, {0x00}, 0x01},
{PRO_DMOD, 0xf24c, {0x88, 0x95, 0x9a, 0x90}, 0x04},
{PRO_DMOD, 0xf25a, {0x07, 0xe8, 0x03, 0xb0, 0x04}, 0x05},
{PRO_DMOD, 0xf270, {0x01, 0x02, 0x01, 0x02}, 0x04},
{PRO_DMOD, 0xf40e, {0x0a, 0x40, 0x08}, 0x03},
{PRO_DMOD, 0xf55f, {0x0a}, 0x01},
{PRO_DMOD, 0xf561, {0x15, 0x20}, 0x02},
{PRO_DMOD, 0xf5e3, {0x09, 0x01, 0x01}, 0x03},
{PRO_DMOD, 0xf600, { 0x05, 0x08, 0x0b, 0x0e, 0x11, 0x14, 0x17,
0x1f}, 0x08},
{PRO_DMOD, 0xf60e, {0x00, 0x04, 0x32, 0x10}, 0x04},
{PRO_DMOD, 0xf707, {0xfc, 0x00, 0x37, 0x00}, 0x04},
{PRO_DMOD, 0xf78b, {0x01}, 0x01},
{PRO_DMOD, 0xf80f, {0x40, 0x54, 0x5a}, 0x03},
{PRO_DMOD, 0xf905, {0x01}, 0x01},
{PRO_DMOD, 0xfb06, {0x03}, 0x01},
{PRO_DMOD, 0xfd8b, {0x00}, 0x01},
{0xff, 0x0000, {0x00}, 0x00} /* Terminating Entry */
};
/* Tuner setting scripts (still keeping it9137) */
static struct it913xset it9137_tuner_off[] = {
{PRO_DMOD, 0xfba8, {0x01}, 0x01}, /* Tuner Clock Off */