vuduo4k/vuduo4kse/vuultimo4k/vuuno4kse: HDMI input as mode and PiP added

This commit is contained in:
BPanther
2021-05-09 21:25:43 +02:00
committed by Thilo Graf
parent d7da634795
commit dbad7ef37a
10 changed files with 175 additions and 6 deletions

View File

@@ -20,6 +20,11 @@
#include <linux/soundcard.h>
enum
{ ENCODER,
AUX
};
cAudio * audioDecoder = NULL;
cAudio::cAudio(void *, void *, void *)
@@ -75,6 +80,11 @@ void cAudio::closeDevice(void)
}
}
void cAudio::setAVInput(int val)
{
hal_info("%s not implemented yet - switching to: %s\n", __func__, val == AUX ? "AUX" : "ENCODER");
}
int cAudio::do_mute(bool enable, bool remember)
{
hal_debug("%s(%d, %d)\n", __FUNCTION__, enable, remember);

View File

@@ -52,6 +52,11 @@ class cAudio
cAudio(void *, void *, void *);
~cAudio(void);
void open_AVInput_Device(void) { return; };
void close_AVInput_Device(void) { return; };
void setAVInput(int val);
void *GetHandle() { return NULL; };
/* shut up */
int mute(bool remember = true) { return do_mute(true, remember); };

View File

@@ -65,6 +65,11 @@ extern "C"
_r; \
})
enum
{ ENCODER,
AUX
};
cVideo * videoDecoder = NULL;
cVideo * pipDecoder = NULL;
@@ -365,6 +370,19 @@ int image_to_mpeg2(const char *image_name, const char *encode_name)
return 0;
}
void cVideo::setAVInput(int val)
{
hal_info("%s not implemented yet - switching to: %s\n", __func__, val == AUX ? "SCART" : "ENCODER");
#if 0 // not working
int input_fd = open("/proc/stb/avs/0/input", O_WRONLY);
if(input_fd){
const char *input[] = {"encoder", "scart"};
write(input_fd, input[val], strlen(input[val]));
close(input_fd);
}
#endif
}
cVideo::cVideo(int, void *, void *, unsigned int unit)
{
hal_debug("%s unit %u\n", __func__, unit);

View File

@@ -128,7 +128,6 @@ typedef enum
VIDEO_CONTROL_MAX = VIDEO_CONTROL_SHARPNESS
} VIDEO_CONTROL;
class cVideo
{
friend class cPlayback;
@@ -157,6 +156,7 @@ class cVideo
int brightness, contrast, saturation, hue;
/* used internally by playback */
void openDevice(void);
void closeDevice(void);
public:
@@ -164,6 +164,11 @@ class cVideo
cVideo(int mode, void *, void *, unsigned int unit = 0);
~cVideo(void);
void open_AVInput_Device(void) { return; }; // Dummy
void close_AVInput_Device(void) { return; }; // Dummy
void setAVInput(int val);
void * GetTVEnc() { return NULL; };
void * GetTVEncSD() { return NULL; };