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