I figured out how to get this done. These were helpful:
https://www.tinkerboy.xyz/raspberry-pi-d…o-sound-output/
Thread
Change PCM format for HDMI output
Hello!
Background of my issue: I have a somewhat old TV which only supports 16 Bit and 20 Bit PCM audi input.
(Hidden Content)
Unfortunately something is going wrong somewhere and I do not get any audio from my TV in stock configuration. I assume there is a problem with the 20 Bit PCM format for my TV. By default, audio is passed to ALSA in 32 Bit format.
(Hidden Content)
After some tries, i figured out that audio is playing fine from TV if passed as 16 Bit PCM format.
(Hidden Content)
Now I am…
Background of my issue: I have a somewhat old TV which only supports 16 Bit and 20 Bit PCM audi input.
(Hidden Content)
Unfortunately something is going wrong somewhere and I do not get any audio from my TV in stock configuration. I assume there is a problem with the 20 Bit PCM format for my TV. By default, audio is passed to ALSA in 32 Bit format.
(Hidden Content)
After some tries, i figured out that audio is playing fine from TV if passed as 16 Bit PCM format.
(Hidden Content)
Now I am…
Bromor
1) added to the bottom of /flash/config.txt, and rebooted.
dtparam=audio=on
2) was able to see the card:
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
3) created the ALSA config in /storage/.config/asound.conf:
pcm.monocard{
slave.pcm "hw:0"
slave.channels 2
type route
ttable {
# Copy both input channels to output channel 0 (Left).
0.0 1
1.0 1
# Send nothing to output channel 1 (Right).
0.1 0
1.1 0
}
}
pcm.!default monocard
4) created /storage/.config/autostart.sh:
pactl load-module module-alsa-sink device="default"