28 static u8 alps_bsru6_inittab[] = {
75 if (srate < 1500000) {
78 }
else if (srate < 3000000) {
81 }
else if (srate < 7000000) {
84 }
else if (srate < 14000000) {
87 }
else if (srate < 30000000) {
90 }
else if (srate < 45000000) {
95 stv0299_writereg(fe, 0x13, aclk);
96 stv0299_writereg(fe, 0x14, bclk);
97 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
98 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
99 stv0299_writereg(fe, 0x21, ratio & 0xf0);
104 static int alps_bsru6_tuner_set_params(
struct dvb_frontend *fe)
109 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf =
buf, .len =
sizeof(
buf) };
116 buf[0] = (div >> 8) & 0x7f;
118 buf[2] = 0x80 | ((div & 0x18000) >> 10) | 4;
124 if (fe->
ops.i2c_gate_ctrl)
125 fe->
ops.i2c_gate_ctrl(fe, 1);
132 .demod_address = 0x68,
133 .inittab = alps_bsru6_inittab,
140 .set_symbol_rate = alps_bsru6_set_symbol_rate,