mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 14:48:28 +02:00
introduce hdmi_cec to driver
Origin commit data
------------------
Branch: ni/coolstream
Commit: c8a58afe2f
Author: TangoCash <eric@loxat.de>
Date: 2022-11-19 (Sat, 19 Nov 2022)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -33,13 +33,13 @@
|
||||
#include <gui/keybind_setup.h>
|
||||
#include <system/debug.h>
|
||||
#include <hardware/audio.h>
|
||||
#include <hardware/video.h>
|
||||
#include <system/settings.h>
|
||||
#include <system/helpers.h>
|
||||
#include <daemonc/remotecontrol.h>
|
||||
#include <driver/display.h>
|
||||
#include <driver/volume.h>
|
||||
#include <driver/display.h>
|
||||
#include <driver/hdmi_cec.h>
|
||||
#include <gui/audiomute.h>
|
||||
#include <gui/mediaplayer.h>
|
||||
#include <zapit/zapit.h>
|
||||
@@ -113,10 +113,6 @@ void CVolume::setVolume(const neutrino_msg_t key)
|
||||
|
||||
neutrino_msg_data_t data = 0;
|
||||
uint64_t timeoutEnd = 0;
|
||||
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
if (g_settings.hdmi_cec_volume)
|
||||
g_settings.current_volume = hdmi_cec::getInstance()->GetVolume();
|
||||
#endif
|
||||
int vol = g_settings.current_volume;
|
||||
|
||||
do {
|
||||
@@ -140,9 +136,9 @@ void CVolume::setVolume(const neutrino_msg_t key)
|
||||
}
|
||||
else if (g_settings.hdmi_cec_volume)
|
||||
{
|
||||
(dir > 0) ? hdmi_cec::getInstance()->vol_up() : hdmi_cec::getInstance()->vol_down();
|
||||
(dir > 0) ? g_hdmicec->vol_up() : g_hdmicec->vol_down();
|
||||
do_vol = false;
|
||||
g_settings.current_volume = hdmi_cec::getInstance()->GetVolume();
|
||||
g_settings.current_volume = g_hdmicec->GetVolume();
|
||||
printf("Volume: %d\n", g_settings.current_volume);
|
||||
#endif
|
||||
} else
|
||||
|
Reference in New Issue
Block a user