enable 35MHz video LPF for 720p & 1080i in auto mode

This commit is contained in:
marqs 2019-03-16 01:20:16 +02:00
parent 2bac00fd82
commit f561f4586e
2 changed files with 7 additions and 5 deletions

View File

@ -154,17 +154,17 @@ void set_lpf(alt_u8 lpf)
break;
case VIDEO_HDTV:
tvp_set_lpf(0);
ths_set_lpf(THS_LPF_BYPASS);
ths_set_lpf((pclk < 80000000) ? THS_LPF_35MHZ : THS_LPF_BYPASS);
break;
case VIDEO_EDTV:
tvp_set_lpf(0);
ths_set_lpf(1);
ths_set_lpf(THS_LPF_16MHZ);
break;
case VIDEO_SDTV:
case VIDEO_LDTV:
default:
tvp_set_lpf(0);
ths_set_lpf(0);
ths_set_lpf(THS_LPF_9MHZ);
break;
}
} else {

View File

@ -34,6 +34,10 @@ typedef enum {
THS_STANDBY = 2
} ths_input_t;
#define THS_LPF_9MHZ 0x00
#define THS_LPF_16MHZ 0x01
#define THS_LPF_35MHZ 0x02
#define THS_LPF_BYPASS 0x03
#define THS_LPF_DEFAULT 0x3
#define THS_LPF_MASK 0x18
#define THS_LPF_OFFS 3
@ -49,8 +53,6 @@ typedef enum {
#define THS_MODE_AC_BIAS 4
#define THS_MODE_STC 6 //mid bias
#define THS_LPF_BYPASS 0x03
int ths_init();
void ths_set_lpf(alt_u8 val);