azbox: fix cAudio::do_mute

Origin commit data
------------------
Branch: master
Commit: 5b8ff82730
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-06-24 (Sun, 24 Jun 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-06-24 12:35:02 +02:00
parent 5fa64f43b8
commit 31d6fbe0f9

View File

@@ -6,6 +6,9 @@
#include <unistd.h>
#include <linux/dvb/audio.h>
#include <proc_tools.h>
#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;
}