mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libtriple: cVideo enabled SCART during record in standby
This commit is contained in:
@@ -111,6 +111,7 @@ cVideo::cVideo(int, void *, void *)
|
|||||||
}
|
}
|
||||||
close(blankfd);
|
close(blankfd);
|
||||||
}
|
}
|
||||||
|
video_standby = 0;
|
||||||
noscart = (getenv("TRIPLE_NOSCART") != NULL);
|
noscart = (getenv("TRIPLE_NOSCART") != NULL);
|
||||||
if (noscart)
|
if (noscart)
|
||||||
lt_info("%s TRIPLE_NOSCART variable prevents SCART switching\n", __FUNCTION__);
|
lt_info("%s TRIPLE_NOSCART variable prevents SCART switching\n", __FUNCTION__);
|
||||||
@@ -228,9 +229,12 @@ int cVideo::setAspectRatio(int aspect, int mode)
|
|||||||
perror("open tdsystem");
|
perror("open tdsystem");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
lt_debug("%s set SCART_PIN_8 to %dV\n", __FUNCTION__, scartvoltage);
|
if (!noscart && scartvoltage > 0 && video_standby == 0)
|
||||||
if (!noscart && scartvoltage > 0 && ioctl(avsfd, IOC_AVS_SCART_PIN8_SET, scartvoltage) < 0)
|
{
|
||||||
|
lt_info("%s set SCART_PIN_8 to %dV\n", __FUNCTION__, scartvoltage);
|
||||||
|
if (ioctl(avsfd, IOC_AVS_SCART_PIN8_SET, scartvoltage) < 0)
|
||||||
perror("IOC_AVS_SCART_PIN8_SET");
|
perror("IOC_AVS_SCART_PIN8_SET");
|
||||||
|
}
|
||||||
close(avsfd);
|
close(avsfd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -480,6 +484,7 @@ void cVideo::Standby(unsigned int bOn)
|
|||||||
} else
|
} else
|
||||||
fop(ioctl, MPEG_VID_SET_OUTFMT, outputformat);
|
fop(ioctl, MPEG_VID_SET_OUTFMT, outputformat);
|
||||||
routeVideo(bOn);
|
routeVideo(bOn);
|
||||||
|
video_standby = bOn;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cVideo::getBlank(void)
|
int cVideo::getBlank(void)
|
||||||
|
@@ -133,6 +133,7 @@ class cVideo
|
|||||||
DISPLAY_AR PictureAR;
|
DISPLAY_AR PictureAR;
|
||||||
VIDEO_FRAME_RATE FrameRate;
|
VIDEO_FRAME_RATE FrameRate;
|
||||||
void routeVideo(int standby);
|
void routeVideo(int standby);
|
||||||
|
int video_standby;
|
||||||
public:
|
public:
|
||||||
/* constructor & destructor */
|
/* constructor & destructor */
|
||||||
cVideo(int mode, void *, void *);
|
cVideo(int mode, void *, void *);
|
||||||
|
Reference in New Issue
Block a user