From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Alexander Shiyan <shc_work@mail.ru>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lgirdwood@gmail.com>,
Xiubo Li <Xiubo.Lee@gmail.com>, Timur Tabi <timur@tabi.org>,
Takashi Iwai <tiwai@suse.com>, Mark Brown <broonie@kernel.org>,
Fabio Estevam <fabio.estevam@nxp.com>
Subject: Re: [PATCH 2/2] ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode
Date: Tue, 28 Jun 2016 11:20:54 -0700 [thread overview]
Message-ID: <20160628182053.GA21603@Asurada-Nvidia> (raw)
In-Reply-To: <1466830762-31646-1-git-send-email-shc_work@mail.ru>
On Sat, Jun 25, 2016 at 07:59:22AM +0300, Alexander Shiyan wrote:
> The i.MX51 datasheet says:
> Chapter 56.1.2.4 I2S Mode
> ...
> When I2S modes are entered (I2S master (01) or I2S slave (10)),
> the following settings are recommended:
> ...
> - TX Frame Rate should be 2 i.e. (STCCR[12:8] = 1)
> - RX Frame Rate should be 2 i.e. (SRCCR[12:8] = 1)
>
> Chapter 56.3.3.12 SSI Transmit and Receive Clock Control Registers (STCCR & SRCCR)
> ...
> Bits 12-8 DC4-DC0
> Frame Rate Divider Control. These bits are used to control the divide ratio
> for the programmable frame rate dividers. The divide ratio works on the word
> clock. In Normal mode, this ratio determines the word transfer rate.
> In Network mode, this ratio sets the number of words per frame. The divide
> ratio ranges from 1 to 32 in Normal mode and from 2 to 32 in Network mode.
> In Normal mode, a divide ratio of 1 (DC=00000) provides continuous periodic
> data word transfer. A bit-length frame sync must be used in this case.
>
> Function fsl_ssi_hw_params() setup Normal mode for MONO output,
> so with DC=0, SSI enters to continuous periodic data word transfer.
> To fix this, setup DC for any I2S mode.
The change looks fine and didn't show any problem when I tested it.
But I am wondering what's the failed user case here so we need this
patch to fix? (The mono playback works without this patch as well.)
Thanks
Nicolin
next prev parent reply other threads:[~2016-06-28 18:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-25 4:59 [PATCH 2/2] ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode Alexander Shiyan
2016-06-28 18:20 ` Nicolin Chen [this message]
[not found] ` <1467143972.433375523@f318.i.mail.ru>
2016-06-28 22:06 ` Nicolin Chen
2016-06-29 7:52 ` Alexander Shiyan
2016-06-29 18:26 ` Nicolin Chen
[not found] ` <1467226224.156244316@f360.i.mail.ru>
2016-06-29 20:56 ` Nicolin Chen
2016-06-28 22:02 ` Nicolin Chen
2016-06-29 18:20 ` Applied "ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode" to the asoc tree 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=20160628182053.GA21603@Asurada-Nvidia \
--to=nicoleotsuka@gmail.com \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=lgirdwood@gmail.com \
--cc=shc_work@mail.ru \
--cc=timur@tabi.org \
--cc=tiwai@suse.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;
as well as URLs for NNTP newsgroup(s).