100% CPU usage with ALSA dmix enabled

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

 



Yes, i set clock rate to 8kHz and quality to 2 (also i use GSM codec). In
config_site.h i add next line:

#define PJMEDIA_RESAMPLE_IMP        PJMEDIA_RESAMPLE_NONE

to disable resampling at all, but it doesnt help.

2012/5/25 Peter Lukac <p.lukac at emtest.sk>

> maybe it's for resample problem.
>
> In you .asound.rc is 8000  rate. Do you use in pjsip application same rate?
> if not pjsip try resample it. by quality options is select algorithm
> in pjsua its options --quality ..i dont know now right path but when you
> look
> at  PJMEDIA_RESAMPLE_IMP in source you find all what you need about it.
>
>
>
>
> On Friday, May 25, 2012 11:37:15 am Andrey Karlov wrote:
> > I have 100% CPU usage with ALSA dmix enabled on my ARMv5 machine. Without
> > dmix CPU usage lesser - 10-15%. Can anyone explain me why? And how to fix
> > it?
> >
> > Some additional info:
> >
> > # cat /proc/cpuinfo
> > Processor    : XScale-V3 based processor rev 7 (v5l)
> > BogoMIPS    : 804.45
> > Features    : swp half thumb fastmult edsp iwmmxt
> > CPU implementer    : 0x69
> > CPU architecture: 5TE
> > CPU variant    : 0x0
> > CPU part    : 0x682
> > CPU revision    : 7
> >
> > Hardware    : Toradex Colibri PXA320
> > Revision    : 0000
> > Serial        : 000023c9222d1400
> >
> > # cat .asoundrc
> > pcm.!default {
> >         type plug
> >         slave.pcm "asymed"
> > }
> >
> > pcm.dmixer {
> >         type dmix
> >         ipc_key 1024
> >         slave {
> >                 pcm "hw:0,0"
> >                 period_time 0
> >                 period_size 2048
> >                 buffer_size 4096
> >                 channels 1
> >                 rate 8000
> >         }
> >         bindings {
> >                 0 0
> >         }
> > }
> >
> > ctl.dmixer {
> >         type hw
> >         card 0
> > }
> >
> > pcm.dsnooped {
> >         ipc_key 1027
> >         type dsnoop
> >         slave.pcm "hw:0,0"
> > }
> >
> > pcm.asymed {
> >         type asym
> >         playback.pcm "dmixer"
> >         capture.pcm "dsnooped"
> > }
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120525/682ff7c5/attachment-0001.html>


[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