[alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Could you please let me know whether the below issue is in PJSIP or alsa or driver or in the ti sdk8 BSP's (rootfs)
1. We are running PJSIP for establishing VOIP calls on ti sdk 8 BSP's (linux kernel 3.14), we are seeing the below error messages in the PJSIP, Could you please let me know what could be issue ?
08:32:42.082 Master/sound Underflow, buf_cnt=0, will generate 1 frame 08:32:42.083 Master/sound Underflow, buf_cnt=0, will generate 1 frame 08:32:42.086 Master/sound Underflow, buf_cnt=0, will generate 1 frame 08:32:42.088 Master/sound Underflow, buf_cnt=0, will generate 1 frame 08:32:42.088 Master/sound Underflow, buf_cnt=0, will generate 1 frame 08:32:42.091 Master/sound Underflow, buf_cnt=0, will generate 1 frame 08:32:42.112 Master/sound Underflow, buf_cnt=0, will generate 1 frame
In failure call pjsip reports Master/sound Underflow continuously, At this point the control stays at pjsip and application will wait for it and all functionality in idle state at application and after this, no other feature will work until restart the application.
The above problem observed with new rootfs (ti sdk 8) but when we tried with old rootfs (ti sdk 7) we are able to make calls with no problem. Few calls are long duration calls(33 and 55 minutes).
With ti sdk 8 kernel, I tried replacing even the alsa libraries from ti sdk 7 rootfs to ti sdk 8 rootfs, but still the issue persists,
/usr/lib/libasound.la
/usr/lib/libasound.so
/usr/lib/alsa-lib/smixer/smixer-ac97.la
/usr/lib/alsa-lib/smixer/smixer-ac97.so
/usr/lib/alsa-lib/smixer/smixer-hda.la
/usr/lib/alsa-lib/smixer/smixer-hda.so
/usr/lib/alsa-lib/smixer/smixer-sbase.la
/usr/lib/alsa-lib/smixer/smixer-sbase.so
Firstly could you please let me know why this issue is seen in ti sdk 8 BSP's (ie., in rootfs), & what could be the problem in ti sdk 8 rootfs ?? Apart from the above is there any other ALSA related configuration files, needs to copied from the ti sdk 7 rootfs to ti sdk 8 rootfs, inorder to resolve this issue
If possible, could you please validate this PJSIP version 2.3 on ti sdk 8 BSP's on your EVK kit & let me know whether this issue is reproducible
Awaiting for your replies, Many Thanks in advance
Srinivasan S wrote:
we are seeing the below error messages in the PJSIP, Could you please let me know what could be issue ?
I don't know PJSIP.
The above problem observed with new rootfs (ti sdk 8) but when we tried with old rootfs (ti sdk 7) we are able to make calls with no problem.
Apparently, the driver changed its behaviour in the new kernel.
If possible, could you please validate this PJSIP version 2.3 on ti sdk 8 BSP's on your EVK kit
I don't have any such TI SDK.
Regards, Clemens
Dear Clemens,
Many Thanks a lot for your suggestions till so far
I suspect it might be the clock drift issue again, could you please let me know whether my suspection is correct or wrong??
Because this issue might be, in one of my earlier reported threads for establishing the GSM (ie., sound card & GSM streams were not synchronized)
Could you please let me is there any chances of getting resolved in sound card driver (my understanding of sound card driver is codec driver, pls let me know whether my understanding is correct or not ) or alsa??
Could you please provide any inputs on this
Kindly do the needful as early as possible
Many Thanks in advance,
________________________________________ From: Clemens Ladisch clemens@ladisch.de Sent: Friday, July 10, 2015 7:09 PM To: Srinivasan S Cc: alsa-devel@alsa-project.org Subject: Re: Running PJSIP for voip calls in alsa
Srinivasan S wrote:
we are seeing the below error messages in the PJSIP, Could you please let me know what could be issue ?
I don't know PJSIP.
The above problem observed with new rootfs (ti sdk 8) but when we tried with old rootfs (ti sdk 7) we are able to make calls with no problem.
Apparently, the driver changed its behaviour in the new kernel.
If possible, could you please validate this PJSIP version 2.3 on ti sdk 8 BSP's on your EVK kit
I don't have any such TI SDK.
Regards, Clemens
Dear Clemens,
As I suspected, am seeing the Clock drifts in ti sdk 8 (linux kernel 3.14) but I dont see this in ti sdk 7 (linux kernel 3.12), Could you please help me out, is there any possibilities of this getting resolved in Kernel or alsa????
Audio Device Test Here are the audio statistics: Rec : interval (min/max/avg/dev)= 0/41/20/13 (ms) max burst=3 Play: interval (min/max/avg/dev)= 19/22/20/0 (ms) burst=2 There could be 1 problem(s) with the sound device: 1: Clock drifts detected. Capture is 16 samples/sec faster than the playback device
1:OK
Kindly do the needful as early as possible
Awaiting for your replies
Many Thanks in advance again for all your support w.r.t all of my threads
________________________________________ From: Srinivasan S Sent: Sunday, July 12, 2015 12:24 PM To: Clemens Ladisch Cc: alsa-devel@alsa-project.org Subject: Re: Running PJSIP for voip calls in alsa
Dear Clemens,
Many Thanks a lot for your suggestions till so far
I suspect it might be the clock drift issue again, could you please let me know whether my suspection is correct or wrong??
Because this issue might be, in one of my earlier reported threads for establishing the GSM (ie., sound card & GSM streams were not synchronized)
Could you please let me is there any chances of getting resolved in sound card driver (my understanding of sound card driver is codec driver, pls let me know whether my understanding is correct or not ) or alsa??
Could you please provide any inputs on this
Kindly do the needful as early as possible
Many Thanks in advance,
________________________________________ From: Clemens Ladisch clemens@ladisch.de Sent: Friday, July 10, 2015 7:09 PM To: Srinivasan S Cc: alsa-devel@alsa-project.org Subject: Re: Running PJSIP for voip calls in alsa
Srinivasan S wrote:
we are seeing the below error messages in the PJSIP, Could you please let me know what could be issue ?
I don't know PJSIP.
The above problem observed with new rootfs (ti sdk 8) but when we tried with old rootfs (ti sdk 7) we are able to make calls with no problem.
Apparently, the driver changed its behaviour in the new kernel.
If possible, could you please validate this PJSIP version 2.3 on ti sdk 8 BSP's on your EVK kit
I don't have any such TI SDK.
Regards, Clemens
Srinivasan S wrote:
I suspect it might be the clock drift issue again, could you please let me know whether my suspection is correct or wrong??
Because this issue might be, in one of my earlier reported threads for establishing the GSM (ie., sound card & GSM streams were not synchronized)
Could you please let me is there any chances of getting resolved in sound card driver or alsa??
If the new kernel behaves differently, then apparently the driver changes. But you'd have to ask the author of the driver.
In any case, the sound card cannot know how fast data arrives over GSM.
Regards, Clemens
Thanks a lot Clemens for your quick responses
Could you please provide any suggestions or inputs from where this problem could arrive ie., in either platform driver or machine driver or codec driver??
Kindly do the needful as early as possible
Many Thanks in advance Clemens,
________________________________________ From: Clemens Ladisch clemens@ladisch.de Sent: Monday, July 13, 2015 12:36 PM To: Srinivasan S Cc: alsa-devel@alsa-project.org Subject: Re: Running PJSIP for voip calls in alsa
Srinivasan S wrote:
I suspect it might be the clock drift issue again, could you please let me know whether my suspection is correct or wrong??
Because this issue might be, in one of my earlier reported threads for establishing the GSM (ie., sound card & GSM streams were not synchronized)
Could you please let me is there any chances of getting resolved in sound card driver or alsa??
If the new kernel behaves differently, then apparently the driver changes. But you'd have to ask the author of the driver.
In any case, the sound card cannot know how fast data arrives over GSM.
Regards, Clemens
Dear Clemens,
Thanks a lot for your replies,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance
________________________________________ From: Clemens Ladisch clemens@ladisch.de Sent: Monday, July 13, 2015 1:28 PM To: Srinivasan S Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Srinivasan S wrote:
Could you please provide any suggestions or inputs from where this problem could arrive ie., in either platform driver or machine driver or codec driver??
I do not know that driver.
Regards, Clemens
Dear Clemens,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance ________________________________________ From: Srinivasan S Sent: Thursday, July 16, 2015 10:09 AM To: Clemens Ladisch Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Thanks a lot for your replies,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance
________________________________________ From: Clemens Ladisch clemens@ladisch.de Sent: Monday, July 13, 2015 1:28 PM To: Srinivasan S Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Srinivasan S wrote:
Could you please provide any suggestions or inputs from where this problem could arrive ie., in either platform driver or machine driver or codec driver??
I do not know that driver.
Regards, Clemens
Dear Clemens,
Could you please helpme out in this
I am trying to understand few terminologies w.r.t the following for developing alsa application
Period_size Periods period_time Buffer_time Buffer_size
________________________________________ From: alsa-devel-bounces@alsa-project.org alsa-devel-bounces@alsa-project.org on behalf of Srinivasan S srinivasan.s@tataelxsi.co.in Sent: Monday, July 20, 2015 12:18 PM To: Clemens Ladisch Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance ________________________________________ From: Srinivasan S Sent: Thursday, July 16, 2015 10:09 AM To: Clemens Ladisch Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Thanks a lot for your replies,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance
________________________________________ From: Clemens Ladisch clemens@ladisch.de Sent: Monday, July 13, 2015 1:28 PM To: Srinivasan S Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Srinivasan S wrote:
Could you please provide any suggestions or inputs from where this problem could arrive ie., in either platform driver or machine driver or codec driver??
I do not know that driver.
Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Considering playback,
period_size : your sound card will generate interrupt after period_size bytes have been consumed and ALSA core is informed of this, in driver's interrupt handler. Periods : Number of buffer slices , each having period_size bytes. Buffer_size : periods * period_size
Your application should query the driver for the parameters and set accordingly. Below is one good example for writing a alsa application :
http://equalarea.com/paul/alsa-audio.html
Regards, Maruthi
On Tue, Jul 28, 2015 at 10:38 AM, Srinivasan S <srinivasan.s@tataelxsi.co.in
wrote:
Dear Clemens,
Could you please helpme out in this
I am trying to understand few terminologies w.r.t the following for developing alsa application
Period_size Periods period_time Buffer_time Buffer_size
From: alsa-devel-bounces@alsa-project.org < alsa-devel-bounces@alsa-project.org> on behalf of Srinivasan S < srinivasan.s@tataelxsi.co.in> Sent: Monday, July 20, 2015 12:18 PM To: Clemens Ladisch Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance ________________________________________ From: Srinivasan S Sent: Thursday, July 16, 2015 10:09 AM To: Clemens Ladisch Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Thanks a lot for your replies,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance
From: Clemens Ladisch clemens@ladisch.de Sent: Monday, July 13, 2015 1:28 PM To: Srinivasan S Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Srinivasan S wrote:
Could you please provide any suggestions or inputs from where this
problem could arrive ie., in either platform driver or machine driver or codec driver??
I do not know that driver.
Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Dear Maruthi,
Thanks a lot for the info
1. Is it same for Record also???
2. Could you please help me out in calculating for 8khz 16 bit stereo & 8khz 16 bit mono. (for playback & record)
3. Is that ALSA would interrupt for the data, every one second ie., 2*8000 = 16000 bytes per second
or is that the driver interrupt handler, at what rate the data is transfered to the ALSA???
Sorry for my poor understanding
Could you please help me out in this
Kindly do the needful as early as possible
Many Thanks in advance
Srinivasan S
________________________________ From: maruthi srinivas maruthi.srinivas.b@gmail.com Sent: Tuesday, July 28, 2015 12:22 PM To: Srinivasan S Cc: Clemens Ladisch; alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Considering playback,
period_size : your sound card will generate interrupt after period_size bytes have been consumed and ALSA core is informed of this, in driver's interrupt handler. Periods : Number of buffer slices , each having period_size bytes. Buffer_size : periods * period_size
Your application should query the driver for the parameters and set accordingly. Below is one good example for writing a alsa application :
http://equalarea.com/paul/alsa-audio.html
Regards, Maruthi
On Tue, Jul 28, 2015 at 10:38 AM, Srinivasan S <srinivasan.s@tataelxsi.co.inmailto:srinivasan.s@tataelxsi.co.in> wrote: Dear Clemens,
Could you please helpme out in this
I am trying to understand few terminologies w.r.t the following for developing alsa application
Period_size Periods period_time Buffer_time Buffer_size
________________________________________ From: alsa-devel-bounces@alsa-project.orgmailto:alsa-devel-bounces@alsa-project.org <alsa-devel-bounces@alsa-project.orgmailto:alsa-devel-bounces@alsa-project.org> on behalf of Srinivasan S <srinivasan.s@tataelxsi.co.inmailto:srinivasan.s@tataelxsi.co.in> Sent: Monday, July 20, 2015 12:18 PM To: Clemens Ladisch Cc: alsa-devel@alsa-project.orgmailto:alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance ________________________________________ From: Srinivasan S Sent: Thursday, July 16, 2015 10:09 AM To: Clemens Ladisch Cc: alsa-devel@alsa-project.orgmailto:alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Dear Clemens,
Thanks a lot for your replies,
Could you pls let me know, do you know any alsa linux utilities/tools similar to aplay arecord to determine this clock drift issue in driver
Kindly do the needful,
Many Thanks in advance
________________________________________ From: Clemens Ladisch <clemens@ladisch.demailto:clemens@ladisch.de> Sent: Monday, July 13, 2015 1:28 PM To: Srinivasan S Cc: alsa-devel@alsa-project.orgmailto:alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Running PJSIP for voip calls in alsa
Srinivasan S wrote:
Could you please provide any suggestions or inputs from where this problem could arrive ie., in either platform driver or machine driver or codec driver??
I do not know that driver.
Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.orgmailto:Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.orgmailto:Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
participants (3)
-
Clemens Ladisch
-
maruthi srinivas
-
Srinivasan S