<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Repository for OMAP850 audio driver (update)</title>
	<atom:link href="http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/</link>
	<description>open source</description>
	<lastBuildDate>Fri, 03 Sep 2010 13:16:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ashwin</title>
		<link>http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/comment-page-1/#comment-244</link>
		<dc:creator>Ashwin</dc:creator>
		<pubDate>Fri, 01 Jan 2010 18:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=308#comment-244</guid>
		<description>Hi,

Located the problem the way dma was setup it used to stop after doing one frame. Here is the patch 
-----------------------------------------------------------
--- omap850-audio-orig.c	2010-01-01 19:56:55.481121301 +0530
+++ omap850-audio.c	2010-01-01 23:47:38.921107383 +0530
@@ -44,6 +44,8 @@
 // #include 
 #include &quot;omap850-audio.h&quot;
 
+#define OMAP_DMA_CCR_EN		(1 &lt;dma_ch);
+
 	s-&gt;dma_running = 1;
 
 	/* Audio Global Control Register 2: start sync transfer */
@@ -183,6 +186,7 @@
 {
 
 	struct omap_dma_channel_params params;
+	u16 w;
 
 	params.data_type = OMAP_DMA_DATA_TYPE_S16;	/* data type 16 */
 	params.elem_count = s-&gt;fragsize;		/* two buffers, 16 bits of s-&gt;fragsize */
@@ -209,6 +213,17 @@
         }
 	
         omap_set_dma_params(s-&gt;dma_ch, &amp;params);
+#if 1
+	w = OMAP_DMA_CCR_REG(s-&gt;dma_ch);
+	/* If DMA was already active set the end_prog bit to have
+	 * the programmed register set loaded into the active
+	 * register set.
+	 */
+	w &#124;= 1 &lt;&lt; 11;		/* End_prog */
+       	w &#124;= (3 &lt;dma_ch) = w;
+#endif
 	/* enable interrupts which are handled in irq handler */
 	omap_enable_dma_irq(s-&gt;dma_ch, OMAP_DMA_FRAME_IRQ);
 	omap_disable_dma_irq(s-&gt;dma_ch, OMAP_DMA_BLOCK_IRQ);
@@ -409,6 +424,18 @@
 
 		/* ... and for polling processes */
 		wake_up(&amp;s-&gt;frag_wq);
+
+		/* check if dma is still on */
+		if(OMAP_DMA_CCR_REG(ch) &amp; OMAP_DMA_CCR_EN)
+		{
+		  printk(KERN_ALERT &quot;DMA is ON s-&gt;dma_frag:%d\n&quot;,s-&gt;dma_frag);
+		}
+		else
+		{
+		  printk(KERN_ALERT &quot;DMA is OFF!!!! s-&gt;dma_frag:%d\n&quot;,s-&gt;dma_frag);
+		}
+		
+
 	}
 }
 
@@ -1099,3 +1126,4 @@
 EXPORT_SYMBOL(omap_audio_clear_buf);
 EXPORT_SYMBOL(audio_ldm_resume);
 EXPORT_SYMBOL(audio_ldm_suspend);
-----------------------------------------------------------
Let me know if you see any issues in this.

Thanks,
Ashwin</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Located the problem the way dma was setup it used to stop after doing one frame. Here is the patch<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212; omap850-audio-orig.c	2010-01-01 19:56:55.481121301 +0530<br />
+++ omap850-audio.c	2010-01-01 23:47:38.921107383 +0530<br />
@@ -44,6 +44,8 @@<br />
 // #include<br />
 #include &#8220;omap850-audio.h&#8221;</p>
<p>+#define OMAP_DMA_CCR_EN		(1 &lt;dma_ch);<br />
+<br />
 	s-&gt;dma_running = 1;</p>
<p> 	/* Audio Global Control Register 2: start sync transfer */<br />
@@ -183,6 +186,7 @@<br />
 {</p>
<p> 	struct omap_dma_channel_params params;<br />
+	u16 w;</p>
<p> 	params.data_type = OMAP_DMA_DATA_TYPE_S16;	/* data type 16 */<br />
 	params.elem_count = s-&gt;fragsize;		/* two buffers, 16 bits of s-&gt;fragsize */<br />
@@ -209,6 +213,17 @@<br />
         }</p>
<p>         omap_set_dma_params(s-&gt;dma_ch, &amp;params);<br />
+#if 1<br />
+	w = OMAP_DMA_CCR_REG(s-&gt;dma_ch);<br />
+	/* If DMA was already active set the end_prog bit to have<br />
+	 * the programmed register set loaded into the active<br />
+	 * register set.<br />
+	 */<br />
+	w |= 1 &lt;&lt; 11;		/* End_prog */<br />
+       	w |= (3 &lt;dma_ch) = w;<br />
+#endif<br />
 	/* enable interrupts which are handled in irq handler */<br />
 	omap_enable_dma_irq(s-&gt;dma_ch, OMAP_DMA_FRAME_IRQ);<br />
 	omap_disable_dma_irq(s-&gt;dma_ch, OMAP_DMA_BLOCK_IRQ);<br />
@@ -409,6 +424,18 @@</p>
<p> 		/* &#8230; and for polling processes */<br />
 		wake_up(&amp;s-&gt;frag_wq);<br />
+<br />
+		/* check if dma is still on */<br />
+		if(OMAP_DMA_CCR_REG(ch) &amp; OMAP_DMA_CCR_EN)<br />
+		{<br />
+		  printk(KERN_ALERT &#8220;DMA is ON s-&gt;dma_frag:%d\n&#8221;,s-&gt;dma_frag);<br />
+		}<br />
+		else<br />
+		{<br />
+		  printk(KERN_ALERT &#8220;DMA is OFF!!!! s-&gt;dma_frag:%d\n&#8221;,s-&gt;dma_frag);<br />
+		}<br />
+<br />
+<br />
 	}<br />
 }</p>
<p>@@ -1099,3 +1126,4 @@<br />
 EXPORT_SYMBOL(omap_audio_clear_buf);<br />
 EXPORT_SYMBOL(audio_ldm_resume);<br />
 EXPORT_SYMBOL(audio_ldm_suspend);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Let me know if you see any issues in this.</p>
<p>Thanks,<br />
Ashwin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwin</title>
		<link>http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/comment-page-1/#comment-243</link>
		<dc:creator>Ashwin</dc:creator>
		<pubDate>Wed, 30 Dec 2009 07:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=308#comment-243</guid>
		<description>Hi Marek,

I tried the audio driver from your tree at open nandra. It works if
i am running some audio file in CE and then boot linux. It did give some beep sound when I cat a file to the device.

Couple of things
1. this behavior seems same as your described some beeps being heard.
2. If i cat a large file cat seems to lock up.

Any ideas what might be the issue. 
Thanks,
Ashwin</description>
		<content:encoded><![CDATA[<p>Hi Marek,</p>
<p>I tried the audio driver from your tree at open nandra. It works if<br />
i am running some audio file in CE and then boot linux. It did give some beep sound when I cat a file to the device.</p>
<p>Couple of things<br />
1. this behavior seems same as your described some beeps being heard.<br />
2. If i cat a large file cat seems to lock up.</p>
<p>Any ideas what might be the issue.<br />
Thanks,<br />
Ashwin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Belisko</title>
		<link>http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/comment-page-1/#comment-237</link>
		<dc:creator>Marek Belisko</dc:creator>
		<pubDate>Sun, 20 Dec 2009 14:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=308#comment-237</guid>
		<description>Hi, it should work. Anyway I&#039;m working on ASoC driver for newer kernels. I&#039;ll update a post when it will work ;).</description>
		<content:encoded><![CDATA[<p>Hi, it should work. Anyway I&#8217;m working on ASoC driver for newer kernels. I&#8217;ll update a post when it will work <img src='http://open-nandra.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwin</title>
		<link>http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/comment-page-1/#comment-236</link>
		<dc:creator>Ashwin</dc:creator>
		<pubDate>Sun, 20 Dec 2009 14:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=308#comment-236</guid>
		<description>does it work now ? if you have it compiled as a module i would like to give it a try .

Thanks,
Ashwin</description>
		<content:encoded><![CDATA[<p>does it work now ? if you have it compiled as a module i would like to give it a try .</p>
<p>Thanks,<br />
Ashwin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Belisko</title>
		<link>http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/comment-page-1/#comment-235</link>
		<dc:creator>Marek Belisko</dc:creator>
		<pubDate>Fri, 27 Nov 2009 13:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=308#comment-235</guid>
		<description>Hi, you should use git init programm to fetch sources. You can browse also on firefox: http://github.com/nandra/omap_850_kernel</description>
		<content:encoded><![CDATA[<p>Hi, you should use git init programm to fetch sources. You can browse also on firefox: <a href="http://github.com/nandra/omap_850_kernel" rel="nofollow">http://github.com/nandra/omap_850_kernel</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DANILO BEZERRA CARDOSO DA SILVA</title>
		<link>http://open-nandra.com/2009/10/repository-for-omap850-audio-driver-update/comment-page-1/#comment-234</link>
		<dc:creator>DANILO BEZERRA CARDOSO DA SILVA</dc:creator>
		<pubDate>Fri, 27 Nov 2009 13:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=308#comment-234</guid>
		<description>How can i get:
git://github.com/nandra/omap_850_kernel.git

My browse (firefox) don´t know to open de line.
How can i do it?

Thanks,

Danilo.</description>
		<content:encoded><![CDATA[<p>How can i get:<br />
git://github.com/nandra/omap_850_kernel.git</p>
<p>My browse (firefox) don´t know to open de line.<br />
How can i do it?</p>
<p>Thanks,</p>
<p>Danilo.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
