No sound with ALSA on 3.5mm jack on a 4B

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

No sound with ALSA on 3.5mm jack on a 4B

Postby scrouthtv » Sun Oct 10, 2021 11:19 am

Hello everybody,

I'm currently trying to get some audio out of a Raspberry PI 4 Model B.

So far, I installed alsa-utils, alsa-firmware , sof-firmware and alsa-ucm-conf.
I hooked up the 3.5mm jack to an external amplified speaker and turned it all the way up.

Running aplay music.flac displays this message:
$this->bbcode_second_pass_code('', 'Playing raw data 'music.flac' : Unsigned 8 bit, Rate 8000 Hz, Mono')
but I can't hear any sound.

Here's the weird part:
Running aplay -l as a normal user gives
$this->bbcode_second_pass_code('', 'aplay: device_list:274: no soundcards found...')
However, as root, I get
$this->bbcode_second_pass_code('', '**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
')

Nevertheless, that's still only the two hdmi sound devices. The jack output doesn't appear.

I found this post, which suggests running amixer cset numid=3 1. However, that doesn't change anything either.

The wiki suggests adding
$this->bbcode_second_pass_code('', 'dtparam=audio=on') to /boot/config.txt. Where exactly should I put that line? Adding it before the initrd line doesn't work either.
scrouthtv
 
Posts: 3
Joined: Sun Oct 10, 2021 11:02 am

Re: No sound with ALSA on 3.5mm jack on a 4B

Postby ufo6000 » Sun Oct 10, 2021 4:25 pm

Please paste your complete /boot/config.txt
dtparam=audio=on can be put in any line.
But a reboot is required after this change.
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

Re: No sound with ALSA on 3.5mm jack on a 4B

Postby summers » Sun Oct 10, 2021 5:17 pm

Maybe try adding yourself to the audio group - arch is meant to give you access without this - but it doesn't on some of my machines ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: No sound with ALSA on 3.5mm jack on a 4B

Postby ufo6000 » Sun Oct 10, 2021 6:02 pm

that depends, if you are logged in locally, or remote via ssh.
But for sure a "sudo aplay -l" should list the hardware as first step in this issue.
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

Re: No sound with ALSA on 3.5mm jack on a 4B

Postby graysky » Sun Oct 10, 2021 6:08 pm

This is been asked and answered before... try searching the forum, I think I posted the solution but can't remember.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: No sound with ALSA on 3.5mm jack on a 4B

Postby scrouthtv » Mon Oct 11, 2021 8:22 am

$this->bbcode_second_pass_quote('', 't')ry searching the forum, I think I posted the solution but can't remember.


This post had previously gone under my radar as it doesn't directly mention audio. Adding my user to the audio group fixed the problem. Thanks everyone for your help.

$this->bbcode_second_pass_quote('', 'P')lease paste your complete /boot/config.txt


$this->bbcode_second_pass_code('', '
# See /boot/overlays/README for all available options

dtoverlay=vc4-kms-v3d
dtparam=audio=on
device_tree_param=audio=on
initramfs initramfs-linux.img followkernel
')

Do I also have to rebuild the bootloader or something as with grub? Or does the bootloader read directly from the txt file?

$this->bbcode_second_pass_quote('', 't')hat depends, if you are logged in locally, or remote via ssh.


via ssh. I can't really log in locally, as I don't own a mini hdmi cable.
scrouthtv
 
Posts: 3
Joined: Sun Oct 10, 2021 11:02 am
Top


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests