From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: trouble with constraint rules - Line6 TonePort UX1 USB driver Date: Tue, 16 May 2006 12:24:18 +0200 Message-ID: References: <20060513124619.M13417@oneonline.it> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20060513124619.M13417@oneonline.it> 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: Stefano D Angelo Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Sat, 13 May 2006 12:46:19 +0300, Stefano D Angelo wrote: > > Hi, > I'm having troubles setting hardware constraint rules. What I need to do is > setting the period size once I know the rate requested by the application. > The settings are these: 44100 Hz <-> 45 * 2 frames per period, 48000 Hz <-> 48 > * 2 frames per period. This won't work as expected, unfortunately. The ALSA configuration selection is basically a narrowing of the configuration space. A constraint can reduce the space, e.g. from a range [0,100] to [50,80]. But it can't move the range from [10,20] to [30,40]. In that case, I'd implement two different PCMs for both rates. Or, just start with 48k then extend to other rates. Takashi ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642