[alsa-devel] alsa on Atmel at91
murpme at gmail.com
Wed Apr 18 14:00:19 CEST 2007
I'm using gcc 4.1.2 built with buildroot to cross compile alsa lib.
I've tried it with -O1 as reccomended in the gcc bug discussion but I
see a similar behaviour. Now it does not give a
I've turned on debug messages in alsa lib which shows the following
refine_soft 'default' (begin)
PERIOD_TIME: (42666 42667)
BUFFER_TIME: (170666 170667)
refine_soft ok 'default'
refine_slave - leave 'default'
********** was set period_size = 0
********** was set buffer_size = 0
It seems that that alsa lib is not returning the correct values. Is
this typical of the gcc bug?
What gcc version are you using?
Can you also send me the parameters you use with ./configure to setup
I use the following:
CFLAGS="-Wall -O1" \
CXXFLAGS="-Wall -O1" \
CC=arm-linux-gcc ./configure \
On 4/18/07, Liam Girdwood <lg at opensource.wolfsonmicro.com> wrote:
> On Wed, 2007-04-18 at 11:18 +0200, Michel Benoit wrote:
> > Hello again Liam,
> > > Frank has written a codec driver for a dumb BT codec (attached and link
> > > below). This could be renamed and with a little string changes could be
> > > used as a generic dumb codec driver.
> > >
> > > http://opensource.wolfsonmicro.com/~lg/tmp/asoc-codec-bluecore.patch
> > >
> > >
> > > I would use the eti_b1_wm8731.c as an example machine driver for your
> > > board. You will need to replace any WM8731 references and add your
> > > boards own specific clocks, gpio's etc.
> > >
> > I am able to build a soc driver for my hardware using the bluecore
> > codec driver and et1_b1_wm8731 machine code as examples.
> > The driver gets recognized by alsa at startup. The ssc registers are
> > set correctly but my original problem still remains. I can play
> > random noise with test/pcm_min but with test/pcm the alsa lib returns
> > a period_size of 0, despite the fact I set period_time to 100000.
> This maybe related to an ARM gcc bug :-
> > I start to suspect that I have a problem with alsa lib. How did you
> > cross compile alsa lib för the at91?
> I use OpenEmbedded for all my cross compiling:-
> OE has the bug fix for the above gcc bug in it's toolchain.
More information about the Alsa-devel