I recently bought an Amp2 hifiberry card that i use with Librelec 9.1.501 and Kodi 18.4 on a rasberry 3B+. I use two 8 ohms JM lab speakers.
I paid attention, when connecting the speakers to the amp2, to respect the +/- connections with the board.
**One remark** : i didn't have to follow the tutorial (https://www.hifiberry.com/docs/software/libreelec-installation-and-configuration/) as the amp2 was already recognized TWICE in my kodi audio settings. Strange though, it is indicated both "ALSA:Default(snd_rpi_hifiberry_dacplus Analog)" and "ALSA:snd_rpi_hifiberry_dacplus , Analog" : not mention of amp+ or amp2.
When i follow the above tutorial and write in the config.txt file, the hifiberry output does not appear at all in the list (only HDMI or Pi Analog). But, hey, it is working so...
**One problem** :
I have loud cracking sounds when starting using web radio sources. These sounds appear only when changing from one web radio to another, at the connection. Then i can listen to them normally.
I use the kodi Radio addon but it is the same with shoutcast2 or Icecast addon.
No cracking sounds when passing from one flac music files from a local NAS to another.
**What did i do ?**
Well, i looked into the settings menus and played with the sounds options, especially those concerning sample rates or blank noise, without any results.
I searched into hiffiberry and Kodi forum : nothing except this thread that i contributed to (https://forum.kodi.tv/showthread.php?tid=345692).
I searched for audio problem in the logs but i don't even understand them.
Note that i don't know how to install sound test or control packages from repositories since i am on libreElec and not raspbian (no apt-get command available). Thinking of this page : https://www.hifiberry.com/docs/archive/mixer-controls-on-the-hifiberry-boards/
Do you have any idea where i can look for a solution to this cracking sound problem ? What can i do for you to help you help me ?