alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Aisheng Dong <dongas86@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: ALSA hw sample rate conversion support
Date: Wed, 30 Mar 2011 15:27:59 +0200	[thread overview]
Message-ID: <4D932FDF.2020907@ladisch.de> (raw)
In-Reply-To: <AANLkTikT+O+D1wQCVa0vsOQyMJcEHP9+9JEfCm=q+bho@mail.gmail.com>

Aisheng Dong wrote:
> Does ALSA core support hw sample rate conversion now?

Yes; this has always been supported for chips like Emu10k1.

> I wonder if current ALSA core provide interface to support hw sample
> rate conversion?

In your driver, set the ..._CONTINUOUS flag in the rates field (see the
section "Hardware Description" in the doc), and in the hw_params
callback, program the SRC according to the selected rate.


Regards,
Clemens

  reply	other threads:[~2011-03-30 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-30 11:17 ALSA hw sample rate conversion support Aisheng Dong
2011-03-30 13:27 ` Clemens Ladisch [this message]
2011-03-30 15:32 ` Koul, Vinod
2011-03-30 19:09   ` Liam Girdwood
2011-03-31 17:45     ` Question about your DSP topic branch - hw param fix up query Patrick Lai
2011-03-31 21:35       ` Liam Girdwood

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=4D932FDF.2020907@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=dongas86@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).