1 8 9 10 11 12 162 Replies Latest reply on Sep 12, 2016 8:16 AM by xxsaschkoxx Go to original post
      • 135. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
        diego_pucp

        I cant add these line after installing ...please help me i cant alter /boot/config.txt ..please

        • 136. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
          stmllr

          Diego, If you are looking for something which works out-of-the-box, I would suggest to look for an alternative audio board. sorry to say that, but I spend quite some time to get cirrus logic up and running.

          • 137. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
            stmllr

            @HiassofT Thanks for your feedback on the blog post, I added your suggestions.

            • 138. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
              diego_pucp

              ragnar.jensen

               

              I have followed yours step, i have raspbian 3.18 , and i have installed :

              To install:

              Become root: sudo -s

              Go to root directory: cd /

              Untar the archive: tar xvzf /path/to/where/you/saved/kernel_3_18_9_W_CL.tgz


              But when I want modificate there are 2 problems:

              1)  /boot/config.txt , i dont have permission ...to modificate

              2) /etc/modprobe.d/raspi-blacklist.conf doesnt exist


              please help me..i need to solve this problem..its for my university project , i dont have much time

              • 139. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                autostatic

                Hi Steffen, yes, that's the one. If I got something packaged it would be great if you could do some testing.

                • 140. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                  diego_pucp

                  ragnar.jensen

                   

                  Thanks i followed your first post and my cirrus audio logic card can connect with PI2, one question , i want to recorder audio in the best quality for maybe 1 hour...and save in de SD card of the RPI2 files .wav , programming in python is a option?  do you have any suggestion about that?

                   

                  Can someone help me out?


                  please

                  • 141. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                    diego_pucp

                    Thanks i followed your first post and my cirrus audio logic card can connect with PI2, one question , i want to recorder audio in the best quality for maybe 1 hour...and save in de SD card of the RPI2 files .wav , programming in python is a option?  do you have any suggestion about that?

                     

                    Can someone help me out?


                    please

                    • 142. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                      troydhanson

                      This worked perfectly. Thanks!

                       

                      To recap my steps. Starting from fresh Raspbian wheezy on Rpi2 with Cirrus AC.

                      wget -q -O - http://rpi.autostatic.com/autostatic.gpg.key | sudo apt-key add -
                      sudo wget -q -O /etc/apt/sources.list.d/autostatic-audio-raspbian.list http://rpi.autostatic.com/autostatic-audio-raspbian.list
                      sudo apt-get update
                      sudo apt-get install cirrus-config
                      sudo reboot
                      Playback_to_Lineout.sh
                      aplay some-wav-file
                      • 143. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                        diego_pucp

                        Troy,

                         

                        I need to record audio in files .wav and save in the SD card to the raspberry  with cirrus audio logic card, someone help me please,  it is urgent!!!

                        • 144. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                          tsunami

                          Thank you for doing this!

                           

                          I'm actually shocked that it took me under and hour to get this Cirrus Logic Audio Card (CLAC) working with a Raspberry Pi 2 (RPi2).

                           

                          For the total noob, here are the steps I took to get playback working.

                           

                          1.) Downloaded Ragnar's O/S image: https://docs.google.com/uc?id=0BzIaxMH3N5O1cmJ1bFhMcG1hc0E&export=download

                          2.) Using OSX, I unzipped the image and it is simply a .img file (about 3 gigs)

                          3.) I downloaded and then ran SDFormatter for OSX https://www.sdcard.org/downloads/formatter_4/eula_mac/index.html

                          4.) In SDFormatter I selected the QuickFormat option for my MicroSD Card (uSD) (connected through a USB Adapter).  It changed the name of the Drive to "Recovery" for some reason.  In OSX's Finder (File Manager program for the Windows user) I right-clicked and selected "Get Info" to verify it was "MS-DOS" (FAT32) type and moved on.

                          5.) Now I needed to burn Ragnar's .img file to my uSD card.  I followed the instructions here: https://www.raspberrypi.org/documentation/installation/installing-images/mac.md and went with the "Mostly Graphical" method.  One important thing to note: after you type the "sudo dd bs=1m if=path_of_your_image.img of=/dev/diskn" command, where n is a number (in my case, the actual command was: sudo dd bs=1m if=/Users/Tsunami/Downloads/2015-02-16-raspbian-wheezyW_CL.img of=/dev/disk1 ) ....yeah...after you do that, you may be sitting there watching a terminal that is doing nothing and it can take a while.  This is noted later on in the instructions under the "Command Line" method but if you didn't scroll down that far because you settled on the "Mostly Graphical" method, you may have been wondering what the heck was going on.  I ran my Activity Monitor and selected the Disk tab and noticed that the "dd" process was in fact slowly adding to the Bytes Written.  But it was slow.  Then I went back to the instructions and noticed under the "Command Line" method that it says: This will take a few minutes, depending on the image file size. You can check the progress by sending a SIGINFO signal pressing Ctrl+T.


                          I pressed Ctrl+T and sure enough, it spat me out a little status about how many bytes had been written.  So just be aware that it takes time and it probably didn't lock up.  After this was complete, I noticed the name of my MicroSD card was now "boot" and the file system looked pretty familiar.

                           

                          6.) I popped the CLAC card onto my RPI2, inserted the uSD card into the slot on the RPI2 and provided power through the RPIs microUSB connector.  BOOM.  It posted into the command line and everything seemed to load correctly.  I ran "startx" from the command line and it loaded the UI.  Meanwhile, the CLAC card showed some LED activity.  I restarted the RPI2.

                          7.) Now I had no idea what to do.  I started reading through this Thread again and I saw people talking about scripts.  I vaguely remembered seeing them in the CLAC user manual here: Cirrus Logic Audio Card User Manual

                          8.) Since I didn't follow the steps to get their patched-kernal O/S image I was worried that the remainder of the steps wouldn't apply.  I never saw a "Music Player" on the Desktop in the UI.

                          9.) I ran "sudo apt-get update", "sudo apt-get upgrade", and then "sudo apt-get install vlc" to get a media player on this RPI2.  After those finished I tried playing one of the preloaded Music files located in the /home/pi/Music folder.  I connected a 3.5mm stereo headphone jack to the Black Output marked "Headset" on the CLAC.  No sound.  I hoped it was simply because I hadn't run one of those scripts that I had seen people talking about and that the User guide referred to.  But I assumed there were 200 other reasons it wasn't working.

                          10.) NOPE.  Only needed to run one script.  I simply entered "sudo bash ./Playback_to_Headset.sh" and after it spat out a ton of gibberish I tried opening the music file again.  What a beautiful sound.

                           

                          All I'm going to say is, I've sunk lots of hours into trying to get stuff like this to work.  When I initially researched sound for the RPI2 I was very dismayed at how troublesome the process is.  I read through much of this forum and it looked like a nightmare.  So thank you very much Ragnar!  I'm sure you saved me a ton of hours.  Now I need to figure out how to record audio and do some signal processing with this CLAC.  If I have success there I will post my step-by-step walkthrough.

                          • 145. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                            drb

                            Diego

                             

                            This works for me, to capture and record audio from the Cirrus card:

                             

                            #!/bin/bash

                            ./Record_from_lineIn.sh

                            arecord -f S16_LE  -c 2 -d 300 -D hw:sndrpiwsp -r 192000 /tmp/s.wav

                             

                            I want only 16-bit audio.  If you want full 24-bit, then replace S16_LE with S24_LE

                            -c 2 specifies two channels (stereo)

                            -d 300 specifies 300 seconds of audio captured

                            -D gives the device name ( arecord -L will list available devices)

                            -r 19200 specifies rate 19.2 kHz

                            /tmp/s.wav is the name of the file for the captured audio

                             

                            You'll find other options from

                            man arecord


                            Good luck -- Ross



                            • 146. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                              tsunami

                              Was working on Friday.  Today I get "no soundcards found".

                               

                              CLAC is lighting up.  No idea what happened.

                               

                              Is it possible that because I ran apt-get update and upgrade that it blew away the kernal patches?

                              • 147. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                                dlionel

                                Your self diagnosis is almost certainly right.

                                 

                                To get the cirrus card working you need a specially modded kernel.  The repositories probably contain a more recent version of the kernel, and your upgrade has overwritten your working one.

                                 

                                I have seen that the solution is of the form ...

                                 

                                sudo apt-mark hold raspberrypi-bootloader

                                 

                                I have not yet got my rpi and cirrus working and stable, so there may well be other packages that need to be held as well as the above.

                                Good luck.

                                David

                                • 148. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                                  dlionel

                                  I have been trying to get my :-

                                       Raspberry Pi 2 Model B V1.1

                                       Cirrus Logic Audio Card  Ver: A1.0

                                  to behave for me.  I have downloaded and installed stacks of SD card images and have had some stuff working, but never all at once.


                                  My ideal would to be able to run

                                       jack-rack

                                  and

                                       sonic-pi

                                  not necessarily at the same time, but using the Cirrus card.


                                  Can anyone point me at a .img that already exists that I can download and install?


                                  Yours

                                  David

                                       

                                  • 149. Re: Cirrus Logic Audio Card working on the Raspberry Pi 2
                                    tsunami

                                    Yeah I went through the entire process again, following my own step-by-step guide.  Funny, on Friday, I thought it was a bit superfluous.  Not 3 days later, I'm glad I documented it.

                                     

                                    This time I ran into a few stumbling blocks.  Most notably, I was getting errors about being out of disk space.  Turns out, the first time I went through the process, I made sure to "Expand Filesystem".  The second time, I did not.  I even got errors when I tried to autocomplete with a tab in the shell.  I ran sudo raspi-config and selected it.  After a reboot, problem solved.

                                     

                                    raspi_config.jpg