From 05dac2b7dabe204def6267bce8fbe549d611a328 Mon Sep 17 00:00:00 2001 From: jbleyel Date: Tue, 3 Sep 2024 13:30:28 +0200 Subject: [PATCH] [eDVBVolumeControl] * use eTrace for openMixer error log --- lib/dvb/volume.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/dvb/volume.cpp b/lib/dvb/volume.cpp index 644919bb236..a3c7a55e9cc 100644 --- a/lib/dvb/volume.cpp +++ b/lib/dvb/volume.cpp @@ -176,15 +176,13 @@ void eDVBVolumecontrol::setVolume(int left, int right) } #endif closeMixer(fd); - return; } else { - eDebug("[eDVBVolumecontrol] Error: Unable to open mixer! (%m)"); + eTrace("[eDVBVolumecontrol] Error: Unable to open mixer! (%m)"); + // Workaround because the mixer is opened exclusive in the driver + CFile::writeInt("/proc/stb/avs/0/volume", left); /* in -1dB */ } - - // HACK? - CFile::writeInt("/proc/stb/avs/0/volume", left); /* in -1dB */ #endif } @@ -206,7 +204,7 @@ void eDVBVolumecontrol::volumeMute() } muted = true; - // HACK? + // Workaround because the mixer is opened exclusive in the driver CFile::writeInt("/proc/stb/audio/j1_mute", 1); #endif } @@ -229,7 +227,7 @@ void eDVBVolumecontrol::volumeUnMute() } muted = false; - // HACK? + // Workaround because the mixer is opened exclusive in the driver CFile::writeInt("/proc/stb/audio/j1_mute", 0); #endif }