##### # For use with Intel HDA. # - Provides full-duplex for the default device via dmix / dsnoop and asym. # - Forces 44.1kHz sampling rate (instead of 48kHz) for OpenAL compatibility. # Note: For this to work "(define sampling-rate 44100)" must be specified in ~/.openalrc also. # See http://bugs.gentoo.org/show_bug.cgi?id=193147 for details. # # REMEMBER TO STOP ALL APPS USING ALSA AND RUN "/etc/init.d/alsasound restart" AS ROOT! # Otherwise changes seem not to be picked up correctly sometimes (very confusing ;-) ##### pcm.!default { type plug slave.pcm "duplex" } ctl.!default { type hw card 0 } pcm.duplex { type asym playback.pcm "dmixer" capture.pcm "dsnooper" } pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:0,0" channels 2 period_time 0 period_size 2048 buffer_size 4096 rate 44100 } bindings { 0 0 1 1 } } pcm.dsnooper { type dsnoop ipc_key 1025 slave { pcm "hw:0,0" channels 2 period_time 0 period_size 2048 buffer_size 4096 rate 44100 } bindings { 0 0 1 1 } }