From f6cf97a321820fcf929689e8d177514d570cd696 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sat, 3 Oct 2020 12:46:56 +0200 Subject: [PATCH] fix HD60/HD61 playback --- libarmbox/audio.cpp | 3 +++ libarmbox/video.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libarmbox/audio.cpp b/libarmbox/audio.cpp index 835dc14..6553e46 100644 --- a/libarmbox/audio.cpp +++ b/libarmbox/audio.cpp @@ -137,6 +137,9 @@ int cAudio::Start(void) { int ret; ret = ioctl(fd, AUDIO_PLAY); +#ifdef BOXMODEL_HD60 || BOXMODEL_HD61 + ioctl(fd, AUDIO_CONTINUE); +#endif return ret; } diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index dc0f855..f41de42 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -541,6 +541,9 @@ int cVideo::Start(void * /*PcrChannel*/, unsigned short /*PcrPid*/, unsigned sho playstate = VIDEO_PLAYING; fop(ioctl, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX); int res = fop(ioctl, VIDEO_PLAY); +#ifdef BOXMODEL_HD60 || BOXMODEL_HD61 + fop(ioctl, VIDEO_CONTINUE); +#endif if (brightness > -1) { SetControl(VIDEO_CONTROL_BRIGHTNESS, brightness); brightness = -1;