Hifiberry DAC under DietPi?

Hello All,

can you please tell me, if it is possible to run a Hifiberry DAC under the actual DietPi operating system?

If it’s possible can you please give me some hints, how to get it going?

Thank you very much.

Stay healthy,
Bernhard

a “hifiberry dac” is just a TI PCM5122 on a PCB.

That chip is fully supported by Linux and has been for quite a long time;
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/sound/soc/codecs/pcm512x.c?h=v5.7.11

Presumably, you are connecting with i2c, so you will be interested in https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/sound/soc/codecs/pcm512x-i2c.c?h=v5.7.11

Simply build the kernel with CONFIG_SND_SOC_PCM512x_I2C=y and add the i2c and sound entries matching it.

1 Like