From: Liam Girdwood <lrg@slimlogic.co.uk>
To: Richard Zhao <linuxzsc@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: ASOC: For SND_SOC_DAIFMT_IB_IF what is invert baseed on?
Date: Mon, 27 Oct 2008 10:46:19 +0000 [thread overview]
Message-ID: <1225104379.28382.104.camel@dell-desktop.example.com> (raw)
In-Reply-To: <4e090d470810262000t3d93538i3a71f5e5d042dd2f@mail.gmail.com>
On Mon, 2008-10-27 at 11:00 +0800, Richard Zhao wrote:
> 2008/10/27 Liam Girdwood <lrg@slimlogic.co.uk>:
> > On Sun, 2008-10-26 at 00:31 +0800, Richard Zhao wrote:
> >> Hi,
> >>
> >> include/sound/soc.h
> >> /*
> >> * DAI hardware signal inversions
> >> */
> >> #define SND_SOC_DAIFMT_NB_NF (0 << 8) /* normal bclk + frm */
> >> #define SND_SOC_DAIFMT_NB_IF (1 << 8) /* normal bclk
> >> + inv frm */
> >> #define SND_SOC_DAIFMT_IB_NF (2 << 8) /* invert bclk
> >> + nor frm */
> >> #define SND_SOC_DAIFMT_IB_IF (3 << 8) /* invert bclk + frm */
> >>
> >> What are frame cock and bit clock invert based on? I2S, PCM or some
> >> else bus protocols? Or just high level voltage or low level voltage?
> >>
> >
> > Generic logic levels (high/low voltage) that can apply to I2S and PCM
> > DAI's.
> >
> > Liam
> >
> >
> It's not bus protocol depended.
Correct, it does not depend on bus protocol. Although, it wont apply to
well defined protocols like AC97.
> For frame start, LRCLK normal is 1, invert is 0.
> For data valid, BCLK normal is 1, invert is 0
> Is that what you meant?
Not quite, the clock is simply inverted compared to it's normal level.
>
> But when wm8350 in i2s mode, it take SND_SOC_DAIFMT_NB_NF as LRCLK is
> 0 for frame start.
I2S frame start is the LRC going high (from low) to indicate left
channel PCM data is available after the next bit clock.
Do you have another issue that is causing you to check clock
inversions ? Fwiw the wm8350 audio is mature and known to be working for
some time.
Liam
next prev parent reply other threads:[~2008-10-27 10:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-25 16:31 ASOC: For SND_SOC_DAIFMT_IB_IF what is invert baseed on? Richard Zhao
2008-10-26 16:05 ` Liam Girdwood
2008-10-27 3:00 ` Richard Zhao
2008-10-27 10:46 ` Liam Girdwood [this message]
2008-10-27 11:26 ` Liam Girdwood
2008-10-27 13:24 ` Richard Zhao
2008-10-27 13:47 ` 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=1225104379.28382.104.camel@dell-desktop.example.com \
--to=lrg@slimlogic.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=linuxzsc@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.