pi@audiopi:~ $ cat /etc/issue
Raspbian GNU/Linux 10 \n \l
pi@audiopi:~ $ uname -a
Linux audiopi 5.10.17-v7+ #1414 SMP Fri Apr 30 13:18:35 BST 2021 armv7l GNU/Linux
pi@audiopi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberrydacplusdsp_sou], device 0: Hifiberry DAC+DSP SoundCard HiFi dacplusdsp-codec-0 [Hifiberry DAC+DSP SoundCard HiFi dacplusdsp-codec-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
I can't seem to make it work. I have a USB device which has optical and that works just fine, I can make a recording and hear the audio. But when I plug into the DIGI+ I am not able to hear anything.
I have followed the instructions here: https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/
I followed instructions here: https://www.hifiberry.com/docs/software/using-the-dac-dsp-to-record-audio-from-s-pdif/ *this is the dac, maybe this is my problem? how to I revert?
Any suggestions would be nice thanks.
19 comments
-
Sashmo Ok so.... DUH moment. Black port is INPUT, and white port is OUTPUT.
Now it seems that my sampling rates are off. Not sure where and how to track that down. Any suggestions? I can get something playing, but its garbage. Dmesg dosnt show me anything regarding debug, even though I have that enabled in the boot.ini -
HiFiBerry team Are you using a DAC+ DSp or a Digi+ I/O. These are completely different boards. You are saying that you use the Digi+ I/O, but you're using the DAC+ DSP driver. That can't work.
-
Sashmo What I am saying is that I've tried options that I can find.
There are no explicit instructions anywhere to how to do this properly. At least none that I could find.
-
HiFiBerry team To help you I need to understand what sound card you're using. Are you using a Digi+ I/O or a DAC+ DSP?
-
Sashmo Digi + I/O as in the title of the post.
-
HiFiBerry team Correct overlay for the Digi+ I/O is
dtoverlay=hifiberry-digi
https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/
-
Sashmo Yup thats what I have in my boot config
# Enable audio (loads snd_bcm2835)
#dtparam=audio=on[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=hifiberry-digi
dtdebug=1
dtparam=spi=on -
HiFiBerry team According to your first post, you must have configured the dacplusdsp overlay somewhere.
-
Sashmo So start from scratch and attempt again?
-
HiFiBerry team If you can't find it in config.txt, it's probably the easiest way to start from scratch on a fresh installation.
-
Sashmo Its 100% not in that config.
-
Sashmo I honestly think that its just sample rate issue that I am hearing. Signal is there, but it sounds very bad,
-
HiFiBerry team Your aplay -l output shows a completely wrong card and I don't see how this should be working at all.I recommend to start from scratch.
-
Sashmo So new install, still getting the same type of audio issue. Dropping and static in and out.
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_digi], device 0: HifiBerry Digi HiFi wm8804-spdif-0 [HifiBerry Digi HiFi wm8804-spdif-0]
Subdevices: 0/1
Subdevice #0: subdevice #0 -
HiFiBerry team Ok, you now have the correct driver configured. What exactly are you doing? Please provide the full command line that your using including additional settings you might have made in config files.
-
Sashmo Here is what I am doing:
pi@raspberrypi:~ $ arecord -v -d 60 -f cd -c 2 recording.wav
Recording WAVE 'recording.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
ALSA <-> PulseAudio PCM I/O Plugin
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 22050
period_size : 5512
period_time : 125000
tstamp_mode : NONE
tstamp_type : GETTIMEOFDAY
period_step : 1
avail_min : 5512
period_event : 0
start_threshold : 1
stop_threshold : 22050
silence_threshold: 0
silence_size : 0
boundary : 1445068800 -
HiFiBerry team 1. Are you sure your source is sending 44.1kHz/16bit?
2. It seems there is some Pulseaudio stuff in between. This can create all kinds of problems, therefore, you should disable PulseAudio and use the raw hardware device.
-
Sashmo 1. I don't see anywhere on the TV where to choose that or check it. Suggestions?
2. I will try that.
-
HiFiBerry team You might check the manual of your TV if you can define a specific sample rate/bits/channel for the SPDIF output. However, I haven't seen this on any TV I know. Therefore, the Digi+ I/O is probably not the right choice for your application.
The DAC+ DSP would be the better choice as its sample rate converter resamples any sample rate to the one your using on the Pi. That's specifically important if you don't know the sample rate of the sender.