mirror of
https://github.com/marqs85/ossc
synced 2026-11-01 04:37:16 +03:00
some desperate code size savings
This commit is contained in:
1 parent
183b0fa78f
commit
c91988e5fb
3 files changed
+10
-7
No files matched your search
@@ -207,7 +207,7 @@ void tvp_init()
|
||||
}
|
||||
|
||||
void tvp_set_gain_offset(color_setup_t *col) {
|
||||
tvp_writereg(TVP_BG_CGAIN, ((col->c_gain << 4) | (col->c_gain & 0xF)));
|
||||
tvp_writereg(TVP_BG_CGAIN, ((col->c_gain << 4) | col->c_gain));
|
||||
tvp_writereg(TVP_R_CGAIN, col->c_gain);
|
||||
tvp_writereg(TVP_R_FGAIN, col->r_f_gain);
|
||||
tvp_writereg(TVP_G_FGAIN, col->g_f_gain);
|
||||
@@ -215,7 +215,6 @@ void tvp_set_gain_offset(color_setup_t *col) {
|
||||
tvp_writereg(TVP_R_FOFFSET_MSB, col->r_f_off);
|
||||
tvp_writereg(TVP_G_FOFFSET_MSB, col->g_f_off);
|
||||
tvp_writereg(TVP_B_FOFFSET_MSB, col->b_f_off);
|
||||
|
||||
}
|
||||
|
||||
// Configure H-PLL (sampling rate, VCO gain and charge pump current)
|
||||
|
||||
Reference in new issue
Block a user