arm: add black screen in channel swiching

This commit is contained in:
redblue-pkt
2018-12-28 22:22:58 +01:00
committed by Thilo Graf
parent f07fcb26cd
commit e20d19138e
2 changed files with 7 additions and 0 deletions

View File

@@ -863,6 +863,11 @@ void cVideo::SetControl(int control, int value)
scaler_sharpness = value;
p = "/proc/stb/vmpeg/0/pep_scaler_sharpness";
break;
case VIDEO_CONTROL_ZAPPING_MODE:
zapping_mode = value;
const char *mode_zapping[] = { "hold", "mute" };
proc_put("/proc/stb/video/zapping_mode", mode_zapping[zapping_mode], strlen(mode_zapping[zapping_mode]));
break;
}
if (p) {
char buf[20];

View File

@@ -145,6 +145,7 @@ typedef enum
VIDEO_CONTROL_BLUE_BOOST,
VIDEO_CONTROL_DYNAMIC_CONTRAST,
VIDEO_CONTROL_SCALER_SHARPNESS,
VIDEO_CONTROL_ZAPPING_MODE,
VIDEO_CONTROL_MAX = VIDEO_CONTROL_SHARPNESS
} VIDEO_CONTROL;
@@ -187,6 +188,7 @@ class cVideo
int blue_boost;
int dynamic_contrast;
int scaler_sharpness;
int zapping_mode;
/* used internally by dmx */
int64_t GetPTS(void);