Is there any method to distinguish what hifiberry hardware is mounted on the raspi ? *Before* loading any drivers/modules.
The idea is to load the right modules on boot and patch the mpd/alsa configs depending on the hardware.
I have 'several' hifiberrys up an running and would like to 'automagically' modify the config files on installation.
maybe some i2c tools ?
cheers,
Peter
Date
Votes
1 comment
-
HiFiBerry team Accessing the I2C bus before loading the drivers won't work. If the drivers are not blacklisted, i2ctools will have no access to the bus on the addresses the HiFiBerry devices use. However you can modprobe all modules and it will only load the ones that it can find. Except for the Amp. We need to patch the driver there as is currently loads the module even if the Amp is not connected.
For the DAC+ and Digi+ you could read the data from the EEPROM on the board, but this will only work with these 2 boards.
Best regards
Daniel
Please sign in to leave a comment.