HomSpace Forum
Problem with new Version 2020 and Hifiberry - Printable Version

+- HomSpace Forum (https://homspace.nl/forum)
+-- Forum: SamplerBox (https://homspace.nl/forum/forum-1.html)
+--- Forum: Community (https://homspace.nl/forum/forum-2.html)
+--- Thread: Problem with new Version 2020 and Hifiberry (/thread-24.html)



Problem with new Version 2020 and Hifiberry - Erich - 07-03-21

Hello,

I was still using the old image from 2019 with Hifiberry PCM5102 and LCD.
Yesterday I tried to get the last image from 2020. I wanted to use a newer LCD with a I2C-Backpack.

LCD with I2C works
Hifiberry does not work with the new image

As I could swap from one SD-Card with the Version 2019 to another with version 2020 - I could say the Hifiberry works fine with the 2019-version. ...  so no HW-Problem.
I had tested with the setting AUDIO_DEVICE_ID = 0 and AUDIO_DEVICE_ID = -1 ... both don´t work with the Hifiberry.

Any ideas?

Some configuration-settings changed from 2019 to 2020:

2019: with oldschool HD44780-16x2-LCD
######  General values ######
#
AUDIO_DEVICE_ID = 0            ; default is 2 Examples: 0 for PI-builtin or HiFiBerry, 2 for USB soundcard
USE_SERIALPORT_MIDI = True      ; was set to False  Set to True to enable MIDI IN via SerialPort (e.g. RaspberryPi's GPIO UART pins)
USE_HD44780_16x2_LCD = True    ; Set to True to use a HD44780 based 16x2 LCD
USE_OLED = False                ; Set to True to use an OLED display !!! Configure below
USE_I2C_7SEGMENTDISPLAY = False ; Set to True to use a 7-segment display via I2C
USE_ALSA_MIXER = True          ; Set to True to use to use the alsa mixer (via pyalsaaudio)
MIXER_CONTROL = PCM,Speaker,Headphone,Digital ; Mixercontrols I experienced, add your soundcard's specific....

...

2020: with I2C-LCD
######  General values ######
#
AUDIO_DEVICE_ID = -1            ; -1=autodetect, specify ID of your device to override
AUDIO_DEVICE_NAME = Detect      ; ..or specify (part of) it's name. SB uses the first match of ID or NAME.
MIXER_CONTROL = Detect          ; Fill this to override autodetection, specify None to disable alsa volume control
SAMPLERATE = 44100              ; Sets value for wav's and audio device (these have to be the same)
BLOCKSIZE = High                ; Blocksize or "Low"/"High". High may cause latency, low may cause distortion; just try.
#                                Valid numbers for blocksize are shown in the console messages when started manually
USE_48kHz = False              ; Sets audio to 48000Hz while keeping wav's on 44100Hz. Try to avoid this...
USE_SERIALPORT_MIDI = True      ; Set to True to enable MIDI IN via SerialPort (e.g. RaspberryPi's GPIO UART pins)
USE_HD44780_16x2_LCD = False    ; Set to True to use a 16x2 direct connected/wired HD44780 LCD
USE_I2C_LCD = True            ; Set to True or 16x2 (=True) or 20x4 to use a 16x2 or 20x4 I2C connected HD44780 LCD
USE_OLED = False                ; Set to True to use an OLED display !!! Configure below
USE_I2C_7SEGMENTDISPLAY = False ; Set to True to use a 7-segment display via I2C
USE_BUTTONS = True            ; Set to True to use the GPIO buttons
USE_LEDS = False                ; Set to True to use LED's connected to RaspberryPi's GPIO pins
USE_HTTP_GUI = True            ; should webgui server be started?

...


RE: Problem with new Version 2020 and Hifiberry - Erich - 07-03-21

(07-03-21, 14:55)Erich Wrote: Hello,

>>> Found the solution:
I had to edit config.txt too.

With these settings it works fine.

######
device_tree_param=i2c_arm=on
gpu_mem=64
boot_delay=0
max_usb_current=1
disable_splash=1
disable_audio_dither=1
#
# for enabling SPI interface (like used by OLED) uncomment next parm
#dtparam=spi=on
#
# for enabling the serial midi port (DIY 5-pole DIN) uncomment:
enable_uart=1
dtoverlay=pi3-miniuart-bt
dtoverlay=midi-uart0
#
# for onboard, hdmi or usb dacs uncomment next parm:
#dtparam=audio=on
#
# for hifiberry (compatible) dacs uncomment appropriate parm:
dtoverlay=hifiberry-dac
#dtoverlay=hifiberry-dacplus
#dtoverlay=hifiberry-digi
#dtoverlay=hifiberry-amp