All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Stefano D Angelo <daste@oneonline.it>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: trouble with constraint rules - Line6 TonePort UX1 USB driver
Date: Tue, 16 May 2006 12:24:18 +0200	[thread overview]
Message-ID: <s5hiro64699.wl%tiwai@suse.de> (raw)
In-Reply-To: <20060513124619.M13417@oneonline.it>

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

      reply	other threads:[~2006-05-16 10:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-13  9:46 trouble with constraint rules - Line6 TonePort UX1 USB driver Stefano D Angelo
2006-05-16 10:24 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hiro64699.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=daste@oneonline.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.