mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
add protek4k
Origin commit data
------------------
Branch: master
Commit: f741cfd833
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-11-13 (Sun, 13 Nov 2022)
Origin message was:
------------------
- add protek4k
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -323,7 +323,7 @@ int cAudio::PrepareClipPlay(int ch, int srate, int bits, int little_endian)
|
||||
perror("SNDCTL_DSP_CHANNELS");
|
||||
if (ioctl(clipfd, SNDCTL_DSP_SPEED, &srate))
|
||||
perror("SNDCTL_DSP_SPEED");
|
||||
#if !BOXMODEL_HD51 && !BOXMODEL_BRE2ZE4K && !BOXMODEL_H7 && !BOXMODEL_E4HDULTRA
|
||||
#if !BOXMODEL_HD51 && !BOXMODEL_BRE2ZE4K && !BOXMODEL_H7 && !BOXMODEL_E4HDULTRA && !BOXMODEL_PROTEK4K
|
||||
if (ioctl(clipfd, SNDCTL_DSP_RESET))
|
||||
perror("SNDCTL_DSP_RESET");
|
||||
#endif
|
||||
@@ -394,7 +394,7 @@ int cAudio::WriteClip(unsigned char *buffer, int size)
|
||||
hal_info("%s: clipfd not yet opened\n", __FUNCTION__);
|
||||
return -1;
|
||||
}
|
||||
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 || BOXMODEL_E4HDULTRA
|
||||
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 || BOXMODEL_E4HDULTRA || BOXMODEL_PROTEK4K
|
||||
again:
|
||||
#endif
|
||||
ret = write(clipfd, buffer, size);
|
||||
@@ -403,7 +403,7 @@ again:
|
||||
hal_info("%s: write error (%m)\n", __FUNCTION__);
|
||||
return ret;
|
||||
}
|
||||
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 || BOXMODEL_E4HDULTRA
|
||||
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 || BOXMODEL_E4HDULTRA || BOXMODEL_PROTEK4K
|
||||
if (ret != size)
|
||||
{
|
||||
hal_info("cAudio::%s: difference > to write (%d) != written (%d) try (%d) > reset dsp and restart write\n", __FUNCTION__, size, ret, count);
|
||||
|
@@ -266,6 +266,27 @@ hw_caps_t *get_hwcaps(void)
|
||||
strcpy(caps.boxname, "E4HD 4K ULTRA");
|
||||
strcpy(caps.boxarch, "BCM7252S");
|
||||
#endif
|
||||
#if BOXMODEL_PROTEK4K
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 220;
|
||||
caps.display_yres = 176;
|
||||
caps.display_type = HW_DISPLAY_GFX;
|
||||
caps.display_can_umlauts = 0;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.display_can_set_brightness = 1;
|
||||
caps.display_has_statusline = 0;
|
||||
caps.display_has_colon = 0;
|
||||
caps.has_button_timer = 1;
|
||||
caps.has_button_vformat = 0;
|
||||
caps.has_HDMI = 1;
|
||||
strcpy(caps.startup_file, "STARTUP");
|
||||
strcpy(caps.boxvendor, "Protek");
|
||||
strcpy(caps.boxname, "Protek 4K UHD");
|
||||
strcpy(caps.boxarch, "BCM7252S");
|
||||
#endif
|
||||
#if BOXMODEL_HD60
|
||||
caps.has_CI = 0;
|
||||
caps.can_cec = 1;
|
||||
|
Reference in New Issue
Block a user