Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-20 Thread Jarkko Nikula
On Thu, 19 May 2011 17:58:56 -0700 Steve Calfee stevecal...@gmail.com wrote: I also tried to get as close as I could to the soc/omap/omap3pandora.c machine driver with my omap3beaglexm.c machine driver. Specifically in the *_hw_params init routines. But when I start things up (even

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-20 Thread Peter Ujfalusi
On Friday 20 May 2011 02:58:30 Steve Calfee wrote: On 05/19/11 04:28, Peter Ujfalusi wrote: Correct, I can set bit clock to 64*lrclk, 48*lrclk, 128*lrclk, 17*lrclk, and 18*lrclk. Strange, that there is no option for 32*lrclk. The audio folks here think that it is normal to send more than

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-20 Thread Peter Ujfalusi
Hi, On Friday 20 May 2011 09:29:11 Jarkko Nikula wrote: This very likely sounds that in master mode the master clock to McBSP is missing if there is no DMA running. If the clock setup is correct for McBSP, than it runs the clocks, and shifts out data. Did you try to use internal 96 MHz

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-20 Thread Steve Calfee
On 05/19/11 23:29, Jarkko Nikula wrote: On Thu, 19 May 2011 17:58:56 -0700 Steve Calfee stevecal...@gmail.com wrote: ... This very likely sounds that in master mode the master clock to McBSP is missing if there is no DMA running. Did you try to use internal 96 MHz from my example or did

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-19 Thread Peter Ujfalusi
Hi, On Thursday 19 May 2011 03:30:51 Steve Calfee wrote: On 05/17/11 03:42, Peter Ujfalusi wrote: Good suggestion. After switching to my codec as master, I could see the clocks. But one problem was the beagleboardxm trainer has level shifters, but they are one directional, and not correct for

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-19 Thread Steve Calfee
On 05/19/11 04:28, Peter Ujfalusi wrote: ... My codec cannot be set to use only 16 bits per phase. Is there a way to setup the omap so that data is sent to both channels? As you can see above the xphase bit is one saying dual channels. Is this a dma setup problem? I can not find datasheet

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-19 Thread Steve Calfee
On 05/18/11 18:06, Steve Calfee wrote: On 05/16/11 23:37, Jarkko Nikula wrote: Did you try to run OMAP as an I2S master like what omap3pandora.c is doing? Missing clock in codec master configuration suggests that reason is in codec side and reversed roles during development makes easier to

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-18 Thread Steve Calfee
On 05/17/11 03:42, Peter Ujfalusi wrote: Hi, On Monday 16 May 2011 21:07:40 Steve Calfee wrote: No, they get called. I just don't get the clock on the bclk pin. OK. Could you try to disconnect the CLKX, and FSX lines from OMAP, and see that you have the clocks on the codec side? If in

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-18 Thread Steve Calfee
On 05/16/11 23:37, Jarkko Nikula wrote: Hi On Mon, 16 May 2011 11:07:40 -0700 Steve Calfee stevecal...@gmail.com wrote: On 05/16/11 01:54, Peter Ujfalusi wrote: On Saturday 14 May 2011 05:47:33 Steve Calfee wrote: I put in a few debug statements. It appears that my DMA never gets

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-17 Thread Jarkko Nikula
Hi On Mon, 16 May 2011 11:07:40 -0700 Steve Calfee stevecal...@gmail.com wrote: On 05/16/11 01:54, Peter Ujfalusi wrote: On Saturday 14 May 2011 05:47:33 Steve Calfee wrote: I put in a few debug statements. It appears that my DMA never gets started. I know it can work with a different

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-17 Thread Peter Ujfalusi
Hi, On Monday 16 May 2011 21:07:40 Steve Calfee wrote: No, they get called. I just don't get the clock on the bclk pin. OK. Could you try to disconnect the CLKX, and FSX lines from OMAP, and see that you have the clocks on the codec side? If in this way you still can not see the clocks, than

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-16 Thread Peter Ujfalusi
On Saturday 14 May 2011 05:47:33 Steve Calfee wrote: I put in a few debug statements. It appears that my DMA never gets started. I know it can work with a different machine and codec driver, but not mine. I don't see any explicit DMA init, but that must be the problem. Any more ideas? You

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-16 Thread Steve Calfee
On 05/16/11 01:54, Peter Ujfalusi wrote: On Saturday 14 May 2011 05:47:33 Steve Calfee wrote: I put in a few debug statements. It appears that my DMA never gets started. I know it can work with a different machine and codec driver, but not mine. I don't see any explicit DMA init, but that must

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-13 Thread Steve Calfee
On Thu, May 12, 2011 at 10:59 PM, Peter Ujfalusi peter.ujfal...@ti.com wrote: On Thursday 12 May 2011 21:43:20 Steve Calfee wrote: Since it is set to 0xF0F, doesn't this set it as master? Sorry, that is correct, McBSP is configured as msater. Also, spelunking the kernel sources, I cannot

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-12 Thread Jarkko Nikula
On Wed, 11 May 2011 14:31:46 -0700 Steve Calfee stevecal...@gmail.com wrote: On 05/11/11 11:16, Steve Calfee wrote: New title, more appropriate to the topic. I was replying to the fix posted by Sanjeev fixing a/sound/soc/omap/omap-mcbsp.c I am pretty near the cutting edge kernel, trying

Re: beagleboardxm 2.6.39rc4 mcbsp problems.

2011-05-12 Thread Steve Calfee
On 05/12/11 04:01, Peter Ujfalusi wrote: On Thursday 12 May 2011 09:25:55 Jarkko Nikula wrote: Of course for this you need to use omap as a master and codec as a slave. One example for this is sound/soc/omap/omap3pandora.c. static struct omap_board_mux board_mux[] __initdata = { +