pjsua and multiple sound cards on snd-usb-audio module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All, best greetings, this is my first post here ?

I can not use two pjsua clients with two sound cards.

I use 2 pjsua clients and 2 delock usb sound adapter 7.1.

/etc/modprobe.d/sound.conf
Options snd-usb-audio index=1,2

Pjsystest option 10 - view devices output:

Enter the menu number: 10
 11:23:42.040      systest.c  Running Audio Device List
Audio Device List
Found 4 devices
  0: PA [C-Media USB Audio Device   : USB Audio (hw:1,0)] (1/2)
  1: PA [C-Media USB Audio Device   : USB Audio (hw:2,0)] (1/2)
  2: PA [/dev/dsp1] (16/16)
  3: PA [/dev/dsp2] (16/16)

In pjsua1.conf I have
--capture-dev=0
--playback-dev=0

In pjsua2.conf I have
--capture-dev=1
--playback-dev=1

But... when I run pjsua --config=pjsua1.conf there is a strange thing. Seems that device 0 disappear and device hw:2,0 become number 0. Output from view devices:

Enter the menu number: 10
 11:47:05.515      systest.c  Running Audio Device List
Audio Device List
Found 2 devices
  0: PA [C-Media USB Audio Device   : USB Audio (hw:2,0)] (1/2)
  1: PA [/dev/dsp2] (16/16)

>From now capture and playback device for pjsua2.conf seems to be 0.

Is there any way to lock device number so the hw:1,0 is always 0 and hw:2,0 is always 1 ? maybe there is some way to make pjsua not locking (disappearing) device from device list? What am I doing wrong? :)

Tomasz





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux