Followed the documentation: Analog audio output not working!

Ask questions about Arch Linux ARM. Please search before making a new topic.

Followed the documentation: Analog audio output not working!

Postby yonut27 » Tue Mar 02, 2021 5:04 pm

Hi,

This is a rewrite of the original post. It was incorrect, and I want this to be accurate.

The following documentation was used to install arch linux on my raspberry pi 3 (with HDMI connected and speakers connected to 3.5 jack):
https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3#installation

- When completed, I logged in over ssh and did the remaining keyring commands from the previous link.

- Rebooted and did a full system update (pacman -Syy && pacman -Syu).

- Rebooted and installed alsamixer (pacman -S alsa-utils) as the wiki says:
https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3#wiki

- Edited the '/boot/config.txt', as the wiki says, with the following:
$this->bbcode_second_pass_code('', 'dtparam=audio=on')

- Added the main user to the group 'audio' (usermod -aG audio alarm).

- Added 'mpg123' for playing audio files (pacman -S mpg123).

- Commented out the following in '/boot/config.txt':
$this->bbcode_second_pass_code('', '#dtoverlay=vc4-kms-v3d')

- Rebooted.

After all of the above, the following is observed:
1) aplay -l:
$this->bbcode_second_pass_code('', '**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3')

2) alsamixer (F6 option):
$this->bbcode_second_pass_code('', ' Sound Card
- (default)
0 bcm2835 HDMI 1
1 bcm2835 Headphones
enter device name...')

3) amixer controls:
$this->bbcode_second_pass_code('', 'numid=2,iface=MIXER,name='HDMI Playback Switch'
numid=1,iface=MIXER,name='HDMI Playback Volume'')


Both 1 and 2 show the existence of the Headphones device, but amixer doesn't. When I run 'mpg123 -C some.audio.file.mp3', I get:
$this->bbcode_second_pass_code('', 'High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.26.3; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes


Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: some.audio.file.mp3 ...

MPEG 1.0 L III cbr320 44100 j-s

Title: Some Audio File Artist: Some Band
Comment: Album: Some Album
Year: Genre: Other')

And it only plays through HDMI.


Searching the web I come across a lot of people saying:
$this->bbcode_second_pass_quote('', '[')b]amixer cset numid=3 1 to change to headphone output

But that results in an error as amixer only knows 2 devices:
$this->bbcode_second_pass_code('', 'amixer: Cannot find the given element from control default')


Can someone please help me? I don't understand what I'm missing, as I followed all the documentation.

uname -a:
$this->bbcode_second_pass_code('', 'Linux alarmpi 5.10.17-3-ARCH #1 SMP Wed Mar 3 23:26:53 UTC 2021 armv7l GNU/Linux')

Ty.
Last edited by yonut27 on Tue Mar 02, 2021 5:25 pm, edited 1 time in total.
yonut27
 
Posts: 5
Joined: Tue Mar 02, 2021 2:17 am

Re: Followed the documentation: Analog audio output not work

Postby erlenelo » Fri Apr 23, 2021 6:48 am

It would be nice if someone has any answer to this. I am interested too.
erlenelo
 
Posts: 1
Joined: Fri Apr 23, 2021 4:34 am

Re: Followed the documentation: Analog audio output not work

Postby graysky » Fri Apr 23, 2021 11:03 am

Haven't used RPi3 in a while but did some testing on RPi4: viewtopic.php?f=65&t=14734&p=65549&hilit=mpg123#p65549
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Followed the documentation: Analog audio output not work

Postby yonut27 » Fri Apr 30, 2021 6:11 pm

$this->bbcode_second_pass_quote('erlenelo', 'I')t would be nice if someone has any answer to this. I am interested too.


Add the following to /etc/asound.conf, or create it if it doesn't:
$this->bbcode_second_pass_code('', '# Make the headphone jack the default audio output.
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
')

It's worth noting, that you need to have a HDMI cable connected to use the above config. Bad planning on the RPI makes HDMI jump to the first output when connected, instead of leaving the on-board output (which is ALWAYS THERE) as the first output. Then settings wouldn't need to changed because a cable is not being used.

It's very frustrating to deal with Arch. When you have a problem and look elsewhere, you usually get a response like this:
$this->bbcode_second_pass_quote('Some guy on StackOverflow', ' ')I've generally found the Arch documentation to be quite good;
.
And that's all the help you get. My original post is how old, and still the documentation has not been fixed. Is this a complaint or an observation?!? It's an observation if you are trying to get this to work like the documentation says. It's a complaint if you do work for Arch, because it is clearly an attack on them and nothing else.
yonut27
 
Posts: 5
Joined: Tue Mar 02, 2021 2:17 am
Top


Return to User Questions

Who is online

Users browsing this forum: No registered users and 8 guests