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 Cirrus Audio, B+, and Jack??
  • 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
  • Replies 10 replies
  • Subscribers 673 subscribers
  • Views 1269 views
  • Users 0 members are here
  • raspberry_pi
  • pure
  • raspeberry_pi_accessories
  • data
Related

Cirrus Audio, B+, and Jack??

Former Member
Former Member over 10 years ago

Anyone get jack working with this card on the B+?

With this command:

jackd -P70 -p16 -t2000 -d alsa -dhw:sndrpiwsp -p 128 -n 3 -r 44100 -s &

 

I get this error:

Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:sndrpiwsp|hw:sndrpiwsp|128|3|44100|0|0|nomon|swmeter|soft-mode|32bit
configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
ALSA: mmap-based access is not possible for the capture stream of this audio interface
ALSA: cannot configure capture channel
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

 

I'm ultimately trying to get this working realtime with Pure Data.

 

Thanks!!

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 10 years ago

    Hi

     

    I get the same error with a Raspberry Pi B and Wolfson Audio Card. I'm trying to use jackd to use it with Guitarix and Rakarrack.

     

    BR / Fernando

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Here's something that may be relevant:

     

    https://github.com/raspberrypi/linux/commit/bad49c21520ddc40d512a0d424cbc94f20068e6c

     

    As specified on the linux audio wiki (http://wiki.linuxaudio.org/wiki/raspberrypi#using_jack), Jack needs to be patched in order to work correctly, however I did reinstall it from those repositories and haven't really gotten any further.

     

    As far as the code supplied by the first link, can anyone give me pointers on how to build/install that?

     

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I have seen the same error with jack. ALSA's dmix and dsnoop plugins don't work either, they also complain over no mmap in the hardware driver.

    It all works on my B Pis with Wolfson cards and the old 3.10 kernel.

     

    Here's something that may be relevant:

    https://github.com/raspberrypi/linux/commit/bad49c21520ddc40d512a0d424cbc94f20068e6c

     

     

    Somewhat relevant, that is the commit that added memory mapped I/O support to the Pi's built-in audio.

    It lead me on the right path, though. I looked over the kernel source tree from Cirrus Logic, comparing it with the old 3.10 kernel for the Wolfson card.

    I found a regression in sound/soc/bcm/bcm2708-i2s.c. Memory mapped I/O for i2s has disappeared in their 3.12 kernel.

     

    I have patched the source and built a kernel which works on my B+ with a Cirrus Logic card.

    The kernel can be downloaded from here:

    https://drive.google.com/file/d/0BzIaxMH3N5O1Z0dUWjRDVktUbjQ/view?usp=sharing

    File name is kernel_3_12_33_cl_mmap.tgz
    Size is 16MB

    md5sum: ca492de7f00cc214ccd40baf7f8288ff

     

    The archive contains:
    boot/kernel_cirrus_mmap.img          # The kernel.
    lib/modules/3.12.33_CL_MMAP          # ... with many subdirectories. Kernel modules.

    The archive doesn't overwrite your current kernel or modules.

    To install:

    • Become root: sudo -s
    • Go to root directory: cd /
    • Untar the archive: tar xvzf /path/to/where/you/saved/kernel_3_12_33_cl_mmap.tgz
    • Add the line
        kernel=kernel_cirrus_mmap.img
      to the file /boot/config.txt
    • Reboot

    If it doesn't work, you can revert to your original kernel by just removing the "kernel=kernel_cirrus_mmap.img" line from /boot/config.txt

     

    For those of you that build your own kernels, I've attached a patch file with my changes.

     

    --

    Ragnar

    Attachments:
    cirrus_logic_mmap.patch.zip
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Thanks for the patch. I have built a new deb package for the kernel with your patch. If you like I can put it on https://blog.georgmill.de/2015/02/18/update-for-wolfson-audio-card-on-raspberry-pi/ .

     

    Have fun.

    Georg

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    If you like and can put it on https://blog.georgmill.de/2015/02/18/update-for-wolfson-audio-card-on-raspberry-pi/ ,too.

    I have some difficulties parsing that sentence, but I think my answer is "yes" image

    --

    Ragnar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Here you are :linux-image-3.12.33-georg_2_armhf.deb

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Works OK, both Jack and the ALSA plugins. image

    On your website:

    the Pi’s built-in audio

    should be

    the Wolfson/Cirrus card

    or something to that effect. The Pi's builtin audio has had mmap support since 2013, but it was that patch that led me onto the right track.

    --

    Ragnar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Ooops, you are right. Updated the website. Thanks.

     

    Have fun

    Georg

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Ooops, you are right. Updated the website. Thanks.

     

    Have fun

    Georg

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Hi, thanks a lot for your help. I have installed the patch and configured everything but I did not have the time to test it.

    I'll post a message with the result.

     

    Georg, another correction for your blog:

     

    sudo nano /etc/modules/ should be sudo nano /etc/modules

     

    Best regards / Fernando

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Thanks for that hint. Updated website some minutes ago

    Best regards

    Georg

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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