34 { 0x00080, 0x01, 0xff },
35 { 0x00081, 0x05, 0xff },
36 { 0x00085, 0x07, 0xff },
37 { 0x00088, 0x01, 0xff },
39 { 0x00082, 0x20, 0x60 },
40 { 0x1016a, 0x48, 0xff },
41 { 0x100a5, 0x00, 0x01 },
42 { 0x10020, 0x06, 0x07 },
43 { 0x10059, 0x50, 0xff },
44 { 0x10087, 0x0c, 0x3c },
45 { 0x1008b, 0x07, 0xff },
46 { 0x1001f, priv->
cfg.if_agc_polarity << 7, 0x80 },
47 { 0x10070, priv->
cfg.ts_mode, 0xff },
50 dev_dbg(&priv->
i2c->dev,
"%s: frequency=%d symbol_rate=%d\n", __func__,
54 if (fe->
ops.tuner_ops.set_params)
55 fe->
ops.tuner_ops.set_params(fe);
70 if (fe->
ops.tuner_ops.get_if_frequency) {
71 ret = fe->
ops.tuner_ops.get_if_frequency(fe, &if_freq);
77 dev_dbg(&priv->
i2c->dev,
"%s: if_freq=%d\n", __func__, if_freq);
82 buf[0] = (if_ctl >> 8) & 0x3f;
83 buf[1] = (if_ctl >> 0) & 0xff;
99 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
114 c->
symbol_rate = 2500 * ((buf[0] & 0x0f) << 8 | buf[1]);
120 switch ((buf[0] >> 0) & 0x07) {
138 switch ((buf[0] >> 7) & 0x01) {
149 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
157 u8 buf[3], start_ber = 0;
165 if ((buf[2] >> 7) & 0x01 || (buf[2] >> 4) & 0x01) {
166 *ber = (buf[2] & 0x0f) << 16 | buf[1] << 8 | buf[0];
183 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
199 tmp = (buf[0] & 0x03) << 8 | buf[1];
200 tmp = (~tmp & 0x03ff);
209 *strength = tmp * 0xffff / (350-0);
213 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
229 if (((tmp >> 0) & 0x03) % 2) {
241 #define CXD2820R_LOG2_E_24 24204406
250 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
272 if (((buf[0] >> 0) & 0x01) == 1) {
276 if (((buf[1] >> 3) & 0x01) == 1) {
282 dev_dbg(&priv->
i2c->dev,
"%s: lock=%02x %02x\n", __func__, buf[0],
287 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
302 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);
311 { 0x000ff, 0x1f, 0xff },
312 { 0x00085, 0x00, 0xff },
313 { 0x00088, 0x01, 0xff },
314 { 0x00081, 0x00, 0xff },
315 { 0x00080, 0x00, 0xff },
331 dev_dbg(&priv->
i2c->dev,
"%s: failed=%d\n", __func__, ret);