Quote Originally Posted by paul- View Post
Likely the correct card is not getting selected as the Alsa input.

From the main page, Goto Diagnostics -> Sound.

Scroll down on the page and look at the following sections. The card number for the hifiberry should match in the pcm.pcinput section.
Hi Paul,

[ INFO ] RECORDING Hardware Devices
*** Scanning for recording devices ***

Card 0, ID `sndrpihifiberry', name `snd_rpi_hifiberry_dacplusadc'
Device 0, ID `HiFiBerry DAC+ADC HiFi multicodec-0', name `', 1 subdevices (1 available)
2 channels, sampling rate 44100..44100 Hz
Sample formats: S24_LE, S32_LE
Buffer size range from 64 to 65536
Period size range from 32 to 32768
Subdevice 0, name `subdevice #0'

[ INFO ] Current /etc/asound.conf
# default - Generated by piCorePlayer
pcm.!default {
type plug
slave.pcm "hw:0,0"

pcm.pcpinput {
type plug
slave.pcm "hw:0,0"

So it seems that the card number is correct.
But i have also this:

[ INFO ] Current card0 pcm0p sub0
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 882
buffer_size: 3528

it seems that card0 sample format is setted to S32_LE...
I have modified the stream URL to and bingo! the sound flows!!

Now is there a way to set hifiberry to utilize a sample format of S16_LE? I think that 32 bit is a waste of resources since the source signal comes from a CD player with 16 bit samples.

Thank you!