McBSP DMA Event [DM355]

2009-04-27 Thread Azam Ansari
Hi, I have enabled McBSP0 in the board-dm355-evm.c file. I have configure McBSP0 for audio but it is not working( Currently I am using McBSP0 for only recording purpose...). I found that McBSP1 EDMA event is enable in mcbsp.c file by following code: if (cpu_is_davinci_dm355()) { __REG(EDM

Re: McBSP DMA Event [DM355]

2009-04-27 Thread Steve Chen
On Mon, 2009-04-27 at 14:20 +0530, Azam Ansari wrote: > Hi, > > I have enabled McBSP0 in the board-dm355-evm.c file. > I have configure McBSP0 for audio but it is not working( Currently I > am using McBSP0 for only recording purpose...). May want to check the pinmux settings.. just a thought. R

Re: McBSP DMA Event [DM355]

2009-04-27 Thread Azam Ansari
Hi Steve, When I check /proc/pinmux it shows that Pinmux is configured for McBSP 29:34 but when I see the schematics it shows that McBSP pins are on 25:30. Can you please tell me how do i enable event mux for McBSP0 pin 25:30? On Mon, Apr 27, 2009 at 5:18 PM, Steve Chen wrote: > On Mon, 2009-

Re: McBSP DMA Event [DM355]

2009-04-27 Thread Steve Chen
On Mon, 2009-04-27 at 18:22 +0530, Azam Ansari wrote: > Hi Steve, > > When I check /proc/pinmux it shows that Pinmux is configured for McBSP > 29:34 but when I see the schematics it shows that McBSP pins are on > 25:30. Can you please tell me how do i enable event mux for McBSP0 pin > 25:30? > T

Re: McBSP DMA Event [DM355]

2009-04-28 Thread Azam Ansari
Hi Steve, After looking into the PINMUX I found that the pinmux setting is being done when I call board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_McBSP0, 1); This does the PINMUX settings for McBSP0. I found two patchs on the mailing list for McBSP0 setup... tx_swap.patch rx_swap.patch htt

Re: McBSP DMA Event [DM355]

2009-04-29 Thread Steve Chen
On Wed, 2009-04-29 at 11:47 +0530, Azam Ansari wrote: > Hi Steve, > > After looking into the PINMUX I found that the pinmux setting is being > done when I call > > board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_McBSP0, 1); > > This does the PINMUX settings for McBSP0. > > I found two patc

Re: McBSP DMA Event [DM355]

2009-04-29 Thread Azam Ansari
Hi Steve, >>Were you getting frame sync before the change? No. I was not getting frame sync before the change either. Does it mean that PINMUX setup is not correct? Currently is set PINMUX3 = 0x3F. >> and I noticed in function >> audio_aic33_init in sound/oss/dm644x/davinci->> audio-aic33.c co

Re: McBSP DMA Event [DM355]

2009-04-29 Thread Steve Chen
On Wed, 2009-04-29 at 23:57 +0530, Azam Ansari wrote: > Hi Steve, > > >>Were you getting frame sync before the change? > > No. I was not getting frame sync before the change either. Does it > mean that PINMUX setup is not correct? > Currently is set PINMUX3 = 0x3F. Did you try the suggestions in

Re: McBSP DMA Event [DM355]

2009-04-29 Thread Liu Yebo
: davinci-linux-open-source@linux.davincidsp.com Sent: Thursday, April 30, 2009 2:27 AM Subject: Re: McBSP DMA Event [DM355] Hi Steve, >>Were you getting frame sync before the change? No. I was not getting frame sync before the change either. Does it mean that PINMUX setup is not c

Re: McBSP DMA Event [DM355]

2009-04-30 Thread Azam Ansari
Hi Steve, I have tried setting PINMUX3 to 0x3F as well as 0x00. In both the cases I get the same error "frame sync not detected" Below is the code snippet where I get this error: pcrtemp = PCR; /*Enable the transmitters pins as GPIO*/ PCR = PCR | RIOENABLE; /*Wait for the first fra

Re: McBSP DMA Event [DM355]

2009-04-30 Thread Azam Ansari
al Message - > *From:* Azam Ansari > *To:* Steve Chen > *Cc:* davinci-linux-open-source@linux.davincidsp.com > *Sent:* Thursday, April 30, 2009 2:27 AM > *Subject:* Re: McBSP DMA Event [DM355] > > Hi Steve, > > >>Were you getting frame sync before the change? >

Re: McBSP DMA Event [DM355]

2009-05-07 Thread Azam Ansari
Hi Steve, Thanks for the help. I got the McBSP0 working for my audio chip. Other than the changes you suggested I had to disable the internal clock of McBSP0. Thanks a lot for your help. Best Regards, Azam. ___ Davinci-linux-open-source mailing list D