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
    About the element14 Community
  • 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 Logic Audio Card working on the Raspberry Pi 2
  • 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 165 replies
  • Subscribers 715 subscribers
  • Views 27015 views
  • Users 0 members are here
  • wolfson
  • raspberry
  • audio
  • pi
  • cirrus
  • raspberry_pi
  • rpi2
  • raspeberry_pi_accessories
  • pi2
Related

Cirrus Logic Audio Card working on the Raspberry Pi 2

e14 Contributor
e14 Contributor over 11 years ago

Hi all!

 

As you might know, Cirrus Logic's main kernel source branch recently switched to 3.18.

My first thought was "Hmm, that means the Cirrus Logic card could finally work on the RPi2..."

I have built a couple of 3.18 kernels for my B+ and RPi2 and I have managed to get both models to produce sound image

 

It's still early days, i.e. there are possibly bugs and glitches to fix, but for those of you who would like to try it out I've made an image file that you can download here:

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

The file is a 1.3 GB zip. Uncompressed size is 3.1 GB, so it fits comfortably on a 4 GB card.


The image is based on the standard 2015-02-16-raspbian-wheezy image from the Foundation that you flash to a SD card for a fresh install.

I have only added my kernels and set up the configuration files to get the card going.

It should work on the older B model  with a Wolfson Audio Card too, but I haven't tested that yet.

 

Have fun!

--

Ragnar

  • Sign in to reply
  • Cancel
  • hmaerki
    hmaerki over 11 years ago in reply to e14 Contributor

    Hello Jeremy

     

    Thanks a lot for your quick reply.

     

    However, I need DIFFERENT Sound on Headset and Lineout. And therefore I need 4 Output-Plugs in Jack.

     

    Do you have any clue how to do that?

     

    Any help is greatly appreciated

       Hans

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to hmaerki

    As far as I know that is not possible with the current drivers, it is not possible to define different outputs in ALSA/JACK (hence the clunky scripts). Maybe something can be done with an .asoundrc script but that's a bit over my head and  probably it can't be done because I don't see any PCM devices exposed. You might also want to ask on IRC in the #alsa channel on Freenode.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to hmaerki

    No, it is not possible with the current drivers. The I2S interface can only carry one or two channels. There could be ways around that, but that means some driver hacking.

    Florian Meier  ( koalo ) has done some experiments with four channel input on the Wolfson card, but I don't know of any real implementation to get more than two channels.

    --

    Ragnar

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to e14 Contributor

    hi jeremy,

     

    I ended up purging all the cirrus packages (apart from the linux-libc6-dev, which had dependencies). while doing this I noticed that some of the packages where in iU state before I purged them.

    may be a relict from the first installation and the first update.

     

    after updating the repository I had all packages on ii, the config.txt was updated (I noticed that you use a different image name, since the upgrade adds the image and overlay section again

    - it is -v7 now, but I don't know what the statement was like in the first install. the non -v7 shouldn't boot on pi2 anyway - is that the source of my error, maybe?)

     

    anyway, it boots now with the correct image, so I have to deal with the input/output scripts now, I suppose. image

     

    thanks a lot for your efforts!

     

    -greetings, markus-

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago

    I have Arch linux on my raspberry pi and build a new kernel (on the pi itself) following the github page. Unfortunately the kernel gets loaded but the audio card isn't loaded image (aplay -l doesn't show the card). The kernel has DT enabled and the overlay is in /boot/overlays. In config.txt I added the line: dtoverlay=rpi-cirrus-wm5102-overlay. Can someone help?

     

    aplay -l

    **** List of PLAYBACK Hardware Devices ****

    card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]

      Subdevices: 8/8

      Subdevice #0: subdevice #0

      Subdevice #1: subdevice #1

      Subdevice #2: subdevice #2

      Subdevice #3: subdevice #3

      Subdevice #4: subdevice #4

      Subdevice #5: subdevice #5

      Subdevice #6: subdevice #6

      Subdevice #7: subdevice #7

    card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]

      Subdevices: 1/1

      Subdevice #0: subdevice #0


    EDIT: this is the error I get from dmesg


    [   10.216638] bcm2708-i2s 3f203000.i2s: Missing dma channel for stream: 1

    [   10.226998] bcm2708-i2s 3f203000.i2s: ASoC: pcm constructor failed: -22

    [   10.235420] snd-rpi-wsp sound: ASoC: can't create pcm WM5102 AiFi :-22

    [   10.244913] snd-rpi-wsp sound: ASoC: failed to instantiate card -22

    [   10.266373] snd-rpi-wsp sound: Failed to register card: -22

    [   10.273129] snd-rpi-wsp: probe of sound failed with error -22

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago

    Hello.

    How i can connect Wolfson Audio Card to Raspberry Pi2? I Need the schema.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to e14 Contributor

    autostatic  / Jeremie:  would you please provide deb-src packages through http://rpi.autostatic.com/ ? HiassofT rebases against recent kernel versions through https://github.com/HiassofT/rpi-linux and I would like to build it through dpkg-buildpackage. Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to e14 Contributor

    Hello Steffen, sure, give me some time to add them. But the packages are kind of hackish and I'm thinking about rebuilding using flash-kernel. That's the way to go I guess. But I'll upload the source packages.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to e14 Contributor

    Jeremy ,

     

    I am making a project about audio recorder with RPi2 and cirrus audio logic card, i wonder if you answer me some questions:

     

    1) What are the steps to connect RPi2 with Cirrus audio logic card?

    2) how to recorder audio in the micro sd card of the RPi2

     

    please i hope yours answers asap

     

    thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 11 years ago in reply to e14 Contributor

    ragnar.jensen

     

    I am making a project about audio recorder with RPi2 and cirrus audio logic card, i wonder if you answer me some questions:

     

    1) What are the steps to connect RPi2 with Cirrus audio logic card?

    2) how to recorder audio in the micro sd card of the RPi2

     

    please i hope yours answers asap

     

    thanks

    • 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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube