mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-16 09:38:51 +01:00
Fix buzzing sound when using volume shortcuts
This commit is contained in:
parent
06ac4b8141
commit
c5d8a29ad6
@ -81,7 +81,14 @@ set_volume() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Turn on/off audio amplifier if necessary
|
# Turn on/off audio amplifier if necessary
|
||||||
if [ ${new_volume} -eq 0 ]; then
|
# Check whether Factory tests are scheduled (audio_amp must be on for the sound test)
|
||||||
|
RUN_ENV_VAR=$(fw_printenv -n assembly_tests 2>/dev/null)
|
||||||
|
if [ "x${RUN_ENV_VAR}" == "x1" ]; then
|
||||||
|
audio_amp on
|
||||||
|
# Turn audio_amp off when using system volume shortcuts while no OPK is launched and GMenu2X is set as the frontend
|
||||||
|
elif [ ! -f /mnt/last_opk ] && grep -q "gmenu2x" /mnt/FunKey/.frontend; then
|
||||||
|
audio_amp off
|
||||||
|
elif [ ${new_volume} -eq 0 ]; then
|
||||||
audio_amp off
|
audio_amp off
|
||||||
else
|
else
|
||||||
audio_amp on
|
audio_amp on
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user