LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/4] dt-bindings: sound: add rockchip i2s-tdm binding
Date: Thu, 16 Sep 2021 13:25:49 +0100 [thread overview]
Message-ID: <20210916122549.GF5048@sirena.org.uk> (raw)
In-Reply-To: <42974939.Tn3hggVSkZ@archbook>
[-- Attachment #1: Type: text/plain, Size: 1801 bytes --]
On Wed, Sep 15, 2021 at 07:06:14PM +0200, Nicolas Frattaroli wrote:
> On Mittwoch, 15. September 2021 16:10:12 CEST Mark Brown wrote:
> > Why is this not part of the normal bus format configuration? I don't
> > know what this is but it sounds a lot like I2S mode...
> This affects all TDM I2S modes, i.e. TDM Normal, TDM Left Justified and TDM
> Right Justified.
> Without tdm-fsync-half-frame, we purportedly get the following output in TDM
> Normal Mode (I2S Format):
> (ch0l = channel 0 left, ch0r = channel 0 right)
> fsync: _____________________________
> \____________________________
> sdi/sdo: ch0l, ch0r, ..., ch3l, ch3r, ch0l, ch0r, ...
>
> With tdm-fsync-half-frame, we purportedly get the following:
>
> fsync: _____________________________
> \____________________________
> sdi/sdo: ch0l, ch1l, ch2l, ch3l, ch0r, ch1r, ch2r, ch3r
> At least, according to the TRM. I do not have an oscilloscope to verify this
> myself, and in the following paragraphs, I will elaborate why this seems
> confusing to me.
fsync-half-frame is just normal TDM for I2S, the default mode is how DSP
mode normally operates. I don't know that there's any pressing need to
support mix'n'match here, you could but it should be through the TDM
configuration API.
> So to answer the question, it's not part of the bus format because it applies
> to three bus formats, and I'm completely out of my depth here and wouldn't
> define three separate bus formats based on my own speculation of how this
> works.
It is part of the bus format really. I suspect the hardware is the kind
that only really implements DSP mode and can just fake up a LRCLK for
I2S in order to interoperate.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2021-09-16 12:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-03 23:15 [PATCH v4 0/4] Rockchip I2S/TDM controller Nicolas Frattaroli
2021-09-03 23:15 ` [PATCH v4 1/4] ASoC: rockchip: add support for i2s-tdm controller Nicolas Frattaroli
2021-09-15 14:05 ` Mark Brown
2021-09-15 14:12 ` Mark Brown
2021-09-03 23:15 ` [PATCH v4 2/4] dt-bindings: sound: add rockchip i2s-tdm binding Nicolas Frattaroli
2021-09-08 12:08 ` Rob Herring
2021-09-15 14:10 ` Mark Brown
2021-09-15 17:06 ` Nicolas Frattaroli
2021-09-16 12:25 ` Mark Brown [this message]
2021-09-19 17:38 ` Nicolas Frattaroli
2021-09-20 11:49 ` Mark Brown
2021-09-03 23:15 ` [PATCH v4 3/4] arm64: dts: rockchip: add i2s1 on rk356x Nicolas Frattaroli
2021-09-03 23:15 ` [PATCH v4 4/4] arm64: dts: rockchip: add analog audio on Quartz64 Nicolas Frattaroli
2021-09-07 13:40 ` Chris Morgan
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=20210916122549.GF5048@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=devicetree@vger.kernel.org \
--cc=frattaroli.nicolas@gmail.com \
--cc=heiko@sntech.de \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh+dt@kernel.org \
--subject='Re: [PATCH v4 2/4] dt-bindings: sound: add rockchip i2s-tdm binding' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).