Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2490

Raspberry Pi OS • Re: Alsa not working on Raspberry Pi OS Lite

$
0
0
No CM4, but on a Pi4 running Raspberry Pi OS 32-bit Lite (Bullseye), with all updates and a powered speaker in the 3.5mm jack
Login as pi. Check that output is set (in my case) to 3.5mm jack [0 bcm2835 Headphones ] using sudo rasp-config
sudo nano /etc/asound.conf

Code:

defaults.pcm.card 2defaults.ctl.card 2
reboot
This then plays the .wav OK:

Code:

aplay /usr/share/sounds/alsa/Front_Center.wav
Oddly, it creates a file .asoundrc owned by root in /home/pi

Code:

-rw-r--r-- 1 root root  215 Aug 23 14:37 .asoundrc
Install mpg123 and play a short Sabbath mp3 - all OK

Code:

mpg123 snowblind.mp3

Statistics: Posted by neilgl — Fri Aug 23, 2024 1:45 pm



Viewing all articles
Browse latest Browse all 2490

Trending Articles