From: Vipin Kumar <vipin.kumar@st.com>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: 24 bit sample embedded in 32 bits
Date: Mon, 2 Jul 2012 16:41:15 +0530 [thread overview]
Message-ID: <4FF181D3.6030208@st.com> (raw)
In-Reply-To: <4FF17F81.8070300@ladisch.de>
On 7/2/2012 4:31 PM, Clemens Ladisch wrote:
> Vipin Kumar wrote:
>> I assume that the alsa framework expects the 24 bit sample data to be
>> packed one after the other.
>
> ALSA expects the sample data to conform to whatever sample format has
> been configured.
>
> Most hardware uses 32-bit sample words in memory to make the
> interface to the PCI bus easier.
>
>> I need to find a way to tell the framework that the data is 24bit
>> but is embedded in 32 bit.
>
> (HH = highest byte, LL = lowest byte, MM = middle byte)
>
> LL MM HH SNDRV_PCM_FORMAT_S24_3LE
> xx LL MM HH SNDRV_PCM_FORMAT_S32_LE
> LL MM HH xx SNDRV_PCM_FORMAT_S24_LE
> HH MM LL SNDRV_PCM_FORMAT_S24_3BE
> HH MM LL xx SNDRV_PCM_FORMAT_S32_BE
> xx HH MM LL SNDRV_PCM_FORMAT_S24_BE
>
Thanks Clemens, Jaroslav,
This was very helpful..I would try more cases and come back for more
doubts if there are any :)
Regards
Vipin
>
> Regards,
> Clemens
> .
>
next prev parent reply other threads:[~2012-07-02 11:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-02 10:11 24 bit sample embedded in 32 bits Vipin Kumar
2012-07-02 11:01 ` Clemens Ladisch
2012-07-02 11:11 ` Vipin Kumar [this message]
2012-07-02 11:02 ` Jaroslav Kysela
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=4FF181D3.6030208@st.com \
--to=vipin.kumar@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=clemens@ladisch.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox