mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark: fix volume-to-/proc/stb/avs/0/volume mapping
This commit is contained in:
@@ -101,7 +101,11 @@ int map_volume(const int volume)
|
|||||||
if (vol > 100)
|
if (vol > 100)
|
||||||
vol = 100;
|
vol = 100;
|
||||||
|
|
||||||
|
#ifdef MARTII
|
||||||
|
vol = 64 - vol * 64 / 100;
|
||||||
|
#else
|
||||||
vol = 63 - vol * 63 / 100;
|
vol = 63 - vol * 63 / 100;
|
||||||
|
#endif
|
||||||
return vol;
|
return vol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user