Skip to content

Commit

Permalink
fix set_vclk_phase
Browse files Browse the repository at this point in the history
  • Loading branch information
ligenxxxx committed Apr 24, 2024
1 parent b9f93b7 commit afaed76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/driver/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ pthread_mutex_t hardware_mutex;
void set_vclk_phase(video_source_t vs, uint8_t reg_8d_sel) {

if (reg_8d_sel)
I2C_Write(ADDR_FPGA, 0x8d, vclk_phase[vs][3]);
I2C_Write(ADDR_FPGA, 0x8d, vclk_phase[vs].reg_fpga_8d_val1);
else
I2C_Write(ADDR_FPGA, 0x8d, vclk_phase[vs][0]);
I2C_Write(ADDR_FPGA, 0x8d, vclk_phase[vs].reg_fpga_8d_val0);

I2C_Write(ADDR_FPGA, 0x8e, vclk_phase[vs][1]);
I2C_Write(ADDR_AL, 0x14, vclk_phase[vs][2]);
I2C_Write(ADDR_FPGA, 0x8e, vclk_phase[vs].reg_fpga_8e_val);
I2C_Write(ADDR_AL, 0x14, vclk_phase[vs].reg_al_14_val);
}

void hw_stat_init() {
Expand Down

0 comments on commit afaed76

Please sign in to comment.