[pulseaudio-discuss] Pulse audio echo module problem with Alsa
Dheeraj Kumar Dodda
dheeraj.dodda at orvito.com
Thu May 15 23:45:14 PDT 2014
----- Original Message -----
From: "Alexander E. Patrakov" <patrakov at gmail.com>
To: "General PulseAudio Discussion" <pulseaudio-discuss at lists.freedesktop.org>
Sent: Friday, May 16, 2014 11:55:06 AM
Subject: Re: [pulseaudio-discuss] Pulse audio echo module problem with Alsa
16.05.2014 11:47, Dheeraj Kumar Dodda wrote:
> Hi All,
>
> I'm trying to use the echo cancellation module on my embedded platform,To make voip call ,
>
> These are the steps i followed,
> pulseaudio -v
> pactl load-module module-echo-cancel
> export pulse_prop=filter.apply=echo-cancel
>
> I started voip, These are the errors I am getting
>
> module-echo-cancel.c: Playback after capture (-1589177), drop sink 101726
> module-echo-cancel.c: Playback after capture (-1699880), drop sink 108812
> module-echo-cancel.c: Playback after capture (-1721343), drop sink 110184
> asyncq.c: q overrun, queuing locally
> asyncq.c: q overrun, queuing locally
> asyncq.c: q overrun, queuing locally
> W: [alsa-source-SGTL5000 SGTL5000-0] asyncq.c: q overrun, queuing locally
> W: [alsa-source-SGTL5000 SGTL5000-0] asyncq.c: q overrun, queuing locally
> W: [alsa-source-SGTL5000 SGTL5000-0] asyncq.c: q overrun, queuing locally
> E: [alsa-source-SGTL5000 SGTL5000-0] module-echo-cancel.c: Playback after capture (-2082849), drop sink 133322
> W: [alsa-source-SGTL5000 SGTL5000-0] asyncq.c: q overrun, queuing locally
> E: [alsa-source-SGTL5000 SGTL5000-0] module-echo-cancel.c: Playback after capture (-1621593), drop sink 103800
> E: [alsa-source-SGTL5000 SGTL5000-0] module-echo-cancel.c: Playback after capture (-1538404), drop sink 98476
> E: [alsa-source-SGTL5000 SGTL5000-0] module-echo-cancel.c: Playback after capture (-1618386), drop sink 103596
Hello.
This might happen if the CPU is not fast enough to do echo cancellation
at the full sample rate that the hardware supports. To test the theory:
1. pacmd load-module module-echo-cancel rate=8000 channels=1
2. don't export pulse_prop
3. Run your application as you would normally do, use pavucontrol or
"pacmd move-sink-input + pacmd move-source-output" to make sure it uses
the echo-cancelled sink & source.
If the problem does not go away, let's hope someone else has a better
idea what's going on.
Hello,
Thanks for quick reply,
I followed above steps now it is showing
alsa-source.c: Increasing minimal latency to 16.00 ms
alsa-sink.c: Scheduling delay of 24.50 ms > 10.00 ms, you might want to investigate this to improve latency...
alsa-sink.c: Increasing minimal latency to 26.00 ms
alsa-source.c: Increasing minimal latency to 26.00 ms
alsa-sink.c: Increasing wakeup watermark to 16.00 ms
alsa-source.c: Increasing wakeup watermark to 16.00 ms
alsa-sink.c: Increasing minimal latency to 36.00 ms
alsa-source.c: Increasing minimal latency to 36.00 ms
alsa-source.c: Increasing wakeup watermark to 26.00 ms
alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write!
alsa-sink.c: Most likely this is a bug in the ALSA driver '(null)'. Please report this issue to the ALSA developers.
alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
alsa-source.c: Increasing minimal latency to 46.00 ms
alsa-source.c: Increasing wakeup watermark to 36.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing minimal latency to 56.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing wakeup watermark to 46.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing minimal latency to 66.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing wakeup watermark to 56.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing minimal latency to 76.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing wakeup watermark to 66.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing minimal latency to 86.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing wakeup watermark to 76.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing minimal latency to 96.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing wakeup watermark to 86.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing minimal latency to 106.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing wakeup watermark to 96.00 ms
I: [alsa-source-SGTL5000 SGTL5000-0] alsa-source.c: Increasing minimal latency to 116.00 ms
alsa-source.c: Increasing wakeup watermark to 106.00 ms
alsa-source.c: Increasing minimal latency to 126.00 ms
alsa-source.c: Increasing wakeup watermark to 116.00 ms
alsa-source.c: Increasing minimal latency to 128.00 ms
alsa-source.c: Increasing wakeup watermark to 118.00 ms
alsa-source.c: Overrun!
After that no sound.
Thanks&Regards
D Dheeraj kumar
--
Alexander E. Patrakov
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
More information about the pulseaudio-discuss
mailing list