All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: Requiring the same sample rate for playback and record?
Date: Fri, 25 Jul 2008 14:55:32 -0500	[thread overview]
Message-ID: <488A2FB4.7040202@freescale.com> (raw)
In-Reply-To: <s5h7ibk3joa.wl%tiwai@suse.de>

Takashi Iwai wrote:

> Then you can call like:
> 
>      snd_pcm_hw_constraint_minmax(substream->runtime,
> 		SNDRV_PCM_HW_PARAM_RATE, fixed_rate, fixed_rate);

Ok, I think I got this working.  However, I'm not sure how to handle the sample
size.  I have this:

	struct snd_pcm_runtime *first_runtime =
		ssi_private->first_stream->runtime;

	snd_pcm_hw_constraint_minmax(substream->runtime,
		SNDRV_PCM_HW_PARAM_SAMPLE_BITS,
		first_runtime->sample_bits, first_runtime->sample_bits);

Is SNDRV_PCM_HW_PARAM_SAMPLE_BITS for the logical or physical width?  That is,
if my first stream is playing S24_BE samples, do I restrict the second stream to
24 bits or 32 bits?

-- 
Timur Tabi
Linux kernel developer at Freescale

      reply	other threads:[~2008-07-25 19:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-20 19:08 Requiring the same sample rate for playback and record? Timur Tabi
2008-06-23 11:00 ` Takashi Iwai
2008-06-23 12:08   ` Timur Tabi
2008-06-23 12:10     ` Takashi Iwai
2008-07-14 21:25   ` Timur Tabi
2008-07-16 10:59     ` Takashi Iwai
2008-07-16 15:11       ` Timur Tabi
2008-07-16 15:17         ` Liam Girdwood
2008-07-16 15:24         ` Takashi Iwai
2008-07-16 19:19       ` Timur Tabi
2008-07-17 10:10         ` Takashi Iwai
2008-07-25 19:55           ` Timur Tabi [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=488A2FB4.7040202@freescale.com \
    --to=timur@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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.