int rk1000_tv_ntsc_init(void) { uint8 Tv_encoder_regs[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; uint8 Tv_encoder_control_regs[] = {0x43, 0x01}; int i; int ret; D("enter\n"); for(i=0; i<sizeof(Tv_encoder_regs); i++){ ret = rk1000_tv_write_block(i, Tv_encoder_regs+i, 1); if(ret < 0){ E("rk1000_tv_write_block err!\n"); return ret; } } for(i=0; i<sizeof(Tv_encoder_control_regs); i++){ ret = rk1000_control_write_block(i+3, Tv_encoder_control_regs+i, 1); if(ret < 0){ E("rk1000_control_write_block err!\n"); return ret; } } return 0; }
int rk1000_tv_pal_init(void) { unsigned char Tv_encoder_regs[] = {0x06, 0x00, 0x00, 0x00, 0x00, 0x00}; unsigned char Tv_encoder_control_regs[] = {0x41, 0x01}; int i; int ret; for(i=0; i<sizeof(Tv_encoder_regs); i++){ ret = rk1000_tv_write_block(i, Tv_encoder_regs+i, 1); if(ret < 0){ E("rk1000_tv_write_block err!\n"); return ret; } } for(i=0; i<sizeof(Tv_encoder_control_regs); i++){ ret = rk1000_control_write_block(i+3, Tv_encoder_control_regs+i, 1); if(ret < 0){ E("rk1000_control_write_block err!\n"); return ret; } } return 0; }
int rk1000_tv_standby(u8 enable) { uint8 val1; uint8 val2; int ret; D("enter\n"); if(enable){ val1 = 0x00; val2 = 0x07; ret = rk1000_control_write_block(0x03, &val1, 1); if(ret < 0){ E("rk1000_control_write_block err!\n"); return ret; } ret = rk1000_tv_write_block(0x03, &val2, 1); if(ret < 0){ E("rk1000_tv_write_block err!\n"); return ret; } } return 0; }