0

how to set set volume Hifiberry AMP2 1.1

Hello

 

I'm triing to set volume on my rasp PI3 with Hifiberry Amp 2, because music is too loud

for confuguring, I'm using your guide

Configuration

/etc/asound.conf

pcm.!default {
    type hw
    card 0
    device 0
}

ctl.!default {
    type hw
    card 0
}

 

amixer retun nothing

 

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I'm tring to install this, but sigmatcp doesnt start

ep 09 14:50:40 DietPi systemd[1]: sigmatcp.service: Main process exited, code=exited, status=1/FAILURE
Sep 09 14:50:40 DietPi systemd[1]: sigmatcp.service: Failed with result 'exit-code'.
Sep 09 14:55:10 DietPi systemd[1]: Started sigmatcp.service - SigmaTCP Server for HiFiBerry DSP.
Sep 09 14:55:11 DietPi sigmatcpserver[1965]: /usr/local/bin/sigmatcpserver:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Sep 09 14:55:11 DietPi sigmatcpserver[1965]:   __import__('pkg_resources').run_script('hifiberrydsp==0.21', 'sigmatcpserver')
Sep 09 14:55:12 DietPi sigmatcpserver[1965]: INFO:root:running as root, data will be stored in /var/lib/hifiberry
Sep 09 14:55:12 DietPi sigmatcpserver[1965]: INFO:root:initializing ALSA mixer control DSPVolume
Sep 09 14:55:12 DietPi sigmatcpserver[1965]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for 1
Sep 09 14:55:12 DietPi sigmatcpserver[1965]: ERROR:root:ALSA mixer DSPVolume not found
Sep 09 14:55:12 DietPi sigmatcpserver[1965]: ERROR:root:can't create mixer control - aborting
Sep 09 14:55:12 DietPi sigmatcpserver[1965]: INFO:root:not enabling LG Sound Sync
Sep 09 14:55:14 DietPi sigmatcpserver[1965]: INFO:root:did not detect ADAU14xx DSP
Sep 09 14:55:14 DietPi sigmatcpserver[1965]: INFO:root:None
Sep 09 14:55:14 DietPi sigmatcpserver[1965]: INFO:root:saving DSP data memory
Sep 09 14:55:14 DietPi sigmatcpserver[1965]: INFO:root:store: getting checksum
Sep 09 14:55:14 DietPi sigmatcpserver[1965]: ERROR:root:SPI returned only zeros - communicationerror
Sep 09 14:55:14 DietPi sigmatcpserver[1965]: ERROR:root:Can't calculate checksum from None

and

systemctl status sigmatcp.service 
× sigmatcp.service - SigmaTCP Server for HiFiBerry DSP
     Loaded: loaded (/lib/systemd/system/sigmatcp.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sat 2023-09-09 14:55:17 BST; 44s ago
   Duration: 6.461s
    Process: 1965 ExecStart=/usr/local/bin/sigmatcpserver --alsa (code=exited, status=1/FAILURE)
   Main PID: 1965 (code=exited, status=1/FAILURE)
        CPU: 1.562s

Sep 09 14:55:17 DietPi sigmatcpserver[1965]:   File "/usr/local/lib/python3.11/dist-packages/hifiberrydsp/server/sigmatcp.py", line 960, in run
Sep 09 14:55:17 DietPi sigmatcpserver[1965]:     SigmaTCPHandler.save_data_memory()
Sep 09 14:55:17 DietPi sigmatcpserver[1965]:   File "/usr/local/lib/python3.11/dist-packages/hifiberrydsp/server/sigmatcp.py", line 502, in save_data_memory
Sep 09 14:55:17 DietPi sigmatcpserver[1965]:     SigmaTCPHandler.store_parameters(checksum, memory)
Sep 09 14:55:17 DietPi sigmatcpserver[1965]:   File "/usr/local/lib/python3.11/dist-packages/hifiberrydsp/server/sigmatcp.py", line 682, in store_parameters
Sep 09 14:55:17 DietPi sigmatcpserver[1965]:     datafile.write(checksum)
Sep 09 14:55:17 DietPi sigmatcpserver[1965]: TypeError: a bytes-like object is required, not 'NoneType'
Sep 09 14:55:17 DietPi systemd[1]: sigmatcp.service: Main process exited, code=exited, status=1/FAILURE
Sep 09 14:55:17 DietPi systemd[1]: sigmatcp.service: Failed with result 'exit-code'.
Sep 09 14:55:17 DietPi systemd[1]: sigmatcp.service: Consumed 1.562s CPU time.

I'm using Dietpi 8.21

cat /etc/*release*
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

 

What's wrong ?

thanks in advance, best regards

Olivier

 

 

3 comments

Please sign in to leave a comment.