Re: Please help in adding ams-delta support to ASoC

2009-06-19 Thread Arun K S
On Fri, Jun 19, 2009 at 4:20 AM, Janusz
Krzysztofikjkrzy...@tis.icnet.pl wrote:
 Tony Lindgren wrote:

 * Janusz Krzysztofik jkrzy...@tis.icnet.pl [090618 14:52]:

 Tony Lindgren wrote:

 On omap1, DSP needs to be powered and idled before some mcbsp clocks can
 be used. Or at least needs to be powered up.

 AFAICS there is no DSP code in mainline at all, so the answer is no, DSP
  was likely not powered up at all. For several weeks I was trying to do
  what was impossible :/. But fortunatelly, I have learned a lot ;).

 We at least used to have code to power and idle the DSP even without the
 dspgateway compiled in.. Sorry I don't remember the details. But most
 likely you need to have the dspgateway patch enabled.

 Tony,
 Thanks for clarifying things.

 Arun K S wrote:

 On Thu, Jun 18, 2009 at 4:40 AM, Janusz
 Krzysztofikjkrzy...@tis.icnet.pl wrote:

 ... I retried the new driver on commit
 90e758af52ba803cba233fabee81176d99589f09 and confirmed the prevoiusly
 seen
 hangup. I found that it was omap_mcbsp_request() never returning back
 from.

 I faced the same issue while writing ASoC driver for tlv320aic23b codec.

 You can have a look at this thread:
 http://www.mail-archive.com/linux-omap@vger.kernel.org/msg03852.html

 It may help.

 Arun,
 Thanks, it's good to hear not only me having this problem ;). So what is the
 current status of your osk driver? What tree do you use, what extra patches
 do you apply to make it actually working?

Currently osk driver works fine on 2.6.31. Initially i used to add the
omap_mcbsp_request()
at the boot time, other wise it hangs up. Audio in current mainline
tree works fine for osk5912
with out any such hacks. I believe there are some patches from Russel
for the DSP memory mapping during
2.6.29 kernel.


 ---

 After all, could someone please give me an advise, what tree, even with
 buggy omap1510 mcbsp/dsp support, should I base my work on for best results?
 Omap? Sound? Mainline? I mean not only easy getting the driver working, but
 also giving it the best possible path into the mainline.

You have to use current omap tree with the patches from current sound
tree(ASoC omap platform drivers changes) for
testing the driver.
Somebody correct me if i am wrong.


 Thanks,
 Janusz

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Please help in adding ams-delta support to ASoC

2009-06-18 Thread Arun K S
On Thu, Jun 18, 2009 at 4:40 AM, Janusz
Krzysztofikjkrzy...@tis.icnet.pl wrote:
 Jarkko Nikula wrote:

 Hmm, recall, did you try hacking the ASoC driver at the same commit
 d8376cc482b241701f7606c81ad578b90853e175 where older driver still
 exists and works? There has been ASoC OMAP fixes and changes since
 then but nothing which can explain why it doesn't work now for 1510.

 There we would know that clock framework, register access etc. works for
 McBSP on 1510.

 Yes, after realizing that possible lack of OMAP1510 McBSP1/3 / DSP support
 in the mainline tree could be the reason of my problem, I got back to omap
 tree. First I retried the new driver on commit
 90e758af52ba803cba233fabee81176d99589f09 and confirmed the prevoiusly seen
 hangup. I found that it was omap_mcbsp_request() never returning back from.

I faced the same issue while writing ASoC driver for tlv320aic23b codec.

You can have a look at this thread:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg03852.html

It may help.


 Then I retired the same on the commit
 d8376cc482b241701f7606c81ad578b90853e175 and got similiar hangup. Next, I
 moved mcbsp initialization to a boot time hook and finally heard a sound and
 got my first DMA interrupt!

 So it seams I have finally managed to take all necessary steps back, and now
 I can go forward, I hope :).

 Thanks,
 Janusz
 --
 To unsubscribe from this list: send the line unsubscribe alsa-devel in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html