13#ifndef __HARDWAREDEVICE_H
14#define __HARDWAREDEVICE_H
79 LOGERROR(
"could not from read /sys/firmware/devicetree/base/compatible, no quirks set");
105 m_deviceName =
"bcm2837 (Raspberry Pi 2 Model B v1.2/ 3 Model B, Raspberry Pi 3 Compute Module 3)";
110 m_deviceName =
"bcm2711 (Raspberry Pi 4 Model B, Compute Module 4, Pi 400)";
115 m_deviceName =
"bcm2712 (Raspberry Pi 5, Compute Module 5, Pi 500)";
const char * GetName(void)
Get Hardware Name (currently unused)
cHardwareDevice(void)
Create a new hardware device.
int GetQuirks(void)
Get Hardware Quirks.
const char * m_deviceName
device name
int m_quirks
hardware dependent quirks for codec and and display
#define LOGDEBUG
log to LOG_DEBUG
#define LOGERROR
log to LOG_ERR
HardwareQuirks
Hardware dependent quirks.
static size_t ReadLineFromFile(char *buf, size_t size, const char *file)
Helper function to read a line from a given file.
@ QUIRK_CODEC_FLUSH_WORKAROUND
set, if we have to close and reopen the codec instead of avcodec_flush_buffers (rpi)