From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: alsa-devel@alsa-project.org
Cc: ext Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH] ASoC: TWL4030: Fix 24bit support
Date: Tue, 14 Dec 2010 14:11:00 +0200 [thread overview]
Message-ID: <201012141411.00740.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <20101214114914.GB13649@rakim.wolfsonmicro.main>
On Tuesday 14 December 2010 13:49:14 ext Mark Brown wrote:
> On Tue, Dec 14, 2010 at 01:45:29PM +0200, Peter Ujfalusi wrote:
> > twl4030 series of codecs supports S32_LE with msbits=24.
> > Replace the S24_LE with S32_LE format, and add constraint
> > for 24msbit in case of 32 S32_LE format.
> >
> > Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
>
> There's no real need to add the constraint for 24 bit - the CODEC will
> quite happily consume 32 bit data, it'll just ignore the 8 LSB. We
> should probably do something more sensible with the format stuff, it's
> never been a terribly pressing issue though.
AFAIK this constraint is for applications to know, that only the 24 bit MSB is
valid in S32_LE (for example the ice1712 also sets this constraint to let
application know).
The datasheet of twl4030 series states, that it supports this coding, so IMHO it
does not hurt to let applications know this fact.
But yeah, it will discard the the 8 bit LSB for sure.
--
Péter
next prev parent reply other threads:[~2010-12-14 12:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 11:45 [PATCH] ASoC: TWL4030: Fix 24bit support Peter Ujfalusi
2010-12-14 11:49 ` Mark Brown
2010-12-14 12:11 ` Peter Ujfalusi [this message]
2010-12-14 12:35 ` Mark Brown
2010-12-14 20:05 ` 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=201012141411.00740.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
/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.