Hi !
I got a problem getting the hifiberry amp4 with dsp addon board and sigmatcpserver running on a raspberry Pi3b using raspianos (buster 11):
here is what I have done so far:
in /boot/config.txt I set up:
#dtparam=audio=on (commented it out)
dtparam=i2s=on
dtoverlay=hifiberry-dacplus
force_eeprom_read=0
dtoverlay=rotary-encoder,pin_a=23,pin_b=24,relative_axis=1
dtoverlay=gpio-key,gpio=22,keycode=28,label="ENTER"
dtparam=spi=on
Then I tried to install the dsptookit:
sudo pip3 install --upgrade hifiberrydsp --> working
bash <(curl https://raw.githubusercontent.com/hifiberry/hifiberry-dsp/master/install-dsptoolkit) --> installation working
Well, up to here the installation was working.
But I could not start the server, or the tools.
The error message is:
Dec 04 08:32:04 JoBox sigmatcpserver[2598]: File "/usr/local/bin/sigmatcpserver", line 4, in <module>
Dec 04 08:32:04 JoBox sigmatcpserver[2598]: __import__('pkg_resources').run_script('hifiberrydsp==0.21', 'sigmatcpserver')
Dec 04 08:32:04 JoBox sigmatcpserver[2598]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 651, in run_script
Dec 04 08:32:04 JoBox sigmatcpserver[2598]: self.require(requires)[0].run_script(script_name, ns)
Dec 04 08:32:04 JoBox sigmatcpserver[2598]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1436, in run_script
Dec 04 08:32:04 JoBox sigmatcpserver[2598]: raise ResolutionError(
Dec 04 08:32:04 JoBox sigmatcpserver[2598]: pkg_resources.ResolutionError: Script 'scripts/sigmatcpserver' not found in metadata at '/usr/local/lib/python3.9/dist-packages/hifiberrydsp-0.21.dist-info'
Dec 04 08:32:04 JoBox systemd[1]: sigmatcp.service: Main process exited, code=exited, status=1/FAILURE
After some readings I figured out that this is a python environment problem, so I changed a line in the setup script "setup.py"
old: packages=find_packages(),
new: packages=find_packages(include=['bin/*']),
So now it seems to be working.
But not the sigmatcp server:
root@JoBox:~# /usr/local/bin/sigmatcpserver --alsa
INFO:root:running as root, data will be stored in /var/lib/hifiberry
INFO:root:initializing ALSA mixer control DSPVolume
ERROR:root:ALSA mixer DSPVolume not found
ERROR:root:can't create mixer control - aborting
INFO:root:not enabling LG Sound Sync
INFO:root:detected ADAU14xx DSP
INFO:root:None
INFO:root:saving DSP data memory
INFO:root:store: getting checksum
INFO:root:caching program memory checksum
INFO:root:store: writing memory dump to file
Problem:
ERROR:root:ALSA mixer DSPVolume not found
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
alsamixer shows a lot of mixers, inclusive Dsp_prog, Analogue, Digital and lots of others, but no dspvolume.
What's going wrong ? Any Idear ?
By the way, everytime I start the rpi it does a huge noise in the loudspeakers (crrrk).
Thomas