From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Assaf Hoffman <hoffman@marvell.com>, alsa-devel@lists.sourceforge.net
Cc: Rita Shtern <rita@marvell.com>
Subject: Re: Question on PCM formats
Date: Thu, 19 Oct 2006 10:54:46 +0200 [thread overview]
Message-ID: <1161248086.15656.273708027@webmail.messagingengine.com> (raw)
In-Reply-To: <B9FFC3F97441D04093A504CEA31B7C41E91D94@msilexch01.marvell.com>
Assaf Hoffman wrote:
> I was looking in http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html
> and I have some questions regarding the PCM format paragraph:
>
> Q1: I think the sentence:
> "...but the sample is stored in low three bits."
> Should be
> "...but the sample is stored in low three bytes."
Yes, thanks.
> Q2: What is the meaning of "full range" in the sentence:
> "Some hardware does not support processing of full range"?
In that case, "full range" is the size of the samples as specified
by the sample format (in the example, 32 bits).
> Q3: I'm working with kernel 2.6.12.6 and I could not find the
> snd_pcm_hw_params_get_sbits() function there. In which kernel version
> can I find it?
This function is part of ALSA's user space API. It just returns the
value of the kernel's msbits field.
> Q4: Working with 2.6.12.6 kernel, how can I solve the problem of the
> ICE1712? How do I tell the stack where is the sound sample bit start
> inside the 32-bit frame?
When the number of valid bits (_get_sbits()) is not as large as the
number of bits of the sample format, the valid bits are always the most
significant bits. This means that applications can just ignore the
_get_sbits() function and pretend that the ICE1712 uses 32-bit samples.
There are special sample formats for hardware that aligns its data in
the least significant bits of a word, e.g., S24_xE is for 24-bit samples
in the lower three bytes of a 32-bit word.
HTH
Clemens
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2006-10-19 8:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-19 7:14 Question on PCM formats Assaf Hoffman
2006-10-19 8:54 ` Clemens Ladisch [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-10-19 9:40 Assaf Hoffman
2006-10-19 15:46 ` Clemens Ladisch
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=1161248086.15656.273708027@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-devel@lists.sourceforge.net \
--cc=hoffman@marvell.com \
--cc=rita@marvell.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.