WeTek_Core/WeTek_Play: set video state to disabled on boot

right after boot, if a hardware decoded video is not yet played, asking
/dev/amvideocap0 for a frame results in -EAGAIN after a short delay.

hyperion is doing AMSTREAM_IOC_GET_VIDEO_DISABLE ioctl on /dev/amvideo
to check if video is playing. if initial state is not set, hyperion gets
confused, resulting in leds lagging until a hw decoded video is started.

this allows hyperion's regular framegrabber and amlgrabber to co-exist nicely
This commit is contained in:
Lukas Rusak 2016-03-19 23:43:37 +02:00
parent 49411fd61e
commit ce7e57ef24
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,9 @@ echo 1 > /sys/class/graphics/fb1/blank
# Disable framebuffer scaling
echo 0 > /sys/class/graphics/fb0/free_scale
# set initial video state
echo 1 > /sys/class/video/disable_video
# Set framebuffer geometry to match the resolution
case "$hdmimode" in
720*)

View File

@ -46,6 +46,9 @@ echo 0 > /sys/class/graphics/fb0/blank
# Disable framebuffer scaling
echo 0 > /sys/class/graphics/fb0/free_scale
# set initial video state
echo 1 > /sys/class/video/disable_video
# Set framebuffer geometry to match the resolution
case "$hdmimode" in
720*)