mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-13 08:08:51 +01:00
Do not use /etc/asound.conf for gpSP as it does not like mono downmix (sound was saturated)
This commit is contained in:
parent
0feda26f1a
commit
0c9b0c1dc5
@ -87,12 +87,27 @@ save)
|
||||
# Add the magic sauce to launch the process in background,
|
||||
# record the PID into a file, wait for the process to
|
||||
# terminate and erase the recorded PID
|
||||
# Do not use /etc/asound.conf for gpSP as it does not like
|
||||
# mono downmix (sound was saturated)
|
||||
if grep -q "gpsp" /mnt/instant_play; then
|
||||
cat << EOF >> "${INSTANT_PLAY_FILE}"
|
||||
&
|
||||
rw
|
||||
mv -f /etc/asound.conf /etc/asound.conf.BAK
|
||||
pid record \$!
|
||||
wait \$!
|
||||
pid erase
|
||||
mv -f /etc/asound.conf.BAK /etc/asound.conf
|
||||
ro
|
||||
EOF
|
||||
else
|
||||
cat << EOF >> "${INSTANT_PLAY_FILE}"
|
||||
&
|
||||
pid record \$!
|
||||
wait \$!
|
||||
pid erase
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Now terminate gracefully
|
||||
exec powerdown now
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user