Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo Adding microphone to Pulseaudio
- grep -qxF 'load-module module-alsa-source device=hw:0,99' /etc/pulse/default.pa || echo 'load-module module-alsa-source device=hw:0,99' >> /etc/pulse/default.pa
- echo Adding headphone to Pulseaudio
- grep -qxF 'load-module module-alsa-sink device=hw:0,1' /etc/pulse/default.pa || echo 'load-module module-alsa-sink device=hw:0,1' >> /etc/pulse/default.pa
- echo Adding headset microphone to Pulseaudio
- grep -qxF 'load-module module-alsa-source device=hw:0,1' /etc/pulse/default.pa || echo 'load-module module-alsa-source device=hw:0,1' >> /etc/pulse/default.pa
- echo Restarting Pulseaudio
- killall pulseaudio
- echo Configuring headphone/headset mixer
- amixer cset name='Playback Digital Volume' 111
- amixer cset name='Playback Digital Switch' 1
- amixer cset name='Out DACL Mux' DAIL
- amixer cset name='Out DACR Mux' DAIR
- amixer cset name='Mixer Out FilterL DACL Switch' 1
- amixer cset name='Mixer Out FilterR DACR Switch' 1
- amixer cset name='ST Mixer Out FilterL Out FilterL Switch' 1
- amixer cset name='ST Mixer Out FilterR Out FilterR Switch' 1
- amixer cset name='Headphone Jack Switch' on
- amixer cset name='Headset Mic Switch' on
- amixer cset name='Mic Volume' 5
- amixer cset name='Capture Digital Volume' 111
- amixer cset name='Capture Digital Switch' 1
- amixer cset name='Mixin Volume' 10
- amixer cset name='Mixin Switch' 1
- amixer cset name='Mixer In Mic Switch' 1
- amixer cset name='Out DAIL Mux' ADC
- amixer cset name='Out DAIR Mux' ADC
- amixer cset name='Pin5-Port0 Mux' 1
- amixer cset name='Pin5-Port1 Mux' 1
- amixer cset name='Pin5-Port2 Mux' 1
- amixer cset name='Pin6-Port0 Mux' 2
- amixer cset name='Pin6-Port1 Mux' 2
- amixer cset name='Pin6-Port2 Mux' 2
- amixer cset name='Gain Ramp Rate' 1
Advertisement
Add Comment
Please, Sign In to add comment