Alsa configuration error on android device

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

 



Hi All,

We are trying to run PJSUA application on android device, for this we have cross-compiled(arm-linux-androideabi)  PJSIP.

We are trying to use alsa sound driver instead of openSLES with JNI frame-work.
Hence we have cross-compiled alsa for android and copied libasound.so.2.0.0  library on android device.
In config_site.h we did below changes:

//#define ANDROID 1
#define PJMEDIA_AUDIO_DEV_HAS_ALSA       1

When, we are running PJSUA app on android device, we suspect alsa has configuaration as  alsa is unable to open sound device.
Below is the complete log:

 snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.pcm.subdevice
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.namehint.extended
snd_config_search_definition() : key = hw
snd_config_search_definition() : key = igetenv
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.pcm.device
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.pcm.subdevice
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.namehint.extended
snd_config_search_definition() : key = plughw
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.pcm.subdevice
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.namehint.extended
snd_config_search_definition() : key = plughw
snd_config_search_definition() : key = igetenv
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.pcm.device
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.pcm.subdevice
snd_config_search_definition() : key = refer
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = defaults.namehint.extended
snd_config_search_definition() : key = plug
snd_config_search_definition() : key = plug
snd_config_search_definition() : key = shm
snd_config_search_definition() : key = shm
snd_config_search_definition() : key = tee
snd_config_search_definition() : key = tee
snd_config_search_definition() : key = file
snd_config_search_definition() : key = file
snd_config_search_definition() : key = null
snd_config_search_definition() : key = null
snd_config_search_definition() : key = analog
snd_config_search_definition() : key = analog
snd_config_search_definition() : key = mixed-analog
snd_config_search_definition() : key = mixed-analog
snd_config_search_definition() : key = digital
snd_config_search_definition() : key = digital
snd_config_search_definition() : key = mixed-digital
snd_config_search_definition() : key = mixed-digital
snd_config_search_definition() : key = analog-hw
snd_config_search_definition() : key = analog-hw
snd_config_search_definition() : key = digital-hw
snd_config_search_definition() : key = digital-hw
snd_config_search_definition() : key = dmix-analog
snd_config_search_definition() : key = dmix-analog
snd_config_search_definition() : key = dmix-digital
snd_config_search_definition() : key = dmix-digital
snd_config_search_definition() : key = default
snd_config_search_definition() : key = default
snd_config_search_definition() : key = xbmc
snd_config_search_definition() : key = xbmc
snd_config_search_definition() : key = multi
snd_config_search_definition() : key = multi
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = ����X���P���
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = �シ�₷�₷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = �䂷X䂷P䂷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = `炷�悷�悷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open() : name mixed-analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = mixed-analog
snd_pcm_open_noupdate() : pcm_conf.id = mixed-analog
     pcm_conf.u.string = 
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = dmix-analog
snd_pcm_open_noupdate() : pcm_conf.id = dmix-analog
     pcm_conf.u.string = h炷�悷�悷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = dmix
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = -6
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = -6
snd_pcm_open() : name mixed-analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = mixed-analog
snd_pcm_open_noupdate() : pcm_conf.id = mixed-analog
     pcm_conf.u.string = 
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = dmix-analog
snd_pcm_open_noupdate() : pcm_conf.id = dmix-analog
     pcm_conf.u.string = h炷�悷�悷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = dmix
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = -6
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = -6
snd_pcm_open() : name digital
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = digital
snd_pcm_open_noupdate() : pcm_conf.id = digital
     pcm_conf.u.string = �䂷X䂷P䂷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = digital-hw
snd_pcm_open_noupdate() : pcm_conf.id = digital-hw
     pcm_conf.u.string = `炷�悷�悷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open() : name digital
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = digital
snd_pcm_open_noupdate() : pcm_conf.id = digital
     pcm_conf.u.string = �䂷X䂷P䂷
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string..
[5:48:13 PM] Vikas Sharma: .................................................
[5:48:15 PM] Vikas Sharma: snd_config_search_definition() : key = dmix
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = -6
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = -6
17:44:13.854     alsa_dev.c  ..ALSA driver found 2 devices
17:44:13.854     alsa_dev.c  ..ALSA initialized
17:44:13.855          pjlib  ..select() I/O Queue created (0xb7812134)
[5:49:17 PM] Vikas Sharma: ye errors aate h jab call lgate ha
[5:49:20 PM] Vikas Sharma: ..................................................
[5:49:22 PM] Vikas Sharma: Make call: sip:192.168.0.103
17:49:00.609   pjsua_call.c  Making call with acc #1 to sip:192.168.0.103
17:49:00.610    pjsua_aud.c  .Set sound device: capture=-1, playback=-2
17:49:00.610    pjsua_app.c  ..Turning sound device ON
17:49:00.610    pjsua_aud.c  ..Opening sound device PCM@16000/1/20ms
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = ����K���K��
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = x��������
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
17:49:00.640     alsa_dev.c  ...ALSA lib: SNDRV_PCM_IOCTL_PREPARE failed (-22): Invalid argument
snd_pcm_hw_params() : error.prepare = Invalid argument
17:49:00.661    pjsua_app.c  ..Turning sound device ON
17:49:00.662    pjsua_aud.c  ..Opening sound device PCM@44100/1/20ms
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = ����K���K��
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = x��������
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
17:49:00.691     alsa_dev.c  ...ALSA lib: SNDRV_PCM_IOCTL_PREPARE failed (-22): Invalid argument
snd_pcm_hw_params() : error.prepare = Invalid argument
17:49:00.708    pjsua_app.c  ..Turning sound device ON
17:49:00.708    pjsua_aud.c  ..Opening sound device PCM@48000/1/20ms
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = ����K���K��
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = x��������
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
17:49:00.728     alsa_dev.c  ...ALSA lib: SNDRV_PCM_IOCTL_PREPARE failed (-22): Invalid argument
snd_pcm_hw_params() : error.prepare = Invalid argument
17:49:00.746    pjsua_app.c  ..Turning sound device ON
17:49:00.746    pjsua_aud.c  ..Opening sound device PCM@32000/1/20ms
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = ����K���K��
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = x��������
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
17:49:00.761     alsa_dev.c  ...ALSA lib: SNDRV_PCM_IOCTL_PREPARE failed (-22): Invalid argument
snd_pcm_hw_params() : error.prepare = Invalid argument
17:49:00.776    pjsua_app.c  ..Turning sound device ON
17:49:00.777    pjsua_aud.c  ..Opening sound device PCM@16000/1/20ms
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = ����K���K��
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = x��������
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
17:49:00.797     alsa_dev.c  ...ALSA lib: SNDRV_PCM_IOCTL_PREPARE failed (-22): Invalid argument
snd_pcm_hw_params() : error.prepare = Invalid argument
17:49:00.810    pjsua_app.c  ..Turning sound device ON
17:49:00.810    pjsua_aud.c  ..Opening sound device PCM@8000/1/20ms
snd_pcm_open() : name analog
snd_pcm_open() : mode 0
snd_pcm_open() : passed assert()
snd_config_search_definition() : key = analog
snd_pcm_open_noupdate() : pcm_conf.id = analog
     pcm_conf.u.string = ����K���K��
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = ��Զ
snd_config_search_definition() : key = plug
snd_config_search_definition() : error = No such file or directory
snd_config_search_definition() : key = analog-hw
snd_pcm_open_noupdate() : pcm_conf.id = analog-hw
     pcm_conf.u.string = x��������
     pcm_conf.hop = 0
snd_pcm_open_noupdate() : config string = 
snd_config_search_definition() : key = hw
snd_config_search_definition() : error = No such file or directory
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
snd_pcm_open_noupdate() : snd_pcm_open_conf().error = 0
17:49:00.825     alsa_dev.c  ...ALSA lib: SNDRV_PCM_IOCTL_PREPARE failed (-22): Invalid argument
snd_pcm_hw_params() : error.prepare = Invalid argument
17:49:00.841    pjsua_aud.c  ..Unable to open sound device: Unknown error from audio driver (PJMEDIA_EAUD_SYSERR) [status=420002]


Please help me to resolve  this issue, also let me know-
Does PJSIP supports TINY-ALSA for android device?

Thanks a lot!


With Best Regards,
Vijay Pratap Singh

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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