Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Xuebing Wang <xbing6@gmail.com>
To: Nicolin Chen <nicoleotsuka@gmail.com>, alsa-devel@alsa-project.org
Cc: niranjan Patil <Niranjan.Patil@infocus.com>,
	Richard Jiang <Richard.Jiang@infocus.com>
Subject: Can iMX6SL supports different sampling rate for different SSIs?
Date: Tue, 17 Mar 2015 08:24:27 +0800	[thread overview]
Message-ID: <5507743B.5040808@gmail.com> (raw)

Nicolin,

Thank you very much for your always help.

I am using 3 SSIs (as I2S master mode) on iMX6SL for 3 different codec.

1) If I read iMX6SL reference manual correctly, I am deriving SSI 
sys_clock from pll4.

-- pll4 = Fref * (DIV_SELECT + NUM/DENOM)
    ** I am using a value of 786.432000 MHz

-- pll4_main_clk = pll4 / (PLL_AUDIOn: POST_DIV_SELECT) / 
CCM_ANALOG_MISC2n: MSB:LSB
    ** I am using a value of 196.608 MHz

-- SSI1_CLK_ROOT = pll4_main_clk / (CS1CDR: ssi1_clk_pred) / CS1CDR: 
ssi1_clk_podf
    ** I am using a value of 3.072 MHz (for 48k sampling rate)


2) As pll4_main_clk is global for all 3 SSIs, I think that we can *not* 
use 8k for ssi1 and 44.1k for ssi2, right? Because 8k and 44.1k requires 
different pll4 clock, right?
     -- However, as 48k, 32k, 16k, 8k can use same pll4, thus different 
SSI can use different sampling rate in this subset (48k, 32k, 16k, 8k).
     -- Same principle applies for 44.1k, 22.050, 11.025 subset of 
sampling rates.

Is my understanding correct?


-- 
Xuebing

             reply	other threads:[~2015-03-17  0:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-17  0:24 Xuebing Wang [this message]
2015-03-17  0:38 ` Can iMX6SL supports different sampling rate for different SSIs? Nicolin Chen
2015-03-17  0:45   ` Xuebing Wang
2015-03-19 23:13   ` Xuebing Wang

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=5507743B.5040808@gmail.com \
    --to=xbing6@gmail.com \
    --cc=Niranjan.Patil@infocus.com \
    --cc=Richard.Jiang@infocus.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=nicoleotsuka@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