Hello all !
I plan to use the HifiBerry DAC (version One) with modipy software.
When i try to play sound through the DAC with sound aplay sound test:
aplay /usr/share/sounds/alsa/Front_Center.wav
i get the following error message:
aplay: set_params:1087: Number of channel not available
Please note that Im french, "Number of channel not available" is my traduction from french :)
During the configuration, I followed those step :
- rpi update and kernel update
- configuration of the /etc/modules with :
snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_hifiberry_dac
- then I use aplay -l to know what is the card number :
Card 0 : ALSA [bcm2835 ALSA], device 0
Card 0 : ALSA [bcm2835 ALSA], device 1 hdmi
Card 1 : sndrpihifiberry [snd_rpi_hifiberry], device 0
- Creation of /etc/asound.conf (the file does not exist before) with :
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
- Selection of the card with amixer:
amixer cset numid=3 1 > /dev/null 2>&1 || true
AND then I get the error message aplay: set_params:1087.
Could you please help me ?
I hope my explanation is clear enought.
Im a big neebie with linux, the raspberry is my firt linux utilisation... Please, be kind with me :)
Thank you in advance.
Regards. Hugo
Date
Votes
2 comments
-
HiFiBerry team Hi,
what does aplay -L show? Note that aplay is a very simple program. It expects that the driver supports exactly the format of the wav file. As the HiFiBerry boards are all Stereo, aplay will not play back a mono file.
For playback tests, I recommend to use mplayer instead.
Best regards
Daniel -
Hugo DELPI Hello Daniel,
Thank you very much for your answer.
I tried with mplayer and everything work well :)
Thank a lot !
Best Regards.
Hugo
Please sign in to leave a comment.