0

Request for the help to resolve the issue for ALSA codec driver.

Hi All,

We are developing the ALSA SoC codec class driver for one of the codec called adau144x and got stuck at one point while testing the same. I know that this place is for hifiberry support but thought you guys are working on the simillar projects so posting it. Any help would be much appreciated.

I am able to register the soundcard for the codec after inserting the codec driver and machine driver module. I am also able to control/configure adau144x using ALSA controls defined in the codec driver but when i execute aplay command to play audio file on the codec, it fails with the error saying Unable to install hw params. Below is the log for the same.

pi@raspberrypi:~/adau144x$ aplay -c 1 -D plughw:1,0 blackbird.wav
Playing WAVE 'blackbird.wav' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Stereo
aplay: set_params:1145: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S24_3LE
SUBFORMAT: STD
SAMPLE_BITS: 24
FRAME_BITS: 48
CHANNELS: 2
RATE: 44100
PERIOD_TIME: 125000
PERIOD_SIZE: (5512 5513)
PERIOD_BYTES: (33072 33078)
PERIODS: (3 5)
BUFFER_TIME: 500000
BUFFER_SIZE: 22050
BUFFER_BYTES: 132300
TICK_TIME: 0
pi@raspberrypi:~/adau144x$

With Regards,
Anil Patel

7 comments

Please sign in to leave a comment.