<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>UnDhIyU</title>
	<atom:link href="http://gohelrakesh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gohelrakesh.wordpress.com</link>
	<description>aLL kINDS oF mASALA - sPICY cOMBINATIONS</description>
	<lastBuildDate>Mon, 02 May 2011 04:26:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gohelrakesh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>UnDhIyU</title>
		<link>http://gohelrakesh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gohelrakesh.wordpress.com/osd.xml" title="UnDhIyU" />
	<atom:link rel='hub' href='http://gohelrakesh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>gingerbread issue with undefined reference for ld</title>
		<link>http://gohelrakesh.wordpress.com/2011/05/02/gingerbread-issue-with-undefined-reference-for-ld/</link>
		<comments>http://gohelrakesh.wordpress.com/2011/05/02/gingerbread-issue-with-undefined-reference-for-ld/#comments</comments>
		<pubDate>Mon, 02 May 2011 04:26:54 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=186</guid>
		<description><![CDATA[Recently I tried to add a new dynamic library (.so file) in the gingerbread source. The library seems to be properly copied to the respective folder, also there was no compilation error. But at the end moment in linking, the build failed saying. target SharedLib: libcameraservice (out/target/product/sholes/obj/SHARED_LIBRARIES/lib*_intermediates/LINKED/ y.so) prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/sholes/obj/SHARED_LIBRARIES/lib*_intermediates/z.o: in function w.cpp:109: error: undefined [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=186&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I tried to add a new dynamic library (.so file) in the gingerbread source. The library seems to be properly copied to the respective folder, also there was no compilation error.</p>
<p>But at the end moment in linking, the build failed saying.</p>
<p>target SharedLib: libcameraservice (out/target/product/sholes/obj/SHARED_LIBRARIES/lib*_intermediates/LINKED/<br />
y.so)<br />
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/sholes/obj/SHARED_LIBRARIES/lib*_intermediates/z.o: in function w.cpp:109: error: undefined reference to </p>
<p>We can easily know that the symbols are not found in the respective linked library, but hey wait a second, we said the library is properly copied and it&#8217;s in LINKED library path. What is the problem?</p>
<p>The difficult the question, but the simple was the answer. The library I was linking was a c .so file, but where I was linking it was a cpp .so file. Umm ..  extern &#8220;C&#8221; { } saved me <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=186&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2011/05/02/gingerbread-issue-with-undefined-reference-for-ld/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>Concepts of Reference Counting</title>
		<link>http://gohelrakesh.wordpress.com/2010/08/05/concepts-of-reference-counting/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/08/05/concepts-of-reference-counting/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 07:06:53 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
		
		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=181</guid>
		<description><![CDATA[http://www.codeproject.com/KB/cpp/rcptr.aspx In your introduction you imply that in an implementation for reference counting the object always holds the reference counter (in your example by inheritance). This is but one possible implementation of a reference counting concept however. A reference counter does not need to be part of an object (or a base class), and the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=181&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeproject.com/KB/cpp/rcptr.aspx">http://www.codeproject.com/KB/cpp/rcptr.aspx</a></p>
<blockquote><p>In your introduction you imply that in an implementation for reference counting the object always holds the reference counter (in your example by inheritance). This is but one possible implementation of a reference counting concept however.</p>
<p>A reference counter does not need to be part of an object (or a base class), and the object doesn&#8217;t even need to know about it for all it cares. The solution you provide does that. This is an approach called &#8216;intrusive reference counting&#8217; because you need to &#8216;intrude&#8217; on each type of object definition that you want reference counting implemented for. It is sensible to do this for an OO design when the object itself &#8216;knows&#8217; that the added storage and function call levels implied cost less than the off-chance of someone accidentally forgetting to release memory, or if you don&#8217;t simply care about performance cost. If you build an application from scratch, it is perfectly reasonable to do this.</p>
<p>Other implementations of reference counting create specialized types of pointers (&#8216;smart pointers&#8217;) that collectively own the reference counter object (usually just a standalone int), and destroy that object upon decrementation to 0. This is preferable in old code that you do not want to touch or when you are referencing third-party objects whose class declarations you cannot change to inherit from some base class. boost:shared_ptr implements this concept, and you can also find an almost complete example in Bjarne Stroustrup&#8217;s &#8220;The C++ Programming Language&#8221;. The disadvantage of this concept is that each smart pointer needs to hold two pointers &#8211; one to the object they point to and one to the collectively shared reference counter. It is also neccessary for the application that use these smart pointers to be aware of that fact, since they explicitely need to use the appropriate smart pointer types and may never call delete on them (which is about the only thing that ultimately distinguishes them from &#8216;normal&#8217; pointers). Note that the auto_ptr type is a rather incomplete implementation of smart pointers.</p>
<p>Yet another approach is that you implement a memory manager that holds reference counters. I consider this the &#8216;most object-oriented&#8217; approach because reference counting is really the job of a memory manager. It does afford having your own memory manager though, and most applications don&#8217;t bother with that.</p>
<p>I did implement this last concept in my own Pool memory manager: in this implementation the memory block object also holds a corresponding block of &#8216;use counters&#8217; (which are in fact reference counters), so there is no need to individually destroy reference counter objects as they&#8217;re being destroyed along with the blocks that hold the memory for the objects being managed by the pool. The memory manager also returns it&#8217;s own specialized smart pointers.</p>
<p>Just wanting to give you some insight on various possible solutions. There are more, and the boost library offers quite a few variants if you&#8217;re interested.<br />
~Stefan63/www.codeproject.com
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=181&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/08/05/concepts-of-reference-counting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>Audio tools for your rescue</title>
		<link>http://gohelrakesh.wordpress.com/2010/07/27/audio-tools-for-your-rescue/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/07/27/audio-tools-for-your-rescue/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 03:59:05 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=177</guid>
		<description><![CDATA[It&#8217;s quite a necessary to check the output buffer before delivering it to kernel/hardware device. Generally, it&#8217;s a good idea to write all the sound buffer into a file before delivering to audio framework (for example ALSA) and copy that file and play it in PC. How can we play a raw data given to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=177&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s quite a necessary to check the output buffer before delivering it to kernel/hardware device. Generally, it&#8217;s a good idea to write all the sound buffer into a file before delivering to audio framework (for example ALSA) and copy that file and play it in PC. How can we play a raw data given to ALSA?</p>
<p>There is a really good tool out there in the market called <a href="http://www.goldwave.com">GoldWave</a>. It helps to play raw PCM, ISDN, ASCI data with respective bits and bit order of little and big endian. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=177&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/07/27/audio-tools-for-your-rescue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging a crahsed process in Android~~</title>
		<link>http://gohelrakesh.wordpress.com/2010/06/24/169/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/06/24/169/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 06:13:29 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=169</guid>
		<description><![CDATA[Many times it has happened to me that the process is crashing and there is not a single clue from the ddms log to go ahead. Then the kernel debugging comes to the resort to thrash out the frustration. Audio/Surface flingers, media server, service manager are the common place for such a nasty issue. dmesg [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=169&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many times it has happened to me that the process is crashing and there is not a single clue from the ddms log to go ahead. Then the kernel debugging comes to the resort to thrash out the frustration.</p>
<p>Audio/Surface flingers, media server, service manager are the common place for such a nasty issue. dmesg and strace are really good tools to debug such an issue.</p>
<p><a href="http://en.wikipedia.org/wiki/Dmesg">dmesg</a> prints the message buffer of the kernel. It has the list of diagnostic messages about what&#8217;s going on in the kernel if the user process does something wrong or something happens to the device drivers. It also contains the exception and faults of the system.</p>
<p>I first run the dmesg and check the last timed message before executing the problematic process. This is just to make it easy to look at the right place after the process is crashed. </p>
<p><a href="http://en.wikipedia.org/wiki/Strace">strace</a> is an awesome tool to have a detailed information about what a process is doing in the execution. What are the files being accessed, the system calls, forked processes and so on. </p>
<p>I usually run the following command to trace the process from the adb shell<br />
1. strace -ff -F -tt -s 200 -o /tmp/strace process-bin-path(/system/bin/mediaserver)<br />
-ff &gt; follow fork<br />
-F &gt; follow vfork<br />
-tt &gt; print time in micro seconds<br />
-s  &gt; buffer size of printing the message<br />
-o  &gt; file to generate the strace output<br />
Last is bin process full path, or you can use -p with process id. -p option can be used for Java application. (Use <a href="http://en.wikipedia.org/wiki/Ps_%28Unix%29">ps</a> command to show running processes)</p>
<p>Analyze the strace and dmesg output to solve an issue in a snap ^^</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=169&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/06/24/169/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>ALSA tutorial</title>
		<link>http://gohelrakesh.wordpress.com/2010/06/21/alsa-tutorial/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/06/21/alsa-tutorial/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 04:25:36 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
		
		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=167</guid>
		<description><![CDATA[This really amazing tutorial for ALSA API. It&#8217;s not only related to APIs, but also gives a basic audio mechanism.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=167&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This really amazing <a href="http://www.equalarea.com/paul/alsa-audio.html">tutorial</a> for ALSA API. </p>
<p>It&#8217;s not only related to APIs, but also gives a basic audio mechanism.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=167&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/06/21/alsa-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>Platform drivers @ Linux</title>
		<link>http://gohelrakesh.wordpress.com/2010/03/25/platform-drivers-linux/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/03/25/platform-drivers-linux/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 08:45:31 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=162</guid>
		<description><![CDATA[What the heck it is!!!! Linux Kernel 2.6 introduced us the unified driver model. In PC based environment, the devices are connected to different kind of buses like PCI, ISA etc. When a device is connected to a bus, it receives a unique identification which will be used for further communication with the CPU. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=162&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What the heck it is!!!!</p>
<p>Linux Kernel 2.6 introduced us the unified driver model. In PC based environment, the devices are connected to different kind of buses like PCI, ISA etc.  When a device is connected to a bus, it receives a unique identification which will be used for further communication with the CPU. The driver for the related device can be initialized/removed using the probe/remove method normally.</p>
<p>What about the embedded system? Mobile phones?</p>
<p>Mobile phones usually don&#8217;t have a sophisticated bus mechanism found in PC systems. So there must be a way to attach a device to the embedded system like Memory, input MIC, accelerometer etc.</p>
<p>The answer is Platform Drivers. They are similar to normal drivers, but the major difference is their working mechanism. They help the devices directly connect to CPU. The driver can be identified using the unique name within the system and it can be configured for interrupt. </p>
<p>A platform driver should be register and unregister using platform_driver_register() and platform_driver_unregister(). The machine file for a particular board can maintain an array of devices connected to CPU and add them using platform_add_devices().</p>
<p>When platform_add_devices() is called, it internally calls probe() function of each of the driver which helps the driver to initialize.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=162&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/03/25/platform-drivers-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenCore PV logging</title>
		<link>http://gohelrakesh.wordpress.com/2010/02/26/opencore-pv-logging/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/02/26/opencore-pv-logging/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 00:29:17 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Opencore]]></category>
		<category><![CDATA[Packet Video]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=159</guid>
		<description><![CDATA[After searching a lot over the Internet to capture the logs for Packet Video Multimedia framework, the following things are concluded, though I am still not able to capture the log in pvlogger.txt file. Most of the people mentioned to compile with ENABLE_PV_LOGGING=1 option compilation for Android platform with /sdcard/pvlogger.txt. It was also mentioned to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=159&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After searching a lot over the Internet to capture the logs for Packet Video Multimedia framework, the following things are concluded, though I am still not able to capture the log in pvlogger.txt file.</p>
<p>Most of the people mentioned to compile with ENABLE_PV_LOGGING=1 option compilation for Android platform with /sdcard/pvlogger.txt. It was also mentioned to write [Log Level] [Node to log]  in the pvlogger.txt. Under the heaven, I was still clueless to see a single log.</p>
<p>The most important part of source exists in external\opencore\android\thread_init.cpp, where it checks PVLOGGER_INST_LEVEL and then includes android_logger_config.h which has the logger class. Therefore, add &#8220;#define  PVLOGGER_INST_LEVEL 5&#8243;  in this file and create pvlogger.txt file with 8 in it. You can see the log. Enjoy!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=159&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/02/26/opencore-pv-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>Android&#8217;s system, data and cache images</title>
		<link>http://gohelrakesh.wordpress.com/2010/02/13/different-type-of-fs-used-to-flash-in-the-phone/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/02/13/different-type-of-fs-used-to-flash-in-the-phone/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 02:53:22 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=145</guid>
		<description><![CDATA[When the Android platform is compiled, it generally creates .img files for system, data and cache. It happens that in the phone these images are not directly downloaded directly, but the phone flash memories are formatted in different kind of file system i.e YAFFFS, RFS, XSR. It seems RFS, XSR are proprietary file systems, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=145&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When the Android platform is compiled, it generally creates .img files for system, data and cache.</p>
<p>It happens that in the phone these images are not directly downloaded directly, but the phone flash memories are formatted in different kind of file system i.e YAFFFS, RFS, XSR.  It seems RFS, XSR are proprietary file systems, but there is TinyBML which is open source and present in Boot loader as well in the Kernel.</p>
<p>So these .img images must be converted to the compatible file system format and then it should be downloaded.</p>
<p>Get more info on<br />
<a href="http://www.samsung.com/global/business/semiconductor/products/flash/Products_FAQs_RFS.html">RFS</a><br />
<a href="http://www.samsung.com/global/business/semiconductor/products/flash/Products_FAQs_TFS4.html">TFS4</a><br />
<a href="http://www.samsung.com/global/business/semiconductor/products/flash/Products_FAQs_XSR.html">XSR</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=145&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/02/13/different-type-of-fs-used-to-flash-in-the-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>Android src compiling process</title>
		<link>http://gohelrakesh.wordpress.com/2010/02/11/android-src-compiling-process/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/02/11/android-src-compiling-process/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 02:34:48 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=141</guid>
		<description><![CDATA[It&#8217;s first of Android kind though not a basic step for Android. Android build system is quite clean and easy to understand, but there is an obvious dependency to compile platform source and Kernel source. The OEM usually keeps their code including init.rc in the vendor directory. So when we compile the platform source, the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=141&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s first of Android kind though not a basic step for Android.</p>
<p>Android build system is quite clean and easy to understand, but there is an obvious dependency to compile platform source and Kernel source.</p>
<p>The OEM usually keeps their code including init.rc in the vendor directory. So when we compile the platform source, the product specific directory is created with root and system directory.</p>
<p>The root directory has init.rc which must be used in the ramdisk image in order to execute it when the root file system is mounted. </p>
<p>Because of this obvious dependency, we usually compile platform, kernel and boot in that order.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=141&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/02/11/android-src-compiling-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello again!!</title>
		<link>http://gohelrakesh.wordpress.com/2010/01/29/hello-again/</link>
		<comments>http://gohelrakesh.wordpress.com/2010/01/29/hello-again/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 01:03:43 +0000</pubDate>
		<dc:creator>Rocky</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://gohelrakesh.wordpress.com/?p=139</guid>
		<description><![CDATA[I have been off from the blogging for quite a long time and I feel the need to wake myself from hibernation and start the purposeful course. There have been many events happened and the things have been changed. The most big transition has been to go into the Android field. There was a sudden [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=139&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been off from the blogging for quite a long time and I feel the need to wake myself from hibernation and start the purposeful course. </p>
<p>There have been many events happened and the things have been changed. The most big transition has been to go into the Android field. There was a sudden deep into the Android last year because of the global demand for smart phones and people&#8217;s openness to accept the Google&#8217;s new platform. I would like to blog additionally for &#8220;the android&#8221; about the knowledge, opinions, tips etc. And, of course, the photography!!!</p>
<p>So see you soon~~</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gohelrakesh.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gohelrakesh.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gohelrakesh.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gohelrakesh.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gohelrakesh.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gohelrakesh.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gohelrakesh.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gohelrakesh.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gohelrakesh.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gohelrakesh.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gohelrakesh.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gohelrakesh.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gohelrakesh.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gohelrakesh.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gohelrakesh.wordpress.com&amp;blog=4312553&amp;post=139&amp;subd=gohelrakesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gohelrakesh.wordpress.com/2010/01/29/hello-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb640e9ee1683cd2739a4d983a53f6f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rocks</media:title>
		</media:content>
	</item>
	</channel>
</rss>
