<?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/"
	>

<channel>
	<title>Technicalities &#187; ASoC</title>
	<atom:link href="http://www.sirena.org.uk/log/tag/asoc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sirena.org.uk/log</link>
	<description>Just another random blog</description>
	<lastBuildDate>Fri, 16 Jul 2010 17:24:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ASoC updates in 2.6.34</title>
		<link>http://www.sirena.org.uk/log/2010/05/17/asoc-updates-in-2-6-34/</link>
		<comments>http://www.sirena.org.uk/log/2010/05/17/asoc-updates-in-2-6-34/#comments</comments>
		<pubDate>Mon, 17 May 2010 04:03:43 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ASoC]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=251</guid>
		<description><![CDATA[Linux 2.6.34 was released today. This contains a fairly substantial batch of ASoC updates, including: Support for turning CODEC biases off completely when idle, providing power savings for modern devices with ground referenced outputs where this can be done quickly at runtime without pops and clicks. Support for disabling physical writes to the device in [...]]]></description>
			<content:encoded><![CDATA[<p>Linux 2.6.34 was released today. This contains a fairly substantial batch of ASoC updates, including:</p>
<ul>
<li>Support for turning CODEC biases off completely when idle, providing power savings for modern devices with ground referenced outputs where this can be done quickly at runtime without pops and clicks.</li>
<li>Support for disabling physical writes to the device in the generic cache control code, allowing devices to be completely powered off when idle while still providing their control to userspace through the standard register interfaces.</li>
<li>Support for tuning the time ASoC waits before powering things down after playback has finished (in order to involve issues between tracks or similar) at runtime or from the machine driver.</li>
<li>New drivers for DA7210, DB1200 I2S and AC97 controllers, i.MX3x SSI ports, OMAP4 McPDM ports, S3C64xx AC97 controller, SH SIU (Sound Interface Unit), WM2000, WM8904, WM8912, WM8955, WM8978, and WM8994</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2010/05/17/asoc-updates-in-2-6-34/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASoC updates in 2.6.33</title>
		<link>http://www.sirena.org.uk/log/2010/02/25/asoc-updates-in-2-6-33/</link>
		<comments>http://www.sirena.org.uk/log/2010/02/25/asoc-updates-in-2-6-33/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 09:32:32 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[ASoC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=243</guid>
		<description><![CDATA[This has been another fairly quiet release for ASoC.  Aside from the addition of virtual mux support to DAPM and some further preparatory work for multi-CODEC cards the majority of changes have been driver updates, including: New CODEC drivers for ADS117x, AK4671, TLV320DAC33, TPA6130A2, WM8711 and WM8727. Support for the PCM port on Samsung SoCs. Substantial improvements to [...]]]></description>
			<content:encoded><![CDATA[<p>This has been another fairly quiet release for ASoC.  Aside from the addition of virtual mux support to DAPM and some further preparatory work for multi-CODEC cards the majority of changes have been driver updates, including:</p>
<ul>
<li> New CODEC drivers for ADS117x, AK4671, TLV320DAC33, TPA6130A2, WM8711 and WM8727.</li>
<li>Support for the PCM port on Samsung SoCs.</li>
<li> Substantial improvements to DMA performance and reliability on MPC5200 and DaVinci.</li>
<li> Capture support for the FSI port on SH.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2010/02/25/asoc-updates-in-2-6-33/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASoC updates in 2.6.32</title>
		<link>http://www.sirena.org.uk/log/2009/12/03/asoc-updates-in-2-6-3/</link>
		<comments>http://www.sirena.org.uk/log/2009/12/03/asoc-updates-in-2-6-3/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 10:02:43 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[ASoC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=78</guid>
		<description><![CDATA[Linux 2.6.32 was released overnight. This has been a fairly busy release for ASoC, with changes including: Redone power sequencing code, giving shorter power sequences which should reduce the effect of any artifacts that exist. Reporting of power management decisions via debugfs, enabling much easier diagnosis of path setup problems. Beginning of work to factor [...]]]></description>
			<content:encoded><![CDATA[<p>Linux 2.6.32 was released overnight. This has been a fairly busy release for ASoC, with changes including:</p>
<ul>
<li><a href="http://www.sirena.org.uk/log/2009/06/08/dapm-power-sequence-optimisation/">Redone power sequencing code</a>, giving shorter power sequences which<br />
should reduce the effect of any artifacts that exist.</li>
<li>Reporting of power management decisions via debugfs, enabling much<br />
easier diagnosis of path setup problems.</li>
<li>Beginning of work to factor out the register access and caching code<br />
from the individual CODEC drivers into a shared file.  This needs to<br />
be rolled out over more CODEC drivers.</li>
<li>New CODEC drivers for AD1836, AK4642, MAX9877, WM8523, WM8776, WM8961, WM8974 and WM8993</li>
<li>New CPU support for multi-channel Blackfin SPORT, DaVinci McASP, i.MX2x SSI, and OMAP 1510 McBSP.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2009/12/03/asoc-updates-in-2-6-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASoC updates in 2.6.31</title>
		<link>http://www.sirena.org.uk/log/2009/09/10/asoc-updates-in-2-6-31/</link>
		<comments>http://www.sirena.org.uk/log/2009/09/10/asoc-updates-in-2-6-31/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 10:33:07 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ASoC]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=138</guid>
		<description><![CDATA[Linux 2.6.31 was released today. This was a fairly busy release for the ASoC subsystem, with updates including: DAPM supply widget, for automatically managing things like charge pumps and gateable clocks which may be used by more than one widget. Core support for setting up constraints for symmetric sample rates (for systems with a shared [...]]]></description>
			<content:encoded><![CDATA[<p>Linux 2.6.31 was released today. This was a fairly busy release for the ASoC subsystem, with updates including:</p>
<ul>
<li>DAPM supply widget, for automatically managing things like charge pumps and gateable clocks which may be used by more than one widget.</li>
<li>Core support for setting up constraints for symmetric sample rates (for systems with a shared LRCLK).</li>
<li>Support for a range of new CODECs: STAC9766, WM8940, WM8960, WM8988, and WM9081</li>
<li>New CPU support too: <a href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPC5200">MPC5200</a> AC97 and the I2S interface of the <a href="http://www.stretchinc.com/products/s6000.php">Stretch S6000</a>.</li>
</ul>
<p>Plus lots of updates and fixes to existing code, especially to the OMAP and TWL4030 drivers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2009/09/10/asoc-updates-in-2-6-31/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In-kernel audio mixing</title>
		<link>http://www.sirena.org.uk/log/2009/08/15/in-kernel-audio-mixing/</link>
		<comments>http://www.sirena.org.uk/log/2009/08/15/in-kernel-audio-mixing/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 17:31:16 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[ASoC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[DSP]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[PulseAudio]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=171</guid>
		<description><![CDATA[Ever since PulseAudio started to be deployed by distributions the most common complaint I&#8217;ve seen about ALSA is that unlike current versions of OSS it doesn&#8217;t provide mixing of audio from multiple applications inside the kernel. Of course what it really comes down to is that people want the system to transparently allow multiple applications [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since <a href="http://www.pulseaudio.org/">PulseAudio</a> started to be deployed by distributions the most common complaint I&#8217;ve seen about ALSA is that unlike current versions of <a href="http://www.opensound.com/">OSS</a> it doesn&#8217;t provide mixing of audio from multiple applications inside the kernel. Of course what it really comes down to is that people want the system to transparently allow multiple applications to play audio simultaneously.</p>
<p>The reason <a href="http://alsa-project.org/">ALSA</a> does things the way it does is that the ALSA APIs that applications interact with are actually implemented by a library. This library provides a plugin based way of defining sound cards, one of the options for which is that the audio can be routed to or from some hardware, but sound can also be routed to other places like networked speakers. This architecture also allows plugins to provide signal processing &#8211; mixing is the example most people notice but things like soft volume controls (not all sound hardware provides volume control) or EQ are also possible.</p>
<p>This could all be implemented in kernel space but there&#8217;s some serious drawbacks in doing so. There are some substantial restrictions on what kernel space code is allowed to do, one of the most relevant being the fact that floating point instructions can&#8217;t be used. It&#8217;s harder to develop kernel code, if for no other reason than the fact that kernel code can crash the system. The main benefit that people expect from pushing things into the kernel is performance but with the facilities available in Linux there&#8217;s no real reason why performance would be better with a kernel mode implementation, kernel and user threads are both scheduled together and shared memory is available.</p>
<p>So why are people running into issues with PulseAudio? Obviously some of them are just bugs in PulseAudio &#8211; the much wider deployment that cones with being used as standard in distributions means much wider testing &#8211; but that&#8217;s not all of it, especially now PulseAudio has been in distributions for a while. The other major source of issues is that due to the need to adapt to the different needs of the applications that it is mixing together PulseAudio is a very demanding user of drivers. This means that switching to PulseAudio can expose bugs in the drivers, often bugs that have existed for years. There&#8217;s a natural tendency to blame PluseAudio when this happens but the fixes that are needed are in the drivers.</p>
<p>None of this is terribly helpful if you&#8217;ve been bitten by one of the bugs of course, but hopefully it goes some way towards explaining why this implementation has been chosen and why there have been problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2009/08/15/in-kernel-audio-mixing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASoC changes in 2.6.30</title>
		<link>http://www.sirena.org.uk/log/2009/06/10/asoc-changes-in-2630/</link>
		<comments>http://www.sirena.org.uk/log/2009/06/10/asoc-changes-in-2630/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 08:31:00 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[ASoC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[DAPM]]></category>
		<category><![CDATA[jack]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=174</guid>
		<description><![CDATA[Linux 2.6.30 was released today. This has been a fairly quiet release from the ASoC point of view with no substantial API changes for drivers but there&#8217;s a few new interfaces which people may find helpful. Highlights include: A simple wrapper for the standard ALSA jack detection interface. This helps makes jacks a bit easier [...]]]></description>
			<content:encoded><![CDATA[<p>Linux 2.6.30 was released today. This has been a fairly quiet release from the ASoC point of view with no substantial API changes for drivers but there&#8217;s a few new interfaces which people may find helpful. Highlights include:</p>
<ul>
<li>A simple wrapper for the standard ALSA jack detection interface. This helps makes jacks a bit easier to use in a multi-component system, providing a framework for using multiple jack detection methods on a single jack (eg, for both headphone and microphone) and automatic integration with DAPM, allowing output paths to be powered up only when a jack is present. See <a href="http://git.kernel.org/?p=linux/kernel/git/broonie/sound-2.6.git;a=blob;f=sound/soc/soc-jack.c;h=28346fb2e70c08033158920f4ae7a35032239762;hb=for-2.6.30">sound/soc/soc-jack.c</a>.</li>
<li>A new SND_SOC_DAPM_PIN_SWITCH helper for machines exposing control of DAPM pins to user applications.</li>
<li>More conversion of ASoC CODEC drivers to use the new device model integrated driver registration methods.</li>
<li>TI DaVinci support now works in mainline, no out of tree patches are required for the DMA code.</li>
</ul>
<p>plus a selection of new drivers and enhancements to existing drivers..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2009/06/10/asoc-changes-in-2630/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DAPM power sequence optimisation</title>
		<link>http://www.sirena.org.uk/log/2009/06/08/dapm-power-sequence-optimisation/</link>
		<comments>http://www.sirena.org.uk/log/2009/06/08/dapm-power-sequence-optimisation/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 18:08:26 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[ASoC]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[DAPM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=178</guid>
		<description><![CDATA[I recently implemented some enhancements to DAPM, the part of ASoC which minimizes the power consumption of the embedded audio subsystem by keeping any unused components powered off while avoiding audible artifacts as the power changes. Prior to these changes DAPM used to change the power for each component with an individual register write which [...]]]></description>
			<content:encoded><![CDATA[<p>I recently implemented some enhancements to DAPM, the part of ASoC which minimizes the power consumption of the embedded audio subsystem by keeping any unused components powered off while avoiding audible artifacts as the power changes. Prior to these changes DAPM used to change the power for each component with an individual register write which with many systems would result in a lot of repeated writes to the same register. This can get noticeable on slow or heavily contended buses, especially around resume. With these changes DAPM will try to minimize the number of register writes it does while still trying to avoid audio artifacts. These changes are currently available from the dapm branch of <a href="http://git.kernel.org/?p=linux/kernel/git/broonie/sound-2.6.git;a=summary">my ASoC git repository</a> and should make their way into 2.6.32. Once they are merged the dapm branch is likely to be removed.</p>
<p>As with any substantial change in the power sequencing there is a risk that there may have been some performance regressions on some systems &#8211; my biggest concern is that some thing were being helped by the delays introduced by the repeated register writes and may require special handling to fix. My hope is that this won&#8217;t happen if anything it should fix some problems by ensuring that both left and right channels of stereo paths get powered up together without wide testing that&#8217;s hard to guarantee. Any testing that you can do on your systems would be greatly appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2009/06/08/dapm-power-sequence-optimisation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Release day churn</title>
		<link>http://www.sirena.org.uk/log/2008/07/15/release-day-churn/</link>
		<comments>http://www.sirena.org.uk/log/2008/07/15/release-day-churn/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 20:03:59 +0000</pubDate>
		<dc:creator>Mark Brown</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[ASoC]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://www.sirena.org.uk/log/?p=84</guid>
		<description><![CDATA[The 2.6.27 pull request for ALSA was something of a surprise to read &#8211; a large proportion of the changes in there are for ASoC. Not what I was expecting given how many ASoC changes there are still to be merged, but it&#8217;s nice to see, especially given the general problems with embedded users contributing [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://marc.info/?l=linux-kernel&amp;m=121602662531525&amp;w=2">2.6.27 pull request for ALSA</a> was something of a surprise to read &#8211; a large proportion of the changes in there are for <a href="http://opensource.wolfsonmicro.com/node/6">ASoC</a>. Not what I was expecting given how many ASoC changes there are still to be merged, but it&#8217;s nice to see, especially given the general problems with embedded users contributing code back.</p>
<p>In other kernel release news, I&#8217;m glad to see some of my other work is <a href="http://mikearthur.co.uk/2008/07/two-busy-months/">making people happy</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirena.org.uk/log/2008/07/15/release-day-churn/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
