1
0
mirror of https://github.com/marqs85/ossc.git synced 2024-06-01 17:41:37 +00:00

Reset sync processing when disabling output

This commit is contained in:
marqs 2016-05-25 01:06:48 +03:00
parent 9c2cdd64cf
commit 4548bf0b8c
2 changed files with 889 additions and 885 deletions

File diff suppressed because it is too large Load Diff

View File

@ -106,11 +106,15 @@ inline void tvp_reset()
inline void tvp_disable_output() inline void tvp_disable_output()
{ {
usleep(10000); alt_u8 syncproc_rst = tvp_readreg(TVP_MISCCTRL4) | (1<<7);
tvp_writereg(TVP_MISCCTRL1, 0x13); tvp_writereg(TVP_MISCCTRL1, 0x13);
usleep(10000); usleep(10000);
tvp_writereg(TVP_MISCCTRL2, 0x03); tvp_writereg(TVP_MISCCTRL2, 0x03);
usleep(10000); usleep(10000);
tvp_writereg(TVP_MISCCTRL4, syncproc_rst);
usleep(1000);
tvp_writereg(TVP_MISCCTRL4, syncproc_rst & 0x7F);
} }
inline void tvp_enable_output() inline void tvp_enable_output()