I have a DAC+ mounted in a Raspi4
I have follewed all the steps for the software configuration. and succesfully detect the board.
1. remove (I commented it) 'dtparam=audio=on' from /boot/config.txt
2. add this line to the end of the same file 'dtoverlay=hifiberry-dacplus'
3. configure alsa file /etc/asound.conf
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
4. finally detect the board 'aplay -l'
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0 [HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
However, when I'm trying to play a file there is no sound comming out
'aplay -vv /home/pi/Desktop/1000hz.wav '
Playing WAVE '/home/pi/Desktop/1000hz.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Hardware PCM card 0 'snd_rpi_hifiberry_dacplus' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (352800/8)
msbits : 16
buffer_size : 22052
period_size : 5513
period_time : 125011
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 5513
period_event : 0
start_threshold : 22052
stop_threshold : 22052
silence_threshold: 0
silence_size : 0
boundary : 1445199872
appl_ptr : 0
hw_ptr : 0
########################################+ | 79%aplay: pcm_write:2053: write error: Input/output error
best