From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: alsa-devel@alsa-project.org
Cc: "sakoman@gmail.com" <sakoman@gmail.com>,
ext Mark Brown <broonie@opensource.wolfsonmicro.com>,
"Nikula Jarkko (Nokia-D/Helsinki)" <jarkko.nikula@nokia.com>
Subject: Re: [PATCH 1/6] ASoC: OMAP mcbsp: Add DSP_A support
Date: Tue, 7 Apr 2009 08:19:11 +0300 [thread overview]
Message-ID: <200904070819.12019.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <200904061537.59067.peter.ujfalusi@nokia.com>
On Monday 06 April 2009 15:37:58 Ujfalusi Peter (Nokia-D/Tampere) wrote:
> On Monday 06 April 2009 15:22:33 ext Mark Brown wrote:
> > On Mon, Apr 06, 2009 at 03:19:27PM +0300, Peter Ujfalusi wrote:
> > > Add SND_SOC_DAIFMT_DSP_A support for omap-mcbsp.
> > > The configuration for DSP_A and DSP_B is the same.
> >
> > That doesn't sound right - the two formats do differ on the wire. In
> > mode B the MSB of data is transmitted along with the LRC pulse while in
> > mode A it is transmitted after the trailing edge of the LRC pulse.
>
> That is why I have asked previously about these... I'm still a bit
> confused, but at the end (I think) the configuration in omap-mcbsp is right
> for the twl4030:
> regs->srgr2 |= FPER(wlen * channels - 1);
> regs->srgr1 |= FWID(wlen * channels - 2);
> and
> /* 0-bit data delay */
> regs->rcr2 |= RDATDLY(0);
> regs->xcr2 |= XDATDLY(0);
>
> I'll revisit this.
I have taken a look about the DSP_A and DSP_B modes in omap-mcbsp.
The only board uses the DSP_B mode is the osk5912 with the tlv320aic23 codec.
I have downloaded the data sheet for the tlv320aic23 and I think that the DSP
mode in tlv320aic23 is identical to the TDM mode in twl4030 except for the
clock polarity
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
This difference is taken care with the SND_SOC_DAIFMT_NB_IF (osk5912) and
SND_SOC_DAIFMT_IB_NF (beagle).
I would say, that I'm still confused over this...
References:
tlv320aic23:
http://focus.ti.com/lit/ds/slws106d/slws106d.pdf
Page 28 (3-8)
twl4030:
http://focus.tij.co.jp/jp/lit/ug/swcu050b/swcu050b.pdf
Page 712 (TDM mode, Sample length 16 bits; Word length 16 bits)
--
Péter
next prev parent reply other threads:[~2009-04-07 5:19 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 [this message]
2009-04-07 22:14 ` Mark Brown
2009-04-08 6:01 ` Peter Ujfalusi
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=200904070819.12019.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--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.