From: Takashi Iwai Subject: Re: Switch to dmix pure by default? Date: Wed, 19 Oct 2005 19:02:23 +0200 Message-ID: References: <20051019154420.GA14091@piware.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051019154420.GA14091@piware.de> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Martin Pitt Cc: ALSA Development List-Id: alsa-devel@alsa-project.org At Wed, 19 Oct 2005 17:44:20 +0200, Martin Pitt wrote: > > Hi ALSA developers! > > I'm Martin Pitt, one of Ubuntu's core developers, and I hacked a fair > bit around a better audio support in our latest release. We currently > use ALSA 1.0.9 (thus with dmix enabled by default) and use esd on top > of that since dmix pure still does not work on too many cards > (including the powermac driver on my iBook). Oh, it already works on 1.0.10rc2. > However, since esound sucks particularly in terms of A/V > synchronisation and has annoying bugs, and the whole concept of a > desktop sound daemon is more like a workaround than a sane piece in > the software stack, we would like to drop esound entirely and just use > ALSA by default in the future. I imagine that this is true for other > Linux distros as well. > > Now I have several questions: > > 1) Are you guys interested in reports about cards which do not work > with dmix (at least not with the default configuration)? Most of these cards are not dmixized just because not confirmed to work - or known as non-workable. So, it would be helpful to point out that which cards work with dmix indeed. > 2) Is there a document which describes dmix debugging, so that we can > already pre-process bug reports, can sort them out faster, make it > easier for you, and maybe even can help you with fixing? Heh, documentation is always a problem ;) There is no general method for debugging dmix, AFAIK. If you cannot play something, it's either a permission problem, a race among processes, or a remaining bug. In this case, running with strace would help a lot. If it's the problem of output quality, use "hw" instead of "dmix" with the same configuration (rate, period/buffer size, etc), and compare. If it's a latency problem, check the dmix period_size or period_time configuration. Last but not least, try the latest version of ALSA. Many bugs have been fixed since 1.0.9 release. > 3) As it appears to me, dmix is a pure software mixing plugin, thus > from the mere concept, it seems hardware agnostic to me. Why does it > fail on some hardware in the first place? dmix uses mmap, and assumes fine enough periods. So, it wouldn't work well the cards supporting only 2 periods, for example. This kind of limitation can be reduced by introducing a new timer interrupt syncing with PCM, but it's still under development (in other words, deep in my TODO list :) Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl