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()
#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()
#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()
{
- printf("Mute\n");
if (isMuted())
volumeUnMute();
else
volumeMute();
-
-}
\ No newline at end of file
+}