boxname for cec

This commit is contained in:
BPanther
2023-01-24 20:57:12 +01:00
committed by Thilo Graf
parent e4d1d85a6e
commit 02994964e7

View File

@@ -40,6 +40,8 @@
#include "hdmi_cec_types.h" #include "hdmi_cec_types.h"
#include "hal_debug.h" #include "hal_debug.h"
#include <hardware_caps.h>
#define RED "\x1B[31m" #define RED "\x1B[31m"
#define GREEN "\x1B[32m" #define GREEN "\x1B[32m"
#define NORMAL "\x1B[0m" #define NORMAL "\x1B[0m"
@@ -168,7 +170,8 @@ bool hdmi_cec::SetCECMode(VIDEO_HDMI_CEC_MODE _deviceType)
* takes some time) * takes some time)
*/ */
laddrs.cec_version = CEC_OP_CEC_VERSION_2_0; laddrs.cec_version = CEC_OP_CEC_VERSION_2_0;
strcpy(laddrs.osd_name, "neutrino"); hw_caps_t *caps = get_hwcaps();
strcpy(laddrs.osd_name, caps->boxname);
laddrs.vendor_id = CEC_VENDOR_ID_NONE; laddrs.vendor_id = CEC_VENDOR_ID_NONE;
switch (deviceType) switch (deviceType)