From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH] ASoC: tlv320aic3x: Correct S24_3LE support
Date: Fri, 13 Dec 2013 16:31:40 +0200 [thread overview]
Message-ID: <52AB1A4C.3030907@ti.com> (raw)
In-Reply-To: <20131213141814.GG11044@sirena.org.uk>
On 12/13/2013 04:18 PM, Mark Brown wrote:
> On Fri, Dec 13, 2013 at 03:57:24PM +0200, Peter Ujfalusi wrote:
>> On 12/13/2013 03:34 PM, Mark Brown wrote:
>
>>> No, I'd expect the wire behaviour to be identical for any 24 bit samples
>>> (that's certainly what most drivers are written for). The memory layout
>>> differences shouldn't be visible to CODEC drivers.
>
>> We can not change the HW... for example:
>
> This isn't a hardware issue, this is a software issue.
>
>> twl4030/twl5030: 32 clock cycle/channel and 24 bits used out of that.
>
> These shouldn't be advertising themselves as supporting 24 bit format
> for ASoC then since they need 32 bit samples on the bus - this is
> actually pretty standard for things that say they support 32 bits, they
> usually just discard some of the lower bits but can cope with 32 bit on
> the interface.
>
> The reason everything says 24_LE right now is that we're being dumb
> about how we do the constraints and CPUs do care about the memory
> layout, not because the CODECs require the blank cycles. Of course this
> means that almost anything that does I2S should be able to advertise
> arbatrary sample size support which is one of the resons we ought to be
> doing stuff in the core to make this nicer.
Hrm, not sure about other SoCs but on OMAP most of the formats from memory
ends up on the I2S bus without any bits added/removed so the format actually
applies to the codec side as well since the data arriving to the codec will
have the same layout as it had in the memory.
But, yes some level of logic in the core might help.
>> tlv320aic3106: 24 clock cycle/channel for 24 bit audio.
>
> This is normal ASoC behaviour.
>
>> The wire behavior is different and this need to be known by the CPU side as well.
>
> This isn't the way to do it, though - if the TWL drivers were ever used
> with other CPUs (admittedly unlikely) they'd run into trouble.
The twl drivers (and the dac33) is doing the correct thing IMHO: reporting
S32_LE with set .sig_bits = 24. Just to let the user space know that thay
should not use the whole 32bit range.
--
Péter
next prev parent reply other threads:[~2013-12-13 14:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-13 12:58 [PATCH] ASoC: tlv320aic3x: Correct S24_3LE support Peter Ujfalusi
2013-12-13 13:04 ` Mark Brown
2013-12-13 13:29 ` Peter Ujfalusi
2013-12-13 13:34 ` Mark Brown
2013-12-13 13:41 ` Takashi Iwai
2013-12-13 13:50 ` Mark Brown
2013-12-13 13:57 ` Peter Ujfalusi
2013-12-13 14:18 ` Mark Brown
2013-12-13 14:31 ` Peter Ujfalusi [this message]
2013-12-13 18:29 ` Mark Brown
2013-12-13 13:42 ` Lars-Peter Clausen
2013-12-13 13:49 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2014-06-06 13:05 Peter Ujfalusi
2014-06-09 20:24 ` Mark Brown
2014-06-23 13:01 ` Peter Ujfalusi
2014-06-23 15:18 ` Mark Brown
2014-06-24 6:23 ` Peter Ujfalusi
2014-06-24 9:18 ` Mark Brown
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=52AB1A4C.3030907@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.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.