Hi, I'm unable to get sound to work on a Raspberry Pi 4.
"aplay -l" lists the devices correctly:
$this->bbcode_second_pass_code('', '
[alarm@archlinux ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM vc4-hdmi-hifi-0 [MAI PCM vc4-hdmi-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM vc4-hdmi-hifi-0 [MAI PCM vc4-hdmi-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
')
However if I attempt to play a wav file by specifying the card and device I get errors:
$this->bbcode_second_pass_code('', '
[alarm@archlinux audio]$ aplay -D plughw:0,0 wav.wav
Playing WAVE 'wav.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
aplay: set_params:1343: Sample format non available
Available formats:
- IEC958_SUBFRAME_LE
[alarm@archlinux audio]$
')
If I attempt to run jackd with: /usr/bin/jackd -R -dalsa -dhw:0 -r48000 -p512 -n3
it complains: "Sorry. The audio interface "hw:0" doesn't support any of the hardware sample formats that JACK's alsa-driver can use."
Something must be missing in my installation, can anyone please suggest what it might be?
Thanks
EDIT - My /boot/config.txt contains the following:
$this->bbcode_second_pass_code('', 'dtoverlay=vc4-kms-v3d
initramfs initramfs-linux.img followkernel
dtparam=audio=on
hdmi_drive=2
')
And I am not using pulseaudio.