All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: ext Mark Brown <broonie@sirena.org.uk>
Cc: "sakoman@gmail.com" <sakoman@gmail.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"Nikula Jarkko (Nokia-D/Helsinki)" <jarkko.nikula@nokia.com>
Subject: Re: [PATCH 1/6] ASoC: OMAP mcbsp: Add DSP_A support
Date: Wed, 8 Apr 2009 09:01:18 +0300	[thread overview]
Message-ID: <200904080901.18705.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <20090407221404.GA8465@sirena.org.uk>

On Wednesday 08 April 2009 01:14:05 ext Mark Brown wrote:
> On Tue, Apr 07, 2009 at 08:19:11AM +0300, Peter Ujfalusi wrote:
> > twl4030: Samples the data on falling edge, shifts data out (and changes
> > the FS) on rising edge
> > tlv320aic23: Samples the data on rising, shifts data out (and changes the
> > FS) on falling edge
>
> What ASoC expects for DSP mode is that the data can be sampled on either
> the first (mode B) or second (mode A) rising edge of BCLK after a rising
> edge of LRCLK.  This implies that the data should be driven on the
> falling edge of BCLK.
>
> The TLV320AIC23 can do either mode - the description on page 24 matches
> exactly.  Unless I'm missing something the inversion of the frame clock
> for osk5912 looks like a mistake.  I'd need to read the code a bit more
> closely to check I've not missed something but it looks like the codec
> driver is never actually setting LRP so it's got the mode the wrong way
> round for the one it supports.

I have been also wondering about the missing LRP handling, but I do not have 
access to osk5912 board neither to tlv320aic32 codec...

>
> The TWL4030 datasheet does not appear to be a model of clarity in this
> area but it looks awfully like mode A with an inverted bit clock (the
> data appears to be being driven rather than sampled on the rising edge
> but the first bit does start on the falling edge of the frame clock).

Well, in general there are lots of these kind of 'small' details missing from 
the documentation. One just have to try it out and see how it behaves ;)

> This means the Beagle code looks about right unless I'm misreading
> something.

Does it means that the DSP_A addition is also correct? I have it drawn to 
paper, how the configuration in omap-mcbsp used by the beagle in 4 channel 
mode would look like, and it does look 100% as the TDM mode described in the 
twl datasheet...


BTW: when the twl is in 4 channel mode, it has to be the master on the bus 
(small thing, since twl usually is the master on the bus anyway)

-- 
Péter

  reply	other threads:[~2009-04-08  6:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-06 12:19 [PATCH 0/6] ASoC: 4 channel support for twl4030 and omap-mcbsp Peter Ujfalusi
2009-04-06 12:19 ` [PATCH 1/6] ASoC: OMAP mcbsp: Add DSP_A support Peter Ujfalusi
2009-04-06 12:19   ` [PATCH 2/6] ASoC: OMAP mcbsp: Add 4 channel support Peter Ujfalusi
2009-04-06 12:19     ` [PATCH 3/6] ASoC: TWL4030: Enable all audio paths Peter Ujfalusi
2009-04-06 12:19       ` [PATCH 4/6] ASoC: TWL4030: Add 4 channel TDM support Peter Ujfalusi
2009-04-06 12:19         ` [PATCH 5/6] ASoC: TWL4030: Add constraints for 4 channel mode Peter Ujfalusi
2009-04-06 12:19           ` [PATCH 6/6] ASoC: Beagle: Add support " Peter Ujfalusi
2009-04-06 12:50             ` Mark Brown
2009-04-07  4:45               ` Peter Ujfalusi
2009-04-06 12:45       ` [PATCH 3/6] ASoC: TWL4030: Enable all audio paths Mark Brown
2009-04-07  4:59         ` Peter Ujfalusi
2009-04-07  9:45           ` Mark Brown
2009-04-07 10:30             ` Peter Ujfalusi
2009-04-07 21:02               ` Mark Brown
2009-04-06 12:22   ` [PATCH 1/6] ASoC: OMAP mcbsp: Add DSP_A support Mark Brown
2009-04-06 12:37     ` Peter Ujfalusi
2009-04-07  5:19       ` Peter Ujfalusi
2009-04-07 22:14         ` Mark Brown
2009-04-08  6:01           ` Peter Ujfalusi [this message]
2009-04-08  9:30             ` Mark Brown
2009-04-08  6:08           ` Jarkko Nikula
2009-04-08  9:28             ` Mark Brown
2009-04-07  5:45 ` [PATCH 0/6] ASoC: 4 channel support for twl4030 and omap-mcbsp Jarkko Nikula
2009-04-07  6:32   ` Peter Ujfalusi
2009-04-08  6:23 ` Jarkko Nikula
2009-04-08  9:53   ` 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=200904080901.18705.peter.ujfalusi@nokia.com \
    --to=peter.ujfalusi@nokia.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@sirena.org.uk \
    --cc=jarkko.nikula@nokia.com \
    --cc=sakoman@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.