PrawnOS-nonfree/resources/InstallResources/sound.sh
SolidHal d0403b14e3 Cleaned up image creation, made functional installation scripts
Cleaned up build files, resources, scripts.
Made the image use a partition map to fix mmc issues

Signed-off-by: SolidHal <solidhal@users.noreply.github.com>
2018-09-05 18:35:33 -05:00

30 lines
813 B
Bash
Executable File

#!/bin/bash
case "$1" in
jack/headphone)
case "$3" in
plug)
amixer -D hw:0 cset name='Left Speaker Mixer Left DAC Switch' off
amixer -D hw:0 cset name='Right Speaker Mixer Right DAC Switch' off
amixer -D hw:0 sset 'Headphone Left' on
amixer -D hw:0 sset 'Headphone Right' on
;;
unplug)
amixer -D hw:0 cset name='Left Speaker Mixer Left DAC Switch' on
amixer -D hw:0 cset name='Right Speaker Mixer Right DAC Switch' on
amixer -D hw:0 sset 'Headphone Left' off
amixer -D hw:0 sset 'Headphone Right' off
;;
esac
;;
jack/microphone)
case "$3" in
plug)
;;
unplug)
;;
esac
;;
esac