Pi4 and Hifiberry pro

Hi together,

I switched my Pi in my ZynthianV3 pro to a Pi4. Only my hifiberry pro won’t work. When is switch to the normal hifiberry I can hear sound but it’s really crappy. If I switch back to pro in the webconfig anything works but I get no sound :flushed:

Any idea ?

Rene

Have you used the same SSDon the two different pi’s?

Perhaps burn a new ssd image and try with that.

No the sd card was only in the Pi4 (I used an usb audio card before) and now I got the hifiberry (from my V3 set) and I try to get it into my V3 set (in never used the pi3 I will use it for other purposes) … what is strange that I get a sound if I switch to the normal dac in the webconfig but it’s noisy … IF I switch to dac pro everything seems normal but I get no sound.

Rene

Now I tried a new image and it’s the same :weary:

If I use the Dac+ ADC pro setting in the webconfig Menü I get no sound. If I change the setting to Dac+ ADC I hear noise. Everything else seems to be fine.

Anyone a tip which image to use ? Or how can I test if the berry is not damaged ? The two red leds on the Hi-Fi berry are on.

Best,Rene

If you’ve got webconfthen things are definitely working. Do you get anything on the ui log in webconf as it starts? Can you log on with an ssh connection?

I can connect via ssh and also here the ui log:

Rene

Does audio test work?

Running without errors but no sound :worried:

Can you get an ssh terminal? Try aplay -l this should display details of the card at least it does on my pi4 adc pro

So it does seem that the card is there… And alive.
Can you run alsamixer?

That’s the crazy thing everything seems to works but no sound on the rca jacks. And yes i checked the cable and all that stuff :grinning:

But the card did work with a pi3? But it does work when you select hifiberry adc… Can you show the advanced settings from audio including all the options…? You can use zoom on chrome to squeeze it all onto one screen.

What does i2cdetect - y 1 display…?

Power off for 5 minutes and get a cup of tea!

No … I ordered an official V3 Kit and I had already an Pi4 with an wavshare Display and now I try to fit it together and the Pi3 is in its original packaging and never used :grinning: now I got the Pi4 the ADC Pro and the V3 display and encoders to try … I didn’t need the midi ports so I didn’t connect the midi Modul in the V3 kit. And all seems good so far but no sound …

I already used an zynthian with my Pi4 and the wave share display and only USB Midi and USB Sound and it worked well so far … but I love the encoders and want a better latency that what I thought :smiley:

have look with alsamixer if something isn’t disabled/muted.

The midi ports shouldn’t effect all this. One thing you can to is burn an ssd with raspbian on it and add a mouse and keyboard and see if it works with the card. That does at least test the card if only via alsa.
journal -u zynyhian should show you any problems with the zynyhian service when it starts. Fire up to separate ssh shells type journalctl - f in one and in the other type systemctl stop zynyhian… Then watch the journalctl window whilst typing systemctl start zynyhian you should see problems there if the pi is aware of them.
The raspbian test should let you play any old bit of audio that raspbian can see…

alsamixer can also play tricks so that may be worth a look

Hmmmm confusing. Im going for a cup of tea. Basically you want to be sure the card is OK. Get it to play using alsa then try with jack… Everything looks OK from the i2c side…

Already done :wink:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Apr 18 22:51:02 2020 from 192.168.178.25
root@zynthian:~# journalctl - f
Failed to add match ‘-’: Invalid argument
root@zynthian:~# journalctl -f
– Logs begin at Sat 2020-04-18 22:18:33 BST. –
Apr 18 23:01:34 zynthian systemd[10580]: Reached target Timers.
Apr 18 23:01:34 zynthian systemd[10580]: Reached target Basic System.
Apr 18 23:01:34 zynthian systemd[10580]: Reached target Default.
Apr 18 23:01:34 zynthian systemd[10580]: Startup finished in 117ms.
Apr 18 23:01:34 zynthian systemd[1]: Started User Manager for UID 0.
Apr 18 23:01:34 zynthian systemd[1]: Started Session c4 of user root.
Apr 18 23:01:55 zynthian sshd[10666]: Accepted password for root from 192.168.178.23 port 51944 ssh2
Apr 18 23:01:55 zynthian sshd[10666]: pam_unix(sshd:session): session opened for user root by (uid=0)
Apr 18 23:01:55 zynthian systemd-logind[380]: New session c5 of user root.
Apr 18 23:01:55 zynthian systemd[1]: Started Session c5 of user root.
Apr 18 23:03:15 zynthian systemd[1]: Stopping Zynthian User Interface…
Apr 18 23:03:15 zynthian startx[477]: ERROR:zynthian_engine: Can’t exec engine command: load “/zynthian/zynthian-data/soundfonts/sf2/FluidR3_GS.sf2” => End Of File (EOF). Exception style platform.
Apr 18 23:03:15 zynthian startx[477]: <pexpect.pty_spawn.spawn object at 0xad91b770>
Apr 18 23:03:15 zynthian startx[477]: command: /usr/local/bin/fluidsynth
Apr 18 23:03:15 zynthian startx[477]: args: [’/usr/local/bin/fluidsynth’, ‘-a’, ‘jack’, ‘-m’, ‘jack’, ‘-g’, ‘1’, ‘-j’, ‘-o’, ‘synth.midi-bank-select=mma’, ‘-o’, ‘synth.cpu-cores=3’, ‘-o’, ‘synth.polyphony=64’, ‘-o’, ‘midi.jack.id=fluidsynth’, ‘-o’, ‘audio.jack.id=fluidsynth’, ‘-o’, ‘audio.jack.multi=yes’, ‘-o’, ‘synth.audio-groups=8’, ‘-o’, ‘synth.audio-channels=8’, ‘-o’, ‘synth.effects-groups=8’]
Apr 18 23:03:15 zynthian startx[477]: buffer (last 100 chars): b’’
Apr 18 23:03:15 zynthian startx[477]: before (last 100 chars): b’\r\nload “/zynthian/zynthian-data/soundfonts/sf2/FluidR3_GS.sf2”\r\n’
Apr 18 23:03:15 zynthian startx[477]: after: <class ‘pexpect.exceptions.EOF’>
Apr 18 23:03:15 zynthian startx[477]: match: None
Apr 18 23:03:15 zynthian startx[477]: match_index: None
Apr 18 23:03:15 zynthian startx[477]: exitstatus: 0
Apr 18 23:03:15 zynthian startx[477]: flag_eof: True
Apr 18 23:03:15 zynthian startx[477]: pid: 727
Apr 18 23:03:15 zynthian startx[477]: child_fd: 27
Apr 18 23:03:15 zynthian startx[477]: closed: False
Apr 18 23:03:15 zynthian startx[477]: timeout: 20
Apr 18 23:03:15 zynthian startx[477]: delimiter: <class ‘pexpect.exceptions.EOF’>
Apr 18 23:03:15 zynthian startx[477]: logfile: None
Apr 18 23:03:15 zynthian startx[477]: logfile_read: None
Apr 18 23:03:15 zynthian startx[477]: logfile_send: None
Apr 18 23:03:15 zynthian startx[477]: maxread: 2000
Apr 18 23:03:15 zynthian startx[477]: ignorecase: False
Apr 18 23:03:15 zynthian startx[477]: searchwindowsize: None
Apr 18 23:03:15 zynthian startx[477]: delaybeforesend: 0
Apr 18 23:03:15 zynthian startx[477]: delayafterclose: 0.1
Apr 18 23:03:15 zynthian startx[477]: delayafterterminate: 0.1
Apr 18 23:03:15 zynthian startx[477]: searcher: searcher_re:
Apr 18 23:03:15 zynthian startx[477]: 0: re.compile(b’\n> ')
Apr 18 23:03:15 zynthian startx[477]: WARNING:zynthian_engine_fluidsynth: SoundFont ‘/zynthian/zynthian-data/soundfonts/sf2/FluidR3_GS.sf2’ can’t be loaded
Apr 18 23:03:17 zynthian startx[477]: ZynMidiRouter: MIDI tuning frequency set to 440 Hz (8192)
Apr 18 23:03:17 zynthian startx[477]: xinit: connection to X server lost
Apr 18 23:03:17 zynthian startx[477]: [1B blob data]
Apr 18 23:03:17 zynthian kernel: fb_ili9486 spi0.0: fbtft_backlight_update_status: polarity=1, power=1, fb_blank=0
Apr 18 23:03:17 zynthian startx[477]: waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
Apr 18 23:03:19 zynthian systemd[1]: zynthian.service: Succeeded.
Apr 18 23:03:19 zynthian systemd[1]: Stopped Zynthian User Interface.
Apr 18 23:03:30 zynthian systemd[1]: Started Zynthian User Interface.
Apr 18 23:03:30 zynthian startx[11068]: X.Org X Server 1.20.4
Apr 18 23:03:30 zynthian startx[11068]: X Protocol Version 11, Revision 0
Apr 18 23:03:30 zynthian startx[11068]: Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
Apr 18 23:03:30 zynthian startx[11068]: Current Operating System: Linux zynthian 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l
Apr 18 23:03:30 zynthian startx[11068]: Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=64M bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:40:64:1D vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.speed=1 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Apr 18 23:03:30 zynthian startx[11068]: Build Date: 05 June 2019 12:49:54PM
Apr 18 23:03:30 zynthian startx[11068]: xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
Apr 18 23:03:30 zynthian startx[11068]: Current version of pixman: 0.36.0
Apr 18 23:03:30 zynthian startx[11068]: Before reporting problems, check http://wiki.x.org
Apr 18 23:03:30 zynthian startx[11068]: to make sure that you have the latest version.
Apr 18 23:03:30 zynthian startx[11068]: Markers: (–) probed, (**) from config file, (==) default setting,
Apr 18 23:03:30 zynthian startx[11068]: (++) from command line, (!!) notice, (II) informational,
Apr 18 23:03:30 zynthian startx[11068]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Apr 18 23:03:30 zynthian startx[11068]: (==) Log file: “/var/log/Xorg.0.log”, Time: Sat Apr 18 23:03:30 2020
Apr 18 23:03:30 zynthian startx[11068]: (==) Using config directory: “/etc/X11/xorg.conf.d”
Apr 18 23:03:30 zynthian startx[11068]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”
Apr 18 23:03:31 zynthian kernel: fb_ili9486 spi0.0: fbtft_backlight_update_status: polarity=1, power=0, fb_blank=0
Apr 18 23:03:32 zynthian startx[11068]: lilv_world_load_bundle(): warning: Replacing version 2071.3 of http://gareus.org/oss/lv2/b_whirl#extended from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
Apr 18 23:03:32 zynthian startx[11068]: lilv_world_load_bundle(): note: New version 2071.7 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
Apr 18 23:03:32 zynthian startx[11068]: lilv_world_load_bundle(): warning: Replacing version 2071.3 of http://gareus.org/oss/lv2/b_whirl#simple from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
Apr 18 23:03:32 zynthian startx[11068]: lilv_world_load_bundle(): note: New version 2071.7 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
Apr 18 23:03:32 zynthian startx[11068]: lilv_world_load_bundle(): warning: Ignoring bundle <file:///zynthian/zynthian-plugins/lv2/b_synth.lv2/>
Apr 18 23:03:32 zynthian startx[11068]: lilv_world_load_bundle(): note: Newer version of http://gareus.org/oss/lv2/b_synth loaded from <file:///zynthian/zynthian-plugins/lv2/b_synth/>
Apr 18 23:03:33 zynthian startx[11068]: WARNING:zynthian_gui_keybinding: Can’t load keyboard binding config file ‘/zynthian/config/keybinding.yaml’. Using default.
Apr 18 23:03:33 zynthian startx[11068]: libjackpeak registering as ‘jackpeak’.
Apr 18 23:03:33 zynthian startx[11068]: libjackpeak created input ports

Thats it :slight_smile: