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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 ras pi 4b no ALSA sound cards
  • 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 Suggested Answer
  • Replies 8 replies
  • Answers 1 answer
  • Subscribers 663 subscribers
  • Views 6826 views
  • Users 0 members are here
Related

ras pi 4b no ALSA sound cards

rbdavis808
rbdavis808 over 3 years ago

Hi all,

I just installed the latest Void Linux release tarball (2021-09-30) onto my CanaKit Raspberry Pi 4 Model B w/4GB. Audio appears completely broken and I was not able to get it working by removing pulseaudio packages as recommended by another post in this forum. (I was unable to remove the libpulseaudio package due to excessive dependencies, but did remove pulseaudio, pulseaudio-utils and pavucontrol.) No sound is generated on either my HDMI monitor or the Pi's audio jack. I have traced this problem down to the fact that ALSA seems to think there are no sound cards in the system:

# aplay mysoundfile

ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ...

(The alsamixer app generates the same error message.) Can anyone explain to me why ALSA can see no sound hardware on this system and how I can make it do so?

Thanks!

PS: There are no cards listed in /proc/asound and the /usr/bin/alsa-info.sh diagnostic generates the following relevant info:

Kernel release: 5.10.52_1

!!ALSA Version
!!------------

Driver version: k5.10.52_1
Library version:
Utilities version: 1.2.6

!!Loaded ALSA modules
!!-------------------

!!Sound Servers on this system
!!----------------------------

No sound servers found.


!!Soundcards recognised by ALSA
!!-----------------------------

--- no soundcards ---


!!PCI Soundcards installed in the system
!!--------------------------------------

!!Modprobe options (Sound related)
!!--------------------------------

snd_bcm2835: enable_compat_alsa=0
snd_bcm2835: enable_hdmi=1

  • Sign in to reply
  • Cancel
  • colporteur
    0 colporteur over 3 years ago

    I haven't worked with a Pi4 but a few of us were throwing stuff into this post concerning audio. 

    /products/raspberry-pi/b/blog/posts/alsa-no-audio-glitch-issue-pi-4-fix

    It was centered around Raspberry Pi OS, not sure if it helps.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rbdavis808
    0 rbdavis808 over 3 years ago in reply to colporteur

    Thanks, colporteur. I read that post pretty carefully, I think, but did not notice any clear suggestions other than the removal of pulseaudio, which did not do the trick for me. If I missed something else that's worth trying please advise and I will definitely do it. There were unfortunately no reports there that mentioned VoidLinux and that may have some bearing on my problem, but it does seem hard to imagine that ALSA and/or other kernel drivers should have any VoidLinux-specific issues.

    Thanks again!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • colporteur
    0 colporteur over 3 years ago in reply to rbdavis808

    Sorry if I provided false hope. My experience is limited to Raspberry Pi OS and a few Linux distros. I look at the posting link I sent you, like a collection of threads I pull on when I have audio issues. I have gotten some success in the past but maybe that is long past.

    I have never managed to get my head around the ASLA and Pulse audio framework. Throw Jack into the mix and yeah it is a mixer.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rbdavis808
    0 rbdavis808 over 3 years ago in reply to colporteur

    No worries, I greatly appreciate your effort to help me and many other folks solve this problem!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rbdavis808
    0 rbdavis808 over 3 years ago

    I was able to fix my problem after further web searches. My original installed /boot/config.txt contained the line

    #dtparam=audio=on

    Note that the line was commented out, thus apparently disabling audio. I had to uncomment it, and then the ALSA service installed from the VoidLinux alsa-utils package was able to detect both my HDMI and analog jack output devices.

    Curiously, /var/log/dmesg.log displays a kernel command line near the top of the file which includes the rather suspicious-looking option

    snd_bcm2835.enable_compat_alsa=0

    I did not make any attempt to change that, but perhaps dtparam=audio=on effectively overrides that?

    Hope others find this info useful, although perhaps it is specific only to VoidLinux.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • colporteur
    0 colporteur over 3 years ago in reply to rbdavis808

    If you don't mind, I am going to put this detail in the ALSA post for future reference?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rbdavis808
    0 rbdavis808 over 3 years ago in reply to rbdavis808

    PS: Just for grins I put back all of the pulseaudio packages I had removed earlier and then started the pulseaudio service.i.e., I now have both of the commands pulseaudio --system and alsa started at boot time. The only I app I really need to run is mpg123 -a outdev mp3file and that continues to work as before. I have no need for pulseaudio so I did not attempt to run any pulseaudio-specific commands.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rbdavis808
    0 rbdavis808 over 3 years ago in reply to colporteur

    Definitely not, please do!

    I'm beginning to suspect (see my PS post re: pulseudio below) that the problems and solutions for the bulk of the posters in your ALSA reference may be specific to Raspbian, while mine are specific to VoidLinux? Still, the additional info my be of use to someone.

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