Can't get HiFiBerry DAC ADC working

Hey people,

for using MODEP with the HiFiBerry DAC+ ADC I need to update the kernel to a newer version (at least 4.18). How to do so? The official way with apt-get update & upgrade, etc. is not working here…

Thanks,
Chris

sudo rpi-update

Well, if it would be so easy, I wouldn’t create a topic about it. The kernel stays at 4.14. even after rpi-update.

You have to reboot after the update, see the output:

modep@modep:~ $ sudo rpi-update

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for modep:
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13545  100 13545    0     0  66397      0 --:--:-- --:--:-- --:--:-- 66724
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 4.14.59-rt37-v7+
#############################################################
WARNING: This update bumps to rpi-4.19.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=224931
##############################################################
Would you like to proceed? (y/N)
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    416      0 --:--:-- --:--:-- --:--:--   417
100 58.5M  100 58.5M    0     0   705k      0  0:01:24  0:01:24 --:--:--  624k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.19.37-v7+
 *** depmod 4.19.37+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to 18e0a0f9a31e7a3a47d9c4301c7705b980ab0516
 *** A reboot is needed to activate the new firmware
modep@modep:~ $ sudo reboot
...
$ ssh modep@192.168.1.150
modep@192.168.1.150's password:
Linux modep 4.19.37-v7+ #1216 SMP Thu May 2 13:32:40 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon May  6 15:40:36 2019 from 192.168.1.134
modep@modep:~ $ uname -a
Linux modep 4.19.37-v7+ #1216 SMP Thu May 2 13:32:40 BST 2019 armv7l GNU/Linux

Hi,

thanks for your reply again.
I have to excuse myself. You were totally right. The problem was the script from the link posted above.

So, in case someone else has problems to get it working, just follow the following steps and DO NOT FOLLOW THE LINK ABOVE AND DO NOT EXECUTE THE BASH-STRING THAT IS MENTIONED IN THAT LINK.

  • connect your pi to a internet connection
  • type sudo rpi-update and enter as suggested above.
  • reboot
  • type sudo nano /boot/config.txt and enter
  • uncomment dtparam=audio=on
  • add kernel=kernel7-hb.img
  • add dtoverlay=hifiberry-dacplusadc
  • CTRL-X + Y and enter
  • reboot
  • now follow the steps from this page Link

It’s working now! Thanks! :slight_smile:

1 Like

I’ve got DiGi I/O working with same steps.
rpi-update
reboot
The only difference I’ve done is:

  1. Remove the line

dtparam=audio=on

from /boot/config.txt if it exists.

  1. add
    dtoverlay=hifiberry-digi
    kernel=kernel7-hb.img
    force_eeprom_read=0
    to end of the /boot/config.txt

More here: https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/

Be sure to have external device connected to SPDIF/optical so that it can sync and start working.
Also, one more thing which is a must and also described on HifiBerry site, sample rate and bits/channel should be the same as source. source == jack
Works great with MODEP! :vulcan_salute:

Thanks @Giedrius for help :slight_smile:

1 Like

Tho, I’ve noticed that after few seconds it stops and starts working again and like that in constant loop.

It seems this is the issue from the log, but not sure what’s causing it.

I’ve tried removing -R from jack config but it’s the same.
Tried changing -n from 2 to 3 and vice versa.
Tried 48, 96 kHz.
Sample rate is set at 128.

Any ideas?

Tnx!

EDIT (working):
It seems that it wasn’t synced correctly with my Focusrite 8i6 3rd gen.
When I’ve set the Focusrite to “internal” sync, and changed the sample rate of the Hifiberry DIGI I/O inside the jack config to 96 sample rate which Focusrite is also set to, seems to be working now fine!

exec /usr/bin/jackd -t 2000 -P 95 -d alsa -d hw:sndrpihifiberry -r 48000 -p 96 -n 3 -X seq -s -S

1 Like

Copying my comment from Does anyone have experience with Hifiberry and Patchbox OS? - #5 by ericfont because it might be useful to anyone who experiences a clicking sound on the HJifiberry DAC+ADCpro:

I’ve just tested a Hifiberry DACplusADCpro now on RPi4 with patchbox. It works. Can go down to 64-frame buffers with jack.

There were clicks every few seconds, though I followed the instructions in DACplusADCpro click noise – HiFiBerry which said to add the line “dtoverlay=hifiberry-dacplusadcpro,slave” to config.txt, and after I appended that line to the bottom of /boot/config.txt and reboot, the click sound went away.

1 Like