From: Clemens Ladisch <clemens@ladisch.de>
To: thomas chen <tchen61@gmail.com>, alsa-devel@alsa-project.org
Subject: Re: I2S frame configuration
Date: Mon, 08 Dec 2014 18:01:32 +0100 [thread overview]
Message-ID: <5485D96C.3020900@ladisch.de> (raw)
In-Reply-To: <5485C5CA.8030402@gmail.com>
thomas chen wrote:
> I am working on a ALSA interface to a particular codec over I2S
>
> the audio stream format is a bit peculiar...
>
> there are 24 BCLK cycle between transition of FSYNC... howver, there are only 16 bit that are valid
>
> bit 0: ignore
> bit 1-16: valid pcm data (MSB....LSB)
> bit 17-23: ignore
This is the 'original' I²S format. The format where the sample begins
with the 1st BCLK usually is called left-justified (and uses the
opposite FSYNC polarity).
Having ignored bits is common. (Typically, there are 32 BCLK cycles per
sample.)
In ASoC, this would be SND_SOC_DAIFMT_I2S and SND_SOC_DAIFMT_LEFT_J.
Regards,
Clemens
next prev parent reply other threads:[~2014-12-08 17:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-08 15:37 I2S frame configuration thomas chen
2014-12-08 17:01 ` Clemens Ladisch [this message]
2014-12-08 18:03 ` thomas chen
2014-12-08 19:37 ` Lars-Peter Clausen
2014-12-09 13:51 ` thomas chen
2014-12-09 15:12 ` Lars-Peter Clausen
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=5485D96C.3020900@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=tchen61@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox