From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Timur Tabi <timur@freescale.com>
Cc: ALSA devel <alsa-devel@alsa-project.org>
Subject: Re: SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE
Date: Tue, 24 Jul 2007 09:03:05 +0200 [thread overview]
Message-ID: <1185260585.4926.1201714631@webmail.messagingengine.com> (raw)
In-Reply-To: <11505.27621-24387-105789712-1185218525@seznam.cz>
dustin@seznam.cz wrote:
> > What is the difference between SNDRV_PCM_FMTBIT_S24_LE and
> > SNDRV_PCM_FMTBIT_S24_3LE?
>
> The asound.h says S24_LE is stored in lower three bytes of four, whereas
> S24_3LE is stored in three bytes total.
To use a sample format with 24 bits stored in the upper three bytes of
four, use S32_LE. In that case, you have to call
"snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24)" in the PCM open
callback to tell ALSA that some of the lower bits aren't used.
HTH
Clemens
prev parent reply other threads:[~2007-07-24 7:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-23 18:44 SNDRV_PCM_FMTBIT_S24_LE vs. SNDRV_PCM_FMTBIT_S24_3LE Timur Tabi
2007-07-23 19:17 ` James Courtier-Dutton
2007-07-23 19:22 ` dustin
2007-07-24 7:03 ` Clemens Ladisch [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=1185260585.4926.1201714631@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-devel@alsa-project.org \
--cc=timur@freescale.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