From: Takashi Iwai Subject: Re: pcm hw parameters? Date: Mon, 27 Mar 2006 17:37:40 +0200 Message-ID: References: <1143206387.28247.22.camel@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx1.suse.de (mail.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 8F3ED1DF for ; Mon, 27 Mar 2006 17:37:51 +0200 (MEST) In-Reply-To: <1143206387.28247.22.camel@localhost> 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: Johannes Berg Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 24 Mar 2006 14:19:47 +0100, Johannes Berg wrote: > > Hi, > > Quick question: When are the pcm hardware parameters surfaced to > userspace? Are those the ones I register in snd_pcm_new? > > Thing is -- I have the problem that in theory, my codec can support > anything from 8KHz to 96KHz but when turning on digital output, it needs > to be restricted to the ones the digital output is ok with. It's hard to restrict parameters on demands (although theoretically it's possible). We usually provide two different devices, one for the normal i/o and another for the digital i/o, to avoid such conflicts. The apps that send to the digital data would choose "spdif" or whatever appropriate PCM name, and the system will reroute it. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642