mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark: fix cAudio::do_mute()
This commit is contained in:
@@ -75,6 +75,9 @@ int cAudio::do_mute(bool enable, bool remember)
|
|||||||
{
|
{
|
||||||
f = open("/proc/stb/avs/0/volume", O_RDWR);
|
f = open("/proc/stb/avs/0/volume", O_RDWR);
|
||||||
read(f, str, 4);
|
read(f, str, 4);
|
||||||
|
close(f);
|
||||||
|
str[3] = '\0';
|
||||||
|
f = open("/proc/stb/avs/0/volume", O_RDWR);
|
||||||
write(f, str, strlen(str));
|
write(f, str, strlen(str));
|
||||||
close(f);
|
close(f);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user