Lines Matching +full:0 +full:x6800

10 static u8 zd1301_demod_gain = 0x38;
12 MODULE_PARM_DESC(gain, "gain (value: 0x00 - 0x70, default: 0x38)");
71 r6a50_val = 0x78; in zd1301_demod_set_frontend()
74 r6a50_val = 0x68; in zd1301_demod_set_frontend()
77 r6a50_val = 0x58; in zd1301_demod_set_frontend()
84 ret = zd1301_demod_wreg(dev, 0x6a60, 0x11); in zd1301_demod_set_frontend()
87 ret = zd1301_demod_wreg(dev, 0x6a47, 0x46); in zd1301_demod_set_frontend()
90 ret = zd1301_demod_wreg(dev, 0x6a48, 0x46); in zd1301_demod_set_frontend()
93 ret = zd1301_demod_wreg(dev, 0x6a4a, 0x15); in zd1301_demod_set_frontend()
96 ret = zd1301_demod_wreg(dev, 0x6a4b, 0x63); in zd1301_demod_set_frontend()
99 ret = zd1301_demod_wreg(dev, 0x6a5b, 0x99); in zd1301_demod_set_frontend()
102 ret = zd1301_demod_wreg(dev, 0x6a3b, 0x10); in zd1301_demod_set_frontend()
105 ret = zd1301_demod_wreg(dev, 0x6806, 0x01); in zd1301_demod_set_frontend()
108 ret = zd1301_demod_wreg(dev, 0x6a41, 0x08); in zd1301_demod_set_frontend()
111 ret = zd1301_demod_wreg(dev, 0x6a42, 0x46); in zd1301_demod_set_frontend()
114 ret = zd1301_demod_wreg(dev, 0x6a44, 0x14); in zd1301_demod_set_frontend()
117 ret = zd1301_demod_wreg(dev, 0x6a45, 0x67); in zd1301_demod_set_frontend()
120 ret = zd1301_demod_wreg(dev, 0x6a38, 0x00); in zd1301_demod_set_frontend()
123 ret = zd1301_demod_wreg(dev, 0x6a4c, 0x52); in zd1301_demod_set_frontend()
126 ret = zd1301_demod_wreg(dev, 0x6a49, 0x2a); in zd1301_demod_set_frontend()
129 ret = zd1301_demod_wreg(dev, 0x6840, 0x2e); in zd1301_demod_set_frontend()
132 ret = zd1301_demod_wreg(dev, 0x6a50, r6a50_val); in zd1301_demod_set_frontend()
135 ret = zd1301_demod_wreg(dev, 0x6a38, 0x07); in zd1301_demod_set_frontend()
139 return 0; in zd1301_demod_set_frontend()
153 ret = zd1301_demod_wreg(dev, 0x6a43, 0x70); in zd1301_demod_sleep()
156 ret = zd1301_demod_wreg(dev, 0x684e, 0x00); in zd1301_demod_sleep()
159 ret = zd1301_demod_wreg(dev, 0x6849, 0x00); in zd1301_demod_sleep()
162 ret = zd1301_demod_wreg(dev, 0x68e2, 0xd7); in zd1301_demod_sleep()
165 ret = zd1301_demod_wreg(dev, 0x68e0, 0x39); in zd1301_demod_sleep()
168 ret = zd1301_demod_wreg(dev, 0x6840, 0x21); in zd1301_demod_sleep()
172 return 0; in zd1301_demod_sleep()
186 ret = zd1301_demod_wreg(dev, 0x6840, 0x26); in zd1301_demod_init()
189 ret = zd1301_demod_wreg(dev, 0x68e0, 0xff); in zd1301_demod_init()
192 ret = zd1301_demod_wreg(dev, 0x68e2, 0xd8); in zd1301_demod_init()
195 ret = zd1301_demod_wreg(dev, 0x6849, 0x4e); in zd1301_demod_init()
198 ret = zd1301_demod_wreg(dev, 0x684e, 0x01); in zd1301_demod_init()
201 ret = zd1301_demod_wreg(dev, 0x6a43, zd1301_demod_gain); in zd1301_demod_init()
205 return 0; in zd1301_demod_init()
222 return 0; in zd1301_demod_get_tune_settings()
233 ret = zd1301_demod_rreg(dev, 0x6a24, &u8tmp); in zd1301_demod_read_status()
236 if (u8tmp > 0x00 && u8tmp < 0x20) in zd1301_demod_read_status()
240 *status = 0; in zd1301_demod_read_status()
246 * 0x6a05: get some gain value in zd1301_demod_read_status()
247 * 0x6a06: get about same gain value than set to 0x6a43 in zd1301_demod_read_status()
248 * 0x6a07: get some gain value in zd1301_demod_read_status()
249 * 0x6a43: set gain value by driver in zd1301_demod_read_status()
250 * 0x6a24: get demod lock bits (FSM stage?) in zd1301_demod_read_status()
253 * value for register 0x6a43, based likely values from register 0x6a05 in zd1301_demod_read_status()
254 * and 0x6a07. Looks like gain register 0x6a43 value could be from in zd1301_demod_read_status()
255 * range 0x00 - 0x70. in zd1301_demod_read_status()
261 ret = zd1301_demod_wreg(dev, 0x6a43, dev->gain); in zd1301_demod_read_status()
266 return 0; in zd1301_demod_read_status()
320 (_num == 2 && !(_msg[0].flags & I2C_M_RD) && (_msg[1].flags & I2C_M_RD)) in zd1301_demod_i2c_master_xfer()
322 (_num == 1 && !(_msg[0].flags & I2C_M_RD)) in zd1301_demod_i2c_master_xfer()
324 (_num == 1 && (_msg[0].flags & I2C_M_RD)) in zd1301_demod_i2c_master_xfer()
326 dev_dbg(&pdev->dev, "write&read msg[0].len=%u msg[1].len=%u\n", in zd1301_demod_i2c_master_xfer()
327 msg[0].len, msg[1].len); in zd1301_demod_i2c_master_xfer()
328 if (msg[0].len > 1 || msg[1].len > 8) { in zd1301_demod_i2c_master_xfer()
333 ret = zd1301_demod_wreg(dev, 0x6811, 0x80); in zd1301_demod_i2c_master_xfer()
336 ret = zd1301_demod_wreg(dev, 0x6812, 0x05); in zd1301_demod_i2c_master_xfer()
339 ret = zd1301_demod_wreg(dev, 0x6813, msg[1].addr << 1); in zd1301_demod_i2c_master_xfer()
342 ret = zd1301_demod_wreg(dev, 0x6801, msg[0].buf[0]); in zd1301_demod_i2c_master_xfer()
345 ret = zd1301_demod_wreg(dev, 0x6802, 0x00); in zd1301_demod_i2c_master_xfer()
348 ret = zd1301_demod_wreg(dev, 0x6803, 0x06); in zd1301_demod_i2c_master_xfer()
351 ret = zd1301_demod_wreg(dev, 0x6805, 0x00); in zd1301_demod_i2c_master_xfer()
354 ret = zd1301_demod_wreg(dev, 0x6804, msg[1].len); in zd1301_demod_i2c_master_xfer()
363 ret = zd1301_demod_rreg(dev, 0x6804, &u8tmp); in zd1301_demod_i2c_master_xfer()
368 for (i = 0; i < msg[1].len; i++) { in zd1301_demod_i2c_master_xfer()
369 ret = zd1301_demod_rreg(dev, 0x0600 + i, &msg[1].buf[i]); in zd1301_demod_i2c_master_xfer()
374 dev_dbg(&pdev->dev, "write msg[0].len=%u\n", msg[0].len); in zd1301_demod_i2c_master_xfer()
375 if (msg[0].len > 1 + 8) { in zd1301_demod_i2c_master_xfer()
380 ret = zd1301_demod_wreg(dev, 0x6811, 0x80); in zd1301_demod_i2c_master_xfer()
383 ret = zd1301_demod_wreg(dev, 0x6812, 0x01); in zd1301_demod_i2c_master_xfer()
386 ret = zd1301_demod_wreg(dev, 0x6813, msg[0].addr << 1); in zd1301_demod_i2c_master_xfer()
389 ret = zd1301_demod_wreg(dev, 0x6800, msg[0].buf[0]); in zd1301_demod_i2c_master_xfer()
392 ret = zd1301_demod_wreg(dev, 0x6802, 0x00); in zd1301_demod_i2c_master_xfer()
395 ret = zd1301_demod_wreg(dev, 0x6803, 0x06); in zd1301_demod_i2c_master_xfer()
399 for (i = 0; i < msg[0].len - 1; i++) { in zd1301_demod_i2c_master_xfer()
400 ret = zd1301_demod_wreg(dev, 0x0600 + i, msg[0].buf[1 + i]); in zd1301_demod_i2c_master_xfer()
405 ret = zd1301_demod_wreg(dev, 0x6805, 0x80); in zd1301_demod_i2c_master_xfer()
408 ret = zd1301_demod_wreg(dev, 0x6804, msg[0].len - 1); in zd1301_demod_i2c_master_xfer()
417 ret = zd1301_demod_rreg(dev, 0x6804, &u8tmp); in zd1301_demod_i2c_master_xfer()
422 dev_dbg(&pdev->dev, "unknown msg[0].len=%u\n", msg[0].len); in zd1301_demod_i2c_master_xfer()
484 ret = zd1301_demod_wreg(dev, 0x6840, 0x21); in zd1301_demod_probe()
487 ret = zd1301_demod_wreg(dev, 0x6a38, 0x07); in zd1301_demod_probe()
510 return 0; in zd1301_demod_probe()