element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum PJSIP/PJSUA with Wolfson audio card
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 15 replies
  • Subscribers 677 subscribers
  • Views 3416 views
  • Users 0 members are here
  • raspberry
  • audio
  • wolfson_pi
  • pi
  • raspberry_pi
  • raspeberry_pi_accessories
  • pjsip
  • pjsua
Related

PJSIP/PJSUA with Wolfson audio card

Former Member
Former Member over 11 years ago

I am trying to get a SIP client running on my PI with Wolfson audio card.

 

I can use aplay and arecord, work great but when I set up a call with PJSUA I get the following errors:

 

07:14:34.698pjsua_app.c  ..Turning sound device ON
07:14:34.698pjsua_aud.c  ..Opening sound device PCM@16000/1/20ms
07:14:34.707 alsa_dev.c  ...ALSA lib pcm_hw.c:326:(snd_pcm_hw_hw_params) SNDRV_PCM_IOCTL_HW_PARAMS failed (-22): Invalid argument
07:14:34.707pjsua_app.c  ..Turning sound device ON
07:14:34.707pjsua_aud.c  ..Opening sound device PCM@44100/1/20ms
07:14:35.292ec0x14005a8  ...Echo suppressor created, clock_rate=44100, channel=1, samples per frame=882, tail length=200 ms, latency=100 ms

07:14:35.293  pjsua_media.c  .Call 0: initializing media..

07:14:35.297 alsa_dev.c  ALSA lib pcm_hw.c:587:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed (-12): Cannot allocate memory

 

Anyone that can guide me in the right direction on how to get this running?

 

Best Regards

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 11 years ago

    I wonder if it is a bitrate issue. A google for that error suggests it might be, but it was unclear.

    16000 is possibly unusual (I'm no expert). 8000 is often more likely. You could check your SIP software config file to see if you can set the bitrates used to something else.

    I could be completely wrong, but it is worth a try.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to shabaz

    Hi, thank you for the response. I could not configre this so I had to do some hard-coding. Given that I wrote the code correctly it did unfortunately not help.

     

    08:34:18.298    pjsua_app.c !.Turning sound device ON

    08:34:18.303    pjsua_aud.c !.Opening sound device PCM@8000/1/20ms

    08:34:18.311     alsa_dev.c  ..ALSA lib pcm_hw.c:326:(snd_pcm_hw_hw_params) SNDRV_PCM_IOCTL_HW_PARAMS failed (-22): Invalid argument

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 11 years ago in reply to shabaz

    Hi, thank you for the response. I could not configre this so I had to do some hard-coding. Given that I wrote the code correctly it did unfortunately not help.

     

    08:34:18.298    pjsua_app.c !.Turning sound device ON

    08:34:18.303    pjsua_aud.c !.Opening sound device PCM@8000/1/20ms

    08:34:18.311     alsa_dev.c  ..ALSA lib pcm_hw.c:326:(snd_pcm_hw_hw_params) SNDRV_PCM_IOCTL_HW_PARAMS failed (-22): Invalid argument

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube