Em Sex, 2008-10-24 às 16:54 +0100, Liam Girdwood escreveu:
On Thu, 2008-10-23 at 22:54 -0200, Daniel Ribeiro wrote:
Hi!
What is needed for [0] to be accepted on mainline linux?
[0]http://opensource.wolfsonmicro.com/cgi-bin/gitweb.cgi?p=linux-2.6-asoc.git;a...
When I last worked on this it was in need of updates for SSP register IO, clk API and more testing. It has the IO and clk stuff now.
Does this code work well on your platform/board ?
Not as it is.
My sound codec needs 32bit ssp frames, even considering that it only supports 16bit mono/stereo audio. I guess that it works with I2S emulation mode, which pxa2xx-ssp.c dont support yet.
After some time trying to understand the very poorly documented I2S/SSP emulation on the pxa manual, i ended up with [1]. It works perfectly on my board, with SND_SOC_DAIFMT_MSB.
To ease your reading, attached is a diff against [0]. It is updated to build on the latest linus tree and handles DAIFMT_I2S and DAIFMT_MSB differently.
If so, I guess we could scratch off the more testing part and consider it for the next merge window. Iirc it was also waiting on some pxa dependencies going upstream, so it may wait a little longer.
I'm sure it's on Mark's long todo list....
Liam
[1]http://git.openezx.org/?p=openezx.git;a=blob;f=sound/soc/pxa/pxa2xx-ssp.c;h=...