Welcome to http://www.marssoft.de/
 
Tuesday, 11th December 2018 21:29:18 (GMT+1) 

Pulseaudio Sound

Configuration

#> sudo lsmod|grep ^snd_
snd_hda_codec_analog    74864  1 
snd_hda_intel          26680  1 
snd_hda_codec          75248  2 snd_hda_codec_analog,snd_hda_intel
snd_pcm_oss            37200  0 
snd_usb_audio          90384  2 
snd_usb_lib            16592  1 snd_usb_audio
snd_mixer_oss          15072  1 snd_pcm_oss
snd_pcm                78472  5 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_usb_audio
snd_seq_midi            6976  0 
snd_rawmidi            23008  2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event      7712  1 snd_seq_midi
snd_hwdep               8152  2 snd_hda_codec,snd_usb_audio
snd_seq                51376  2 snd_seq_midi,snd_seq_midi_event
snd_timer              21824  3 snd_pcm,snd_seq
snd_seq_device          7476  3 snd_seq_midi,snd_rawmidi,snd_seq
snd_page_alloc          9984  2 snd_hda_intel,snd_pcm

Check the current order of your audio devices using:

#> sudo cat /proc/asound/modules
 0 snd_usb_audio
 1 snd_hda_intel

Set an order for your audio devices:

#> sudo rmmod snd_hda_intel snd_usb_audio
#> sudo nano /etc/modprobe.d/alsa-base.conf
# keep sound devices in order:
options snd_hda_intel index=0
options snd_usb_audio index=1
#> sudo modprobe snd_hda_intel snd_usb_audio

Check the order using:

#> sudo cat /proc/asound/modules
 0 snd_hda_intel
 1 snd_usb_audio

To detect the available sound devices, do:

#> sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headset [Logitech USB Headset], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Add the new device to pulseaudio configuration:

#> sudo nano /etc/pulse/default.pa
load-module module-alsa-sink device=hw:0,0
load-module module-alsa-sink device=hw:0,1
load-module module-alsa-sink device=hw:1,0
load-module module-alsa-source device=hw:0,0
load-module module-alsa-source device=hw:1,0
scratch/sound_with_pulseaudio_multi.txt · Last modified: 2014/04/02 22:39 (external edit)