diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-10 16:54:13 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-10 16:54:13 +0000 |
| commit | 2932e4dae7deb665dc39950658f51bdfcaf37515 (patch) | |
| tree | 24cfd17915b9002c9fa18c3b9e18dfb02aa6fe64 /lib/dvb/volume.cpp | |
| parent | 4b0342f51438d402e55632f25ad580cc68a5f501 (diff) | |
| download | enigma2-2932e4dae7deb665dc39950658f51bdfcaf37515.tar.gz enigma2-2932e4dae7deb665dc39950658f51bdfcaf37515.zip | |
add volume control for 7025
Diffstat (limited to 'lib/dvb/volume.cpp')
| -rw-r--r-- | lib/dvb/volume.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/dvb/volume.cpp b/lib/dvb/volume.cpp index ba03b520..0988569c 100644 --- 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); + + //HACK? + FILE *f; + if((f = fopen("/proc/stb/avs/0/volume", "wb")) < 0) { + printf("cannot open /proc/stb/avs/0/volume\n"); + return; + } + + fprintf(f, "%d", left); + + fclose(f); } int eDVBVolumecontrol::getVolume() |
