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 Problem getting Wolfson Audio Card working: "amixer: Cannot find the given element from control hw:0"
  • 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 Verified Answer
  • Replies 10 replies
  • Subscribers 707 subscribers
  • Views 4201 views
  • Users 0 members are here
  • raspberry_pi
  • raspeberry_pi_accessories
Related

Problem getting Wolfson Audio Card working: "amixer: Cannot find the given element from control hw:0"

e14 Contributor
e14 Contributor over 12 years ago

I'm having problems getting my new wolfson audio card working. I've following the instructions in the manual when installing the card, and I'm using the custom supplied Noobs image.

 

When using the Playback_to_Headset.sh script I get the error message:

 

amixer: Cannot find the given element from control hw:0

 

Suspecting the card was not correctly seated, I took it apart and rebuilt it. When inspecting the P5 connector, there seems to be good contact between the spring-loaded pillars and the raspberry pi board. I've also successfully checked continuity between the solder joints on the wolfson card and the pads on the back of the pi board. The nylon screw is securely fastened.

 

Has anyone else had this problem? Is there anything I can do to investigate further.

 

The only other clues are these lines in syslog:

 

Feb 12 20:24:17 raspberrypi kernel: [    5.172128] snd-rpi-wsp snd-rpi-wsp.0: ASoC: can't create pcm WM5102 AiFi :-517

Feb 12 20:24:17 raspberrypi kernel: [    5.183446] snd-rpi-wsp snd-rpi-wsp.0: ASoC: failed to instantiate card -517

Feb 12 20:24:17 raspberrypi kernel: [    5.204848] snd-rpi-wsp snd-rpi-wsp.0: Failed to register card: -517

 

The D3 green LED is lit on the board when powered, and the D1 red LED is unlit. The only other device I have connected is a USB keyboard.

 

Cheers in advance.

  • Sign in to reply
  • Cancel
Parents
  • synd
    0 synd over 12 years ago

    I had the problem when i made an rpi-update!

    So i have to start again with the provided image an it worked!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • synd
    0 synd over 12 years ago

    I had the problem when i made an rpi-update!

    So i have to start again with the provided image an it worked!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to synd

    Yes, an rpi-update will install a new kernel from the Foundation, without drivers for the Wolfson card.

     

    frangip I see the those lines from your syslog in mine too, on my working system.

    I think they are some of the harmless "trace errors" that are mentioned in the installation manual.

     

    --

    Ragnar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to e14 Contributor

    HI Ragnar

     

    I Downloaded the img you propoused in this link http://www.element14.com/community/thread/32321?start=0&tstart=0,

    And when i try to execute use_case script, i'm having the same error, amixer: Cannot find the given element from control hw:0

    Do you know, what is the log i can see the error cause

     

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to e14 Contributor

    The error cause isn't logged anywhere. The error message you see shows the cause; the script tries to manipulate a control on the sound card that there is no interface for in the driver.

     

    Do you get the error always or just occasionally in some scripts?

    Does the sound card work?

    I know that there is an error in some of the scripts:

    • Reset_paths.sh
    • Record_from_DMIC_and_Headset.sh
    • Record_from_Headset_and_SPDIF.sh
    • Reset_paths.sh

    In those scripts there is a line that says something like

    amixer -Dhw:0 cset name='INX Digital Switch' on (or off) where X is the number 1-3.

    The INX Digital Switch doesn't exist, and that is what amixer complains about.

    You can just remove the offending line from those scripts.

     

    If you get the error many times when running any script, there is a more fundamental error. Possibly a broken sound card, or it isn't attached properly

    --

    Ragnar.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to e14 Contributor

    Hi Ragnar

     

    Thanks for your answer, the real error is the raspberry's version, Initially I'm working with A version, when i change to B version, the use_case_scripts works well, now I don't know how to test the audio play using the lineout jack,  I ran the script Playback_to_Lineout.sh, but when I played the default test of the raspberry hello_audio.bin, It sound by default raspberry's lineout, If you know anything to respect, I'm grateful for your help

     

     

    EDIT

     

    Executing the test HD Files using the line aplay -Dhw:0 -r 44100 -c 2 -f S32_LE Mozart Ave Verum,flac, the unique I listened is much noise in lineout y headset, Do you know the cause? Thanks

     

    EDIT

     

    You post the answer in this link http://www.element14.com/community/thread/32522/l/no-spdif-out-or-headless-operation  thanks, now I try to do a program sip with PJSUA or run scripts with linkphonecsh, thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to e14 Contributor

    the raspberry hello_audio.bin, It sound by default raspberry's lineout

    The hello_audio program is hard-coded to always use the Raspberry's built-in audio.

    --

    Ragnar

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

    I'm working with Raspian 3.12.33+, and I'm having the problem described above:


    amixer: Cannot find the given element from control hw:0


    is generated on every line executed by "sudo ./Listen_to_LineIn_on_LineOut.sh."

     

    This script works correctly using Raspian 3.10.25_Wolfson+ on the Wolfson audio/PI boards I have (I've tried it on two board sets), so perhaps this is something new?

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

    I noticed that in Raspian 3.10.25+, in ALSA, card 0 is the Wolfson audio card, whereas in 3.12.33+ (I think this is Ragnar Jensen's version--if not, sorry), card 1 is the Wolfson audio card.

     

    When running files like "Listen_to_LineIn_on_Lineout.sh", they work in 3.10.25+, but not in 3.12.33+. 

     

    I get an error message that says:  "amixer: Cannot find the given element from control hw:0".

     

    I'm guessing this difference is how the Wolfson Audio card is mapped to ALSA in the two different distros.

     

    How do I change things in 3.12.33+ to make the scripts work?

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