Tweak auto refresh setting

pull/158/head
IanSB 2020-09-23 00:42:56 +01:00
rodzic 84d8120843
commit 8bae7f2c8c
7 zmienionych plików z 15 dodań i 18 usunięć

Wyświetl plik

@ -241,7 +241,7 @@ static const char *vlockspeed_names[] = {
static const char *vlockadj_names[] = {
"-5% to +5%",
"Full Range"
"Unlimited"
};
static const char *fontsize_names[] = {
@ -5032,14 +5032,14 @@ void osd_init() {
}
if (cbytes) {
prop = get_prop_no_space(config_buffer, "#force_full_range");
prop = get_prop_no_space(config_buffer, "#force_genlock_range");
}
if (!prop || !cbytes) {
prop = "0";
}
log_info("Read force_full_range: %s", prop);
log_info("Read force_genlock_range: %s", prop);
int val = atoi(prop);
set_force_full_range(val);
set_force_genlock_range(val);
if (cbytes) {
prop = get_prop_no_space(config_buffer, "#scaling");

Wyświetl plik

@ -242,7 +242,7 @@ static int helper_flag = 0;
static int simple_detected = 0;
static int supports8bit = 0;
static int newanalog = 0;
static int force_full_range = 0;
static int force_genlock_range = 0;
static unsigned int pll_freq = 0;
static unsigned int new_clock = 0;
static unsigned int old_pll_freq = 0;
@ -956,7 +956,7 @@ static void recalculate_hdmi_clock(int vlockmode, int genlock_adjust) {
vlock_limited = 0;
switch (force_full_range) {
switch (force_genlock_range) {
default:
case 0:
if ((vlockadj == VLOCKADJ_NARROW) && (error_ppm < -50000 || error_ppm > 50000)) {
@ -2103,8 +2103,8 @@ int get_paletteControl() {
return paletteControl;
}
void set_force_full_range(int value) {
force_full_range = value;
void set_force_genlock_range(int value) {
force_genlock_range = value;
}
void set_resolution(int mode, const char *name, int reboot) {

Wyświetl plik

@ -8,7 +8,7 @@ void set_subprofile(int value);
int get_subprofile();
void set_paletteControl(int value);
int get_paletteControl();
void set_force_full_range(int value);
void set_force_genlock_range(int value);
void set_resolution(int mode, const char *name, int reboot);
int get_resolution();
void set_scaling(int mode, int reboot);

Wyświetl plik

@ -1,2 +0,0 @@
## Auto@50Hz-60Hz-Plus
#force_full_range=2

Wyświetl plik

@ -1,2 +1,2 @@
## Auto@50Hz-60Hz
#force_full_range=1
#force_genlock_range=1

Wyświetl plik

@ -0,0 +1,2 @@
## Auto@Unlimited
#force_genlock_range=2

Wyświetl plik

@ -120,12 +120,9 @@ kernel=kernelrpi4.img
[all]
# =====================================================================
# Custom settings
# =====================================================================
#resolution=Default@60Hz
## Default @ 60Hz
#resolution=Auto@50Hz-60Hz
## Auto@50Hz-60Hz
#force_genlock_range=1
#scaling=0
scaling_kernel=8