I have a RPi3B+ with a I2S HAT which works with Ropieee using the " * Raspberry Pi DAC (I2S Generic)" setting. I am now trying DietPi as I could not get DoP to work using RoPieee. With DietPi, there isn’t such an option available. I have tried various hifiberry options but none of them work.
aplay -l shows no soundcards found whichever setting I use
Has anyone successfully gotten something similar to work?
I’m not sure how it works on Ropieee, but on Raspberry Pi OS and DietPi you are using device tree overlays to have needed hardware parts setup and drivers loaded. For most specific DACs, you can select them in dietpi-config audio options, but I see there is a generic I2S DAC overlay as well. Try to add dtoverlay=i2s-dac to the end of /boot/config.txt.
Have a look into /boot/overlays and /boot/overlays/README for all available overlays and pic the best matching one.
I just see the previous rpi-dac has been renamed to i2s-dac. dietpi-config does not reflect this yet. So selecting rpi-dac there should as well work for generic I2S DACs.