pHAT Module Series
pHAT-HIFI Technical Description
pHAT-HIFI Technical Description
Page 14 of 20
3.7.3
Hardware Testing
To check that the pHAT-HIFI hardware is installed it can be checked by entering the following
command:
aplay -l
This will list all the connected audio devices. The pHAT-HIFI should show as HifiBerry DAC HiFi
as follows:
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0:
HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
The output volume can be changed using the following command:
alsamixer
Additionally you should be able to test the device using the following command:
speaker-test -D default -c 2 -twav
This should generate a ‘left front’ and ‘right front’ vocal output on the speakers.
To playback mp3 music files the simplest command line tool is mpg123 which can be installed
with the following command:
sudo apt-get install mpg123
After install you can playback a single mp3 using the following command as an example:
mpg123 Dancing Queen.mp3
Or multiple mp3 files using the following command:
mpg123 *.mp3