From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 3 Mar 2008 14:18:19 +0100 (CET) From: Angelo Subject: i2s driver To: Linuxppc-embedded@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1481141879-1204550299=:99199" Message-ID: <931295.99199.qm@web23104.mail.ird.yahoo.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-1481141879-1204550299=:99199 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Thanks for answer. >I can also send you some GPL'd code that works. >It is extremely bad commented (:-p) and probably not useful > (it's not an ALSA driver itself, but it uses the DMA to > copy data to the PSC - I2S mode) but it works. It is a great idea; i can use it to start. You can send it via mail.. > But this code is based on 2.6.16 kernel. I'm using 2.6.22 kernel version. I just enabled in lite5200b.dts: //PSC3 in CODEC mode example //asimmini i2s@2400 { // PSC3 device_type = "sound"; compatible = "mpc5200b-psc-i2s";//not 5200 compatible cell-index = <2>; reg = <2400 100>; interrupts = <2 3 0>; interrupt-parent = <&mpc5200_pic>; }; ..and added in lite5200.c, in function mpc52xx_psc_functions ... struct mpc52xx_psc_func mpc52xx_psc_functions[]= { { .id = 2, .func = "i2s", }, ... thanks for help. --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail --0-1481141879-1204550299=:99199 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Thanks for answer.

>I can also send you some GPL'd code that works.
>It is extremely bad commented (:-p) and probably not useful
> (it's not an ALSA driver itself, but it uses the DMA to
> copy data to the PSC - I2S mode) but it works.
It is a great idea; i can use it to start. 
You can send it via mail..

> But this code is based on 2.6.16 kernel.

I'm using 2.6.22 kernel version.

I just enabled in lite5200b.dts:

//PSC3 in CODEC mode example //asimmini
i2s@2400 { // PSC3
device_type = "sound";
compatible = "mpc5200b-psc-i2s";//not 5200 compatible
cell-index = <2>;
reg = <2400 100>;
interrupts = <2 3 0>;
interrupt-parent = <&mpc5200_pic>;
};

..and added in lite5200.c, in function
mpc52xx_psc_functions
...
struct mpc52xx_psc_func mpc52xx_psc_functions[]= {
{ .id = 2,
.func = "i2s",
},
...
thanks for help.




L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail --0-1481141879-1204550299=:99199--