From 31d6fbe0f9b9adde08a2877ae6b41370e6dd7e8f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 24 Jun 2012 12:35:02 +0200 Subject: [PATCH] azbox: fix cAudio::do_mute Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/5b8ff82730f5b4870ab29a4b53c2a796ea9c1772 Author: Stefan Seyfried Date: 2012-06-24 (Sun, 24 Jun 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- azbox/audio.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/azbox/audio.cpp b/azbox/audio.cpp index 1bb0336..6e33541 100644 --- a/azbox/audio.cpp +++ b/azbox/audio.cpp @@ -6,6 +6,9 @@ #include #include + +#include + #include "audio_lib.h" #include "lt_debug.h" @@ -65,10 +68,15 @@ int cAudio::do_mute(bool enable, bool remember) if (remember) Muted = enable; - +#if 0 + /* does not work? */ if (ioctl(fd, AUDIO_SET_MUTE, enable) < 0 ) lt_info("%s: AUDIO_SET_MUTE failed (%m)\n", __func__); - +#else + char s[2] = { 0, 0 }; + s[0] = '0' + (int)enable; + proc_put("/proc/stb/audio/j1_mute", s, 2); +#endif return 0; }