git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ci fixes (TODO: build reel ci resource handling.. at moment the first service get...
[enigma2.git]
/
lib
/
dvb
/
volume.cpp
diff --git
a/lib/dvb/volume.cpp
b/lib/dvb/volume.cpp
index ba03b520f995657b5c67c3cec064c0c5d38e61a5..e57fbc80ad6bcd677b2002d5a780cb9937d39d1a 100644
(file)
--- a/
lib/dvb/volume.cpp
+++ b/
lib/dvb/volume.cpp
@@
-90,6
+90,17
@@
void eDVBVolumecontrol::setVolume(int left, int right)
printf("Setvolume: %d %d\n", leftVol, rightVol);
printf("Setvolume: %d %d\n", left, right);
printf("Setvolume: %d %d\n", leftVol, rightVol);
printf("Setvolume: %d %d\n", left, right);
+
+ //HACK?
+ FILE *f;
+ if((f = fopen("/proc/stb/avs/0/volume", "wb")) == NULL) {
+ printf("cannot open /proc/stb/avs/0/volume\n");
+ return;
+ }
+
+ fprintf(f, "%d", left);
+
+ fclose(f);
}
int eDVBVolumecontrol::getVolume()
}
int eDVBVolumecontrol::getVolume()
@@
-113,6
+124,17
@@
void eDVBVolumecontrol::volumeMute()
#endif
closeMixer(fd);
muted = true;
#endif
closeMixer(fd);
muted = true;
+
+ //HACK?
+ FILE *f;
+ if((f = fopen("/proc/stb/audio/j1_mute", "wb")) == NULL) {
+ printf("cannot open /proc/stb/audio/j1_mute\n");
+ return;
+ }
+
+ fprintf(f, "%d", 1);
+
+ fclose(f);
}
void eDVBVolumecontrol::volumeUnMute()
}
void eDVBVolumecontrol::volumeUnMute()
@@
-123,14
+145,23
@@
void eDVBVolumecontrol::volumeUnMute()
#endif
closeMixer(fd);
muted = false;
#endif
closeMixer(fd);
muted = false;
+
+ //HACK?
+ FILE *f;
+ if((f = fopen("/proc/stb/audio/j1_mute", "wb")) == NULL) {
+ printf("cannot open /proc/stb/audio/j1_mute\n");
+ return;
+ }
+
+ fprintf(f, "%d", 0);
+
+ fclose(f);
}
void eDVBVolumecontrol::volumeToggleMute()
{
}
void eDVBVolumecontrol::volumeToggleMute()
{
- printf("Mute\n");
if (isMuted())
volumeUnMute();
else
volumeMute();
if (isMuted())
volumeUnMute();
else
volumeMute();
-
-}
\ No newline at end of file
+}