Hi, Thanks for the reply. Now I am able to run the pulseaudio daemon with echo cancel source and sinks without any problem on my ubuntu desktop system. Now I want to enable echo cancel module on my omap4 (PANDA) board. I followed the same steps as i have done for ubuntu desktop. Pulseaudio daemon is working fine but when i tried to load the Echo cancel module, the daemon is getting killed. I think the problem is with the sample rate.I have tried with both 48000 and 44100hz rates but the same problem occurs. Please find the attached log when i load the echo cancel module. Thanks Regards, Abdul Moiz. On Sun, Jul 24, 2011 at 7:13 PM, Colin Guthrie <gmane at colin.guthr.ie> wrote: > 'Twas brillig, and ABDUL MOIZ at 22/07/11 10:02 did gyre and gimble: > > Hi, > > Thanks for the reply. > > > > As adviced by you,I have followed the procedure given in the link > > > > > > http://colin.guthr.ie/2010/09/compiling-and-running-pulseaudio-from-git/ > > > > I got the code from the git source as told in the guide and > > everything was going well but i got error at this step > > > > $ src/pulseaudio -n -F src/default.pa <http://default.pa> -p > > $(pwd)/src/.libs/ -vvvv > > > > You can check the attached log file to see the error. > > Interesting. Perhaps this indicates some kind of corruption in the > database files used for restoring volume and devices... can you save the > files in ~/.pulse/ somewhere (we may want to analyse them later to > prevent this happening again) and then just trash that whole folder so > you can start up "clean"? > > > Then I have again restarted the build process by giving the path to be > > /usr while configuring i.e > > > > $ ./configure --prefix=/usr > > > > And the build was successful, and I can able to run the pulseaudio > daemon. > > Strange... this shouldn't matter much. > > > In the CLI terminal, i have changed the default source and sink to echo > > cancel as shown below: > > > > <<set-default-source > alsa_input.pci-0000_00_1b.0.analog-stereo.echo-cancel > > <<set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo.echo-cancel > > > > Now when i test using gst pipeline, i can observe that echo & noise has > > been reduced. > > To confirm whether echo cancel is working or not , i tried to see > > verbose log as shown below: > > > > $ pulseaudio -v > > > > But I am getting the following: > > > > I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not > permitted > > I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not > permitted > > I: core-util.c: Successfully gained nice level -11. > > I: main.c: This is PulseAudio 0.98-dev-438-g6add-dirty > > I: main.c: Page size is 4096 bytes > > I: main.c: Machine ID is fstl-laptop. > > I: main.c: Session ID is > > 2012bf02773ecb9a7c891fbb4e25bc80-1311316492.289922-1263349109. > > I: main.c: Using runtime directory /home/fstl/.pulse/fstl-laptop-runtime. > > I: main.c: Using state directory /home/fstl/.pulse. > > I: main.c: Using modules directory /usr/lib/pulse-0.98/modules. > > I: main.c: Running in system mode: no > > E: pid.c: Daemon already running. > > E: main.c: pa_pid_file_create() failed. > > > This is expected. You can only run one instance of PA at a time. > > > when i kill the pulseaudio daemon, then also the samething coming. > > And also I have tried the below commands: > > > > $ pulseaudio --kill > > $ killall pulseaudio > > $ killall -9 pulseaudio > > $ rm -rf ~/.pulse* > > $ sudo rm -rf /tmp/pulse* > > > > But still "pulseaudio -v" is not working. > > and "pulseaudio --kill" also being executed, but pulseaudio daemon is > > still running. > > This is fully expected. PA supports an autospawn feature and it's highly > likely that something running on your desktop is requesting PA to be > run. e.g. gnome-volume-control-applet, or pretty much any gtk application. > > > So the problem is pulseaudio instance is not getting killed properly. > > Can you please help me to get clean start and kill of pulseaudio daemon > > and as well as to get the log messages of running pulseaudio daemon. > > When developing on PA, I very much recommend setting autospawn=no in > /etc/pulse/client.conf or ~/.pulse/client.conf to ensure that the system > version of PA does not automatically respawn itself. > > I think you're generally getting a bit muddled up between your system's > PA install and the one you are running yourself. It's a little tricky to > make things behave themselves, but the guide I linked to previously > mentions this, so it's probably worthwhile reading the whole article > again to make sure nothing has been missed. > > Hope that helps. > > Col > > > -- > > Colin Guthrie > gmane(at)colin.guthr.ie > http://colin.guthr.ie/ > > Day Job: > Tribalogic Limited [http://www.tribalogic.net/] > Open Source: > Mageia Contributor [http://www.mageia.org/] > PulseAudio Hacker [http://www.pulseaudio.org/] > Trac Hacker [http://trac.edgewall.org/] > > _______________________________________________ > pulseaudio-discuss mailing list > pulseaudio-discuss at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110725/cc70ba58/attachment.html> -------------- next part -------------- I: client.c: Created 7 "Native client (UNIX socket client)" I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1 I: source.c: Created source 2 "alsa_input.platform-soc-audio.analog-stereo.echo-cancel" with sample spec s16le 2ch 48000Hz and channel map front-left,front-right I: source.c: device.master_device = "alsa_input.platform-soc-audio.analog-stereo" I: source.c: device.class = "filter" I: source.c: device.intended_roles = "phone" I: source.c: device.echo-cancel.name = "alsa_input.platform-soc-audio.analog-stereo.echo-cancel" I: source.c: device.description = "Echo-Cancel Source alsa_input.platform-soc-audio.analog-stereo.echo-cancel on SDP4430 Analog Stereo" I: source.c: device.icon_name = "audio-input-microphone" I: sink.c: Created sink 1 "alsa_output.platform-soc-audio.analog-stereo.echo-cancel" with sample spec s16le 2ch 48000Hz and channel map front-left,front-right I: sink.c: device.master_device = "alsa_output.platform-soc-audio.analog-stereo" I: sink.c: device.class = "filter" I: sink.c: device.intended_roles = "phone" I: sink.c: device.echo-cancel.name = "alsa_output.platform-soc-audio.analog-stereo.echo-cancel" I: sink.c: device.description = "Echo-Cancel Sink alsa_output.platform-soc-audio.analog-stereo.echo-cancel on SDP4430 Analog Stereo" I: sink.c: device.icon_name = "audio-card" I: source.c: Created source 3 "alsa_output.platform-soc-audio.analog-stereo.echo-cancel.monitor" with sample spec s16le 2ch 48000Hz and channel map front-left,front-right I: source.c: device.description = "Monitor of Echo-Cancel Sink alsa_output.platform-soc-audio.analog-stereo.echo-cancel on SDP4430 Analog Stereo" I: source.c: device.class = "monitor" I: source.c: device.icon_name = "audio-input-microphone" I: alsa-source.c: Trying resume... I: alsa-source.c: Resumed successfully... I: alsa-source.c: Starting capture. I: resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates. I: resampler.c: Using resampler 'copy' I: resampler.c: Using float32le as working format. I: source-output.c: Created output 0 "Echo-Cancel Source Stream" on alsa_input.platform-soc-audio.analog-stereo with sample spec s16le 2ch 48000Hz and channel map front-left,front-right I: source-output.c: media.name = "Echo-Cancel Source Stream" I: source-output.c: media.role = "filter" I: source-output.c: module-stream-restore.id = "source-output-by-media-role:filter" I: alsa-sink.c: Trying resume... I: alsa-sink.c: Resumed successfully... I: alsa-sink.c: Starting playback. I: resampler.c: Using resampler 'speex-float-3' I: resampler.c: Using float32le as working format. I: resampler.c: Choosing speex quality setting 3. I: sink-input.c: Created input 0 "Echo-Cancel Sink Stream" on alsa_output.platform-soc-audio.analog-stereo with sample spec s16le 2ch 48000Hz and channel map front-left,front-right I: sink-input.c: media.name = "Echo-Cancel Sink Stream" I: sink-input.c: media.role = "filter" I: sink-input.c: module-stream-restore.id = "sink-input-by-media-role:filter" I: module.c: Loaded "module-echo-cancel" (index: #18; argument: ""). I: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.platform-soc-audio.analog-stereo.echo-cancel. I: module-device-restore.c: Storing volume/mute/port for device source:alsa_output.platform-soc-audio.analog-stereo.echo-cancel.monitor. I: module-device-restore.c: Storing volume/mute/port for device source:alsa_input.platform-soc-audio.analog-stereo.echo-cancel. I: module-stream-restore.c: Storing volume/mute/device for stream sink-input-by-media-role:filter. I: module-stream-restore.c: Storing volume/mute/device for stream source-output-by-media-role:filter. I: client.c: Freed 7 "pactl" I: protocol-native.c: Connection died. E: module-echo-cancel.c: Doing resync E: module-echo-cancel.c: Playback after capture (-672673), drop sink 129192 E: module-echo-cancel.c: playback too far ahead (107409), drop source 20620 Killed