From: Clemens Ladisch <clemens@ladisch.de>
To: chri <chripell@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: maximum tolerable sampling frequency difference for a driver
Date: Wed, 12 Nov 2008 16:35:44 +0100 [thread overview]
Message-ID: <491AF7D0.40806@ladisch.de> (raw)
In-Reply-To: <cabda6420811110817u42eafc74wfde36de113c98df1@mail.gmail.com>
chri wrote:
> Let's say that the driver cannot set the exact sampling frequency
> asked via hwparms ...
This never happens.
The driver tells the ALSA framework what frequencies it supports, either
by setting individual bits in the .rates field, or by installing a
constraint by calling snd_pcm_hw_constraint_list() or some other of the
constraint functions when the device is opened. ALSA then makes sure
that the driver always gets values in hw_params that meet these
constraints.
When an application requests a frequency that is not supported by the
device, it is the application that must decide whether the actual
frequency is acceptable.
HTH
Clemens
next prev parent reply other threads:[~2008-11-12 15:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 16:17 maximum tolerable sampling frequency difference for a driver chri
2008-11-12 11:43 ` Mark Brown
2008-11-12 15:35 ` Clemens Ladisch [this message]
2008-11-12 15:46 ` Mark Brown
2008-11-12 17:36 ` christian pellegrin
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=491AF7D0.40806@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=chripell@gmail.com \
/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.