2010-07-23 11:22:18     BF537 EZKIT sound driver

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-07-23 11:22:18     BF537 EZKIT sound driver

Alexander Pimenov (RUSSIAN FEDERATION)

Message: 91663   

 

Hi everyone.

Once I decided to make sound driver for BF537 EZKIT.

The true goal is to make Linphone work with AD1854 & AD1871.

The other codecs was regected because of lake of time and etc.(The main reason is my interest in linux programing)

So the ALSA was chosen as a base for this by reason of resampling.

The whole driver was planed like SoC driver. It is similar to AD1836 & AD73322, and based on AD73322 code.

 

Now driver works well with aplay and arecord. It can resample wav signals internaly, so it makes hi-fi music at 48kHz & 24bis, and records it.

But it can not work properly with speaker-test and Linphone. I can hear the sound, but it breaks regulary.

 

Here is speaker-test ouput:

 

root:/mnt> speaker-test -c 2 -f 440 -t sin -F S32_LE -r 48000

 

<...>

 

0 - Front Left

Write error: -32,Broken pipe

Write error: -32,Broken pipe

Write error: -32,Broken pipe

Write error: -32,Broken pipe

Write error: -32,Broken pipe

Write error: -32,Broken pipe

Write error: -32,Broken pipe

Write error: -32,Broken pipe

1 - Front Right

Write error: -32,Broken pipe

Write error: -32,Broken pipe

Write error: -32,Broken pipe

 

And thire is the driver code. (Sorry for little dump)

 

I wonder if you could tell me possible reasons or suggest something.

 

Thanks.

 

ad18x.c

bf53x_sport.c

ad18x.h

Makefile

bf53x_sport.h

Attachments

Outcomes