libspark/audio: always use /proc/stb/avs/0/volume to set volume

This commit is contained in:
martii
2013-10-03 17:56:16 +02:00
parent 83201e0199
commit 70806da6ed

View File

@@ -109,6 +109,7 @@ int cAudio::setVolume(unsigned int left, unsigned int right)
volume = (left + right) / 2; volume = (left + right) / 2;
int v = map_volume(volume); int v = map_volume(volume);
#if 0
if (clipfd != -1 && mixer_fd != -1) { if (clipfd != -1 && mixer_fd != -1) {
int tmp = 0; int tmp = 0;
/* not sure if left / right is correct here, but it is always the same anyways ;-) */ /* not sure if left / right is correct here, but it is always the same anyways ;-) */
@@ -119,6 +120,7 @@ int cAudio::setVolume(unsigned int left, unsigned int right)
lt_info("%s: MIXER_WRITE(%d),%04x: %m\n", __func__, mixer_num, tmp); lt_info("%s: MIXER_WRITE(%d),%04x: %m\n", __func__, mixer_num, tmp);
return ret; return ret;
} }
#endif
char str[4]; char str[4];
sprintf(str, "%d", v); sprintf(str, "%d", v);