projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b0342f
)
add volume control for 7025
author
Ronny Strutz
<ronny.strutz@multimedia-labs.de>
Thu, 10 Nov 2005 16:54:13 +0000
(16:54 +0000)
committer
Ronny Strutz
<ronny.strutz@multimedia-labs.de>
Thu, 10 Nov 2005 16:54:13 +0000
(16:54 +0000)
lib/dvb/volume.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb/volume.cpp
b/lib/dvb/volume.cpp
index
ba03b52
..
0988569
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);
+
+ //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()