linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Error message when running linphonec on ARM,


From: zu1887 zu1887
Subject: Re: [Linphone-developers] Error message when running linphonec on ARM, can't hear any voice.
Date: Thu, 23 Jul 2009 11:31:27 +0800

Thanks for the suggestion.

The first issus has been resolved by editting alsa.conf.
> ALSA lib conf.c:3952:(snd_config_
expand) Unknown parameters 0
> ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default:0
> ortp-warning-Could not attach mixer to card: Invalid argument.

But the third issue still exists even i tried all the combinations of PERIOD and PERIOD_SIZE.
> ortp-warning-alsa_set_params: The number of periods 8 is not supported by
> your hardware.
>  ==> Using 8 instead.
> ortp-warning-alsa_set_params: Error setting HW params:Invalid argument
> ortp-warning-alsa_open_w: Error setting params (for 30027 micros

Any comments? Thanks again!

2009/7/22 Simon Morlat <address@hidden>
It is seems the alsa driver is not very nice when accepting the parameters.
You should edit the #define  at the beginning of mediastreamer2/src/alsa.c to
try to find better periods/periodsize parameters.

Simon

Le mardi 21 juillet 2009 05:05:30, zu1887 zu1887 a écrit :
> Hi all,
>
> I am working on porting linphone to an Samaung 2440-based ARM platform.
>
> The software packages i used include:
> speex 1.2beta3
> Alsa-lib: 1.0.20
> libosip2: 3.3.0
> libeXosip2: 3.3.0
> ncurses: 5.6
> linphone: 3.1.2
> libogg:  1.1.3
>
> Kernel version is 2.6.29, and cross-compiler is 4.3.2 with EABI capability,
> and i am using readonly CRAMFS as root file system.
>
> But i got following error message when running linphonec, and i can't hear
> any voice after a call gets through.
>
> Some critical messages include:
>
> ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
> ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default:0
> ortp-warning-Could not attach mixer to card: Invalid argument.
>
> ortp-message-Cannot open directory /usr/local/lib/mediastreamer/plugins: No
> such file or directory
> ortp-message-ms_init() done
> ortp-message-Cannot open directory /usr/local/lib/liblinphone/plugins: No
> such file or directory
>
> rtp-warning-alsa_set_params: The period size 4096 is not supported by your
> hardware.
>  ==> Using 4096 instead.
> ortp-warning-alsa_set_params: periodsize:4096 Using 4096
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-message-incoming call ringing for 1 seconds
> ortp-warning-alsa_set_params: The number of periods 8 is not supported by
> your hardware.
>  ==> Using 8 instead.
> ortp-warning-alsa_set_params: Error setting HW params:Invalid argument
> ortp-warning-alsa_open_w: Error setting params (for 30027 micros)
>
> I have used Aplay/arecord to test my sound HW(it's a UDA 1341 chip), and it
> works fine.
>
> Could you pls give me some instructions? Many thanks!
>
> -------------------------------------------------------------log-----------
>---------------------------------------------------- # linphonec -d 6
> INFO: no logfile, logging to stdout
> ortp-message-oRTP-0.16.0 initialized.
> ortp-message-Registering all filters...
> ortp-message-Registering all soundcard handlers
> ortp-message-Card ALSA: default device added
> ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
> ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default:0
> ortp-warning-Could not attach mixer to card: Invalid argument
> ortp-message-Card ALSA: S3C24XX_UDA134X added
> ortp-message-Loading plugins
> ortp-message-Cannot open directory /usr/local/lib/mediastreamer/plugins: No
> such
>         file or directory
> ortp-message-ms_init() done
> ortp-message-Cannot open directory /usr/local/lib/liblinphone/plugins: No
> such f
>          ile or directory
> ortp-message-Adding new codec PCMU/8000
> ortp-message-Adding new codec PCMA/8000
> ortp-message-Adding new codec speex/8000
> ortp-message-Adding new codec speex/16000
> ortp-message-DNS resolution with 0.0.0.0:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-0.0.0.0 port 5060
> ortp-message-eXosip: Reseting timer to 10s before waking up!
> Ready
> Warning: video is disabled in linphonec, use -V or -C or -D to enable.
> linphonec> ortp-message-Received message:
> INVITE sip:address@hidden <address@hidden> SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.10:5060;rport;branch=z9hG4bK14604
> From: <sip:address@hidden <address@hidden>>;tag=5436
> To: <sip:address@hidden <address@hidden>>
> Call-ID: 32391
> CSeq: 20 INVITE
> Contact: <sip:address@hidden:5060>
> Content-Type: application/sdp
> Max-Forwards: 70
> User-Agent: Linphone/3.1.2 (eXosip2/3.3.0)
> Subject: Phone call
> Content-Length:   313
>
> v=0
> o=toto 123456 654321 IN IP4 192.168.1.10
> s=A conversation
> c=IN IP4 192.168.1.10
> t=0 0
> m=audio 7078 RTP/AVP 111 110 0 3 8 101
> a=rtpmap:111 speex/16000/1
> a=rtpmap:110 speex/8000/1
> a=rtpmap:0 PCMU/8000/1
> a=rtpmap:3 GSM/8000/1
> a=rtpmap:8 PCMA/8000/1
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-11
>
> ortp-message-Message received from: 192.168.1.10:5060
> ortp-message-Message received from: 192.168.1.10:5060
> ortp-message-MESSAGE REC. CALLID:32391
> ortp-message-Message received from: 192.168.1.10:5060
> ortp-message-This is a request
> ortp-message-allocating transaction ressource 1 32391
> ortp-message-allocating IST context
> DEBUG: [get_output_if] connect: Network is unreachable
> ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.1.8
> ortp-message-cb_rcvinvite (id=1)
> ortp-message-DNS resolution with 192.168.1.10:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-192.168.1.10 port 5060
> ortp-message-Message sent: (to dest=192.168.1.10:5060)
> SIP/2.0 100 Trying
> Via: SIP/2.0/UDP 192.168.1.10:5060;rport=5060;branch=z9hG4bK14604
> From: <sip:address@hidden <address@hidden>>;tag=5436
> To: <sip:address@hidden <address@hidden>>
> Call-ID: 32391
> CSeq: 20 INVITE
> User-Agent: Linphone/3.1.2 (eXosip2/unknown)
> Content-Length: 0
>
>
> ortp-message-cb_snd123456xx (id=1)
> ortp-message-DNS resolution with 192.168.1.10:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-192.168.1.10 port 5060
> ortp-message-Message sent: (to dest=192.168.1.10:5060)
> SIP/2.0 101 Dialog Establishement
> Via: SIP/2.0/UDP 192.168.1.10:5060;rport=5060;branch=z9hG4bK14604
> From: <sip:address@hidden <address@hidden>>;tag=5436
> To: <sip:address@hidden <address@hidden>>;tag=877827220
> Call-ID: 32391
> CSeq: 20 INVITE
> Contact: <sip:address@hidden:5060>
> User-Agent: Linphone/3.1.2 (eXosip2/unknown)
> Content-Length: 0
>
>
> ortp-message-cb_snd123456xx (id=1)
> ortp-message-eXosip: Reseting timer to 10s before waking up!
> ortp-message-eXosip: Reseting timer to 10s before waking up!
> ortp-message-CALL_NEW
>
> DEBUG: [get_output_if] connect: Network is unreachable
> ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.1.8
> DEBUG: [get_output_if] connect: Network is unreachable
> ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.1.8
> ortp-message-Notifying all friends that we are in status 5
> ortp-message-Partial MTU discovered : 1500
> ortp-message-Partial MTU discovered : 1500
> ortp-message-mtu to 192.168.1.3 is 1500
> ortp-message-Discovered mtu is 1500, RTP payload max size is 1440
> ortp-message-Using firewall address in sdp.
> ortp-warning-payload GSM is not enabled.
> ortp-message-Refusing audio codec 3 (GSM/8000/1)
> <sip:address@hidden <address@hidden>> is contacting you.
> linphonec> DEBUG: [get_output_if] connect: Network is unreachable
> ortp-message-_eXosip_default_gateway_with_getifaddrs(): found 192.168.1.8
> ortp-message-DNS resolution with 192.168.1.10:5060
> ortp-message-getaddrinfo returned the following addresses:
> ortp-message-192.168.1.10 port 5060
> ortp-message-Message sent: (to dest=192.168.1.10:5060)
> SIP/2.0 180 Ringing
> Via: SIP/2.0/UDP 192.168.1.10:5060;rport=5060;branch=z9hG4bK14604
> From: <sip:address@hidden <address@hidden>>;tag=5436
> To: <sip:address@hidden <address@hidden>>;tag=877827220
> Call-ID: 32391
> CSeq: 20 INVITE
> Contact: <sip:address@hidden:5060>
> User-Agent: Linphone/3.1.2 (eXosip2/unknown)
> Content-Length: 0
>
>
> ortp-message-cb_snd123456xx (id=1)
> ortp-message-eXosip: Reseting timer to 10s before waking up!
> ortp-message-Starting local ring...
> ortp-message-/usr/local/share/sounds/linphone/rings/oldphone.wav opened:
> rate=44100,channel=2
> ortp-message-ms_filter_link: MSFilePlayer:0x6a968,0-->MSAlsaWrite:0x6dc28,0
> ortp-message-incoming call ringing for 0 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-warning-alsa_set_params: The period size 40960 is not supported by
> your hardware.
>  ==> Using 40960 instead.
> ortp-warning-alsa_set_params: periodsize:40960 Using 40960
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-message-incoming call ringing for 1 seconds
> ortp-warning-alsa_set_params: The number of periods 8 is not supported by
> your hardware.
>  ==> Using 8 instead.
> ortp-warning-alsa_set_params: Error setting HW params:Invalid argument
> ortp-warning-alsa_open_w: Error setting params (for 30027 micros)
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-warning-alsa_set_params: The period size 40960 is not supported by
> your hardware.
>  ==> Using 40960 instead.
> ortp-warning-alsa_set_params: periodsize:40960 Using 40960
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-warning-alsa_set_params: The number of periods 8 is not supported by
> your hardware.
>  ==> Using 8 instead.
> ortp-warning-alsa_set_params: Error setting HW params:Invalid argument
> ortp-warning-alsa_open_w: Error setting params (for 253995 micros)
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-warning-alsa_set_params: The period size 40960 is not supported by
> your hardware.
>  ==> Using 40960 instead.
> ortp-warning-alsa_set_params: periodsize:40960 Using 40960
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-warning-alsa_set_params: The number of periods 8 is not supported by
> your hardware.
>  ==> Using 8 instead.
> ortp-warning-alsa_set_params: Error setting HW params:Invalid argument
> ortp-warning-alsa_open_w: Error setting params (for 481213 micros)
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-message-incoming call ringing for 1 seconds
> ortp-warning-alsa_set_params: The period size 40960 is not supported by
> your hardware.
>  ==> Using 40960 instead.
> ortp-warning-alsa_set_params: periodsize:40960 Using 40960
> ortp-warning-alsa_set_params: period:8 Using 8
> ortp-warning-alsa_set_params: The number of periods 8 is not supported by
> your hardware.
>  ==> Using 8 instead.
> ortp-warning-alsa_set_params: Error setting HW params:Invalid argument
> ortp-warning-alsa_open_w: Error setting params (for 704155 micros)
> ortp-message-incoming call ringing for 2 seconds
> ortp-message-incoming call ringing for 2 seconds



reply via email to

[Prev in Thread] Current Thread [Next in Thread]