skobkin
BASH
2016.04.26 02:27
apt-get purge pulseaudio pulseaudio-utils gstreamer0.10-pulseaudio paman pavumeter pavucontrol
rm /etc/asound.conf
apt-get autoremove
apt-get install alsa-base alsa-tools alsa-tools-gui alsa-utils alsa-oss alsamixergui libalsaplayer0
echo '#Section1' > /etc/asound.conf
echo 'pcm.dmixed { ' >> /etc/asound.conf
echo 'type dmix' >> /etc/asound.conf
echo 'ipc_key 1024' >> /etc/asound.conf
echo 'ipc_key_add_uid 0' >> /etc/asound.conf
echo 'slave.pcm "hw:1,0"' >> /etc/asound.conf
echo '}' >> /etc/asound.conf
echo '#Section2' >> /etc/asound.conf
echo 'pcm.dsnooped {' >> /etc/asound.conf
echo 'type dsnoop' >> /etc/asound.conf
echo 'ipc_key 1025' >> /etc/asound.conf
echo 'slave.pcm "hw:1,0"' >> /etc/asound.conf
echo '}' >> /etc/asound.conf
echo '#Section3' >> /etc/asound.conf
echo 'pcm.duplex {' >> /etc/asound.conf
echo 'type asym' >> /etc/asound.conf
echo 'playback.pcm "dmixed"' >> /etc/asound.conf
echo 'capture.pcm "dsnooped"' >> /etc/asound.conf
echo '}' >> /etc/asound.conf
echo '#Section4' >> /etc/asound.conf
echo 'pcm.!default {' >> /etc/asound.conf
echo 'type plug' >> /etc/asound.conf
echo 'slave.pcm "duplex"' >> /etc/asound.conf
echo '}' >> /etc/asound.conf
echo '#Section5' >> /etc/asound.conf
echo 'ctl.!default {' >> /etc/asound.conf
echo 'type hw' >> /etc/asound.conf
echo 'card 1' >> /etc/asound.conf
echo '}' >> /etc/asound.conf
apt-get clean