No Alsa/jack from zynthian image but Hifiberry Amp+ plays from hifiberry image


#1

Wasted an afternoon on this one…

I had an encoder not turning but twittering, so opened up and examined.
seemed ok, closed up and everything went haywire.

Pi booted then shut down WITOHUT recording a syslog (that I could find)
I loaded the sds into a seperate machine and couldn’t find a log. . .

Assumed I’d killed something, unplugged stripboard, same problem . .
Loaded old hifiberry sds
aplay test.wav worked, so it appears the HifIFberry Amp+ is ok. (phew…)
burnt a new sds from original zynthian downloaded image . . .
upgrade_zynthian twice . . .
booted but failed on jack start up.
Could however get a ssh shell , ( and hdmi console prompt)

with image I now try aplay -l and only get null . . .

and aplay -L I get Null . . .

Have I partially killed the Amp+ or have I forgotten some aspect of the set up?

Confused of Cheshire …


#2

I would compare the hifiberry sds and the updated zynthian one. Especially the boot directory.
Have you tried zynthian image without encoder plugged in?
Killed the zynthian process and tried aplayer?


#3

Work today, (django . . ) and the rest of the week, A chance to clear my head and come at this one again.


#4

You can try a Minibian image on a sep. SD. If “aplay -l” can show you some informarion about your Hifiberry you have luck…

Sorry - no more ideas yet…

Regards, Holger


#5

It is rather hard to kill zynthian isn’t it …? :slight_smile:

root@zynthian:/zynthian# kill -9 2171

root@zynthian:/zynthian# ps -ef | grep zynthi
root 4570 1 0 19:45 ? 00:00:00 /bin/bash /zynthian/zynthian-webconf/zynthian_webconf.sh
root 4575 4570 1 19:45 ? 00:00:01 /usr/bin/python3 ./zynthian_webconf.py
root 4756 1 0 19:46 ? 00:00:00 /bin/sh /usr/bin/startx ./zynthian.sh – :0 vt3
root 4778 4756 0 19:46 ? 00:00:00 xinit ./zynthian.sh – /usr/bin/X :0 vt3 -auth /tmp/serverauth.xs1sgAPEg4
root 4784 4778 0 19:46 ? 00:00:00 /bin/bash ./zynthian.sh
root 4907 4784 92 19:46 ? 00:00:03 /usr/bin/python3 ./zynthian_gui.py
root 4921 1084 0 19:46 pts/0 00:00:00 grep zynthi

I think it’s a corrupted sds . . I can’t edit /boot/config.txt


#6

I shut it down with systemctl stop zynthian and restart with systemctl start zynthian - which is pretty clean.


#7

Now that does seem a bit more mature …

Ok new image burnt but not updated . . .

zynthian stopped see above . . .

encoders unplugged.

root@zynthian:~# ps -ef | grep zynth
avahi 259 1 0 20:43 ? 00:00:00 avahi-daemon: running [zynthian.local]
root 7912 627 0 21:38 pts/0 00:00:00 grep zynth
root@zynthian:~# aplay -l
aplay: device_list:268: no soundcards found…
root@zynthian:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
root@zynthian:~#

I’m burning a hifiberry raspbian -lite image to see how that works . . .


#8

Nope it’s the settings in /boot/config.txt . . . .

It needs to be . . . .
> # Audio Device Driver:

dtoverlay=hifiberry-amp

& comment the

dtoverlay=hifiberry-dacplus

(don’t no how to display code in this board …)

root@zynthian:~# aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_amp], device 0: HifiBerry AMP HiFi tas5713-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0

Does the web-conf config this if the card is changed …?


#9

Ok testing that the hifiberry Amp+ works . . .

so over an ssh -X root@192.168.1.12 ( the address of My particular zynthian )

aplay /zynthian/zynthian-data/soundfonts/sfz/Drums/SalamanderDrumkit/OH/cowbell_MP_3 .wav

aplay: main:722: audio open error: Device or resource busy

So… we do have alsa because aplay -l sees the card.

But jack has grabbed the card to do good stuff so we want to turn that off. . .

qjackctl & ( this works cos you did the -X on ssh )

and stop jack . . . . on the interface …

But still resource busy . . .

Lets see what is using the snd . . .
lsof | grep snd

(lsof lists open files you might well need apt-get install lsof )
( | is a pipe the output of the first command is stuffed straight into the next command)
( which i grep… grep searches for text in this case the letters snd )

and gives …

jackd 383 root mem CHR 116,16 8604 /dev/snd/pcmC0D0p
jackd 383 root 10u CHR 116,0 0t0 8603 /dev/snd/controlC0
jackd 383 root 12u CHR 116,16 0t0 8604 /dev/snd/pcmC0D0p

jackd is still runinng . .

So lets be nasty . . .

killall -9 jackd

aplay /zynthian/zynthian-data/soundfonts/sfz/Drums/SalamanderDrumkit/OH/cowbell_MP_3 .wav

JUST THE RIGHT AMOUNT OF COWBELL !!!

SUCCESS !!


#10

Congrats on getting it working! With jack running, does mpg123 play?


#11

Could you post the output of “amixer scontrols”?


#12

Yep . . .
mpg123 /zynthian/zynthian-data/audio/test.mp3

Is our African Gentleman.


#13

amixer scontrols
Simple mixer control ‘Master’,0
Simple mixer control ‘Channels’,0