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

Origin commit data
------------------
Branch: master
Commit: 70806da6ed
Author: martii <m4rtii@gmx.de>
Date: 2013-10-03 (Thu, 03 Oct 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-10-03 17:56:16 +02:00
parent 68fbc5e77d
commit e61b758ec3

View File

@@ -109,6 +109,7 @@ int cAudio::setVolume(unsigned int left, unsigned int right)
volume = (left + right) / 2;
int v = map_volume(volume);
#if 0
if (clipfd != -1 && mixer_fd != -1) {
int tmp = 0;
/* 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);
return ret;
}
#endif
char str[4];
sprintf(str, "%d", v);