element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 662 subscribers
  • Views 7077 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
Parents
  • 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 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
Reply
  • 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
Children
No Data
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