I had trouble finding the right devices in my project so here is what I found out: 2010/8/13 Kabil Akp?nar <kabilakpinar at gmail.com>: > I forgot to add the output: > 13:32:05.647 pjsua_app.c Audio Device 0: HDA Intel: ALC888 Analog (hw:0,0) > 13:32:05.647 pjsua_app.c Audio Device 1: HDA Intel: ALC888 Digital (hw:0,1) > 13:32:05.647 pjsua_app.c Audio Device 2: HDA Intel: ALC888 Analog (hw:0,2) > 13:32:05.647 pjsua_app.c Audio Device 3: USB AUDIO : USB Audio (hw:1,0) > 13:32:05.647 pjsua_app.c Audio Device 4: front > 13:32:05.647 pjsua_app.c Audio Device 5: surround40 > 13:32:05.647 pjsua_app.c Audio Device 6: surround51 > 13:32:05.647 pjsua_app.c Audio Device 7: surround71 > 13:32:05.647 pjsua_app.c Audio Device 8: iec958 > 13:32:05.647 pjsua_app.c Audio Device 9: spdif > 13:32:05.647 pjsua_app.c Audio Device 10: pulse > 13:32:05.647 pjsua_app.c Audio Device 11: dmix > 13:32:05.647 pjsua_app.c Audio Device 12: default > 13:32:05.647 pjsua_app.c Audio Device 13: /dev/dsp > 13:32:05.647 pjsua_app.c Audio Device 14: /dev/dsp1 > The numbers 0-2 are one card(hw:0,x) The number 3 is the USB card(hw:1,x) The numbers 4-12 are created by default in ALSA, and probably will use only the first card. These devices are not physical ones, they are created by ALSA plug-ins. The numbers 13/14 are OSS emulated devices (and in my opinion should not be used) /dev/dsp is the same as (hw:0,0) and /dev/dsp1 is (hw:1,0) So you could use any of the first three for one card and number 3 for the second card, but you have to check if your cards support the number of channels and rate that PJ is trying to get. If your card doesn't support the needed parameters, you can use some ALSA plug-ins to do that. Try putting something like this in your ~/.asoundrc: pcm.card0 { type plug slave.pcm "hw:0,0" } pcm.card1 { type plug slave.pcm "hw:1,0" } Then when you run your program again, you will see card0 and card1 in your list of devices. --- Fernando Governatore