From: Takashi Iwai Subject: Re: [alsa-lib patch] New @func - pcm_args_by_class Date: Thu, 29 Sep 2005 13:47:04 +0200 Message-ID: References: <20050921205834.GA20158@sashak.softier1.local> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20050921205834.GA20158@sashak.softier1.local> 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: Sasha Khapyorsky Cc: perex@suse.cz, alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 21 Sep 2005 23:58:34 +0300, Sasha Khapyorsky wrote: > > Takashi, > > This patch adds new run-time function 'pcm_args_by_class' for using in > configuration files. This returns "CARD=N,DEV=M" formatted string for > correspondent pcm device specified by class value and (absolute) index. > In other words this helps to represent pcm devices as plain (card, dev > independent) list for each pcm class. > > Then we could define 'phoneline/modem' devices like this (example is not > tested): (snip) > Here "modem:0" will refer first available modem pcm device ("hw:1,0" in > most cases), etc.. This is a neat idea. > With today's configuration card,device should be specified explicitly > (modem:1,0), and default (modem:0,0) is useless and refers pure audio pcm. > > Of course the same could be applied for other pcm classes and then any > order of hw pcm devices could be mapped by those purposes (classes) > properly. > > Ideas? I think this scheme is nice for the device, only single such is likely on the machine. The PCM can be multiple, so better not to change the assignment dynamically, IMO. Anyway, the patch was applied to CVS now. Thanks. Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl