mips/arm: hwcaps pip_devs added

Origin commit data
------------------
Branch: master
Commit: 8e077f302a
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2021-10-02 (Sat, 02 Oct 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2021-10-02 22:27:44 +02:00
committed by vanhofen
parent fadbf018a5
commit 8f314f30df
5 changed files with 17 additions and 6 deletions

View File

@@ -38,6 +38,7 @@
#include "hal_debug.h"
#include "hdmi_cec.h"
#include <hardware_caps.h>
#include <proc_tools.h>
extern "C"
@@ -508,7 +509,8 @@ cVideo::cVideo(int, void *, void *, unsigned int unit)
hue = -1;
video_standby = 0;
blank_mode = 0;
if (unit > 3)
hw_caps_t *hwcaps = get_hwcaps();
if (unit > (unsigned int) hwcaps->pip_devs)
{
hal_info("%s: unit %d out of range, setting to 0\n", __func__, unit);
devnum = 0;