- int ret=-1;
- int i=0;
- unsigned char tv_encoder_regs[] = {0x00, 0x00, 0x00, 0x03, 0x00, 0x00};
- unsigned char tv_encoder_control_regs[] = {0x43, 0x01};
-
-
- for (i = 0; i < sizeof(tv_encoder_regs); i++) {
- ret = rk1000_i2c_recv(I2C_ADDR_TVE, i, buf);
- printk("---%x--\n",buf[0]);
- if (ret < 0) {
- pr_err("rk1000_tv_write_block err!\n");
- return ret;
- }
- }
-
- for (i = 0; i < sizeof(tv_encoder_control_regs); i++) {
- ret = rk1000_i2c_recv(I2C_ADDR_CTRL,i + 3,buf);
- printk("cntrl---%x--\n",buf[0]);
- if (ret < 0) {
- pr_err("rk1000_control_write_block err!\n");
- return ret;
- }
- }
- return 0;
+ int ret = -1;
+ int i = 0;
+ unsigned char tv_encoder_regs[] = {0x00, 0x00, 0x00, 0x03, 0x00, 0x00};
+ unsigned char tv_encoder_control_regs[] = {0x43, 0x01};
+
+ for (i = 0; i < sizeof(tv_encoder_regs); i++) {
+ ret = rk1000_i2c_recv(I2C_ADDR_TVE, i, buf);
+ pr_info("---%x--\n", buf[0]);
+ if (ret < 0) {
+ pr_err("rk1000_tv_write_block err!\n");
+ return ret;
+ }
+ }
+
+ for (i = 0; i < sizeof(tv_encoder_control_regs); i++) {
+ ret = rk1000_i2c_recv(I2C_ADDR_CTRL, i + 3, buf);
+ pr_info("cntrl---%x--\n", buf[0]);
+ if (ret < 0) {
+ pr_err("rk1000_control_write_block err!\n");
+ return ret;
+ }
+ }
+ return 0;