Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1263377

Re: [PATCH v1 1/5] ASoC: rockchip: i2s: Support to set the divider clock API

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v1 1/5] ASoC: rockchip: i2s: Support to set the divider clock API
Date 2015-11-05 17:20 +0100
Message-ID <qrvqx-ys-13@gated-at.bofh.it> (permalink)
References <qqyJQ-4pO-9@gated-at.bofh.it> <qqyJQ-4pO-23@gated-at.bofh.it> <qr7od-1E6-3@gated-at.bofh.it> <qrvqx-ys-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Nov 05, 2015 at 01:56:39PM +0800, Caesar Wang wrote:
> 在 2015年11月04日 22:34, Mark Brown 写道:

> >Same thing as your other very similar patch: why does this feature
> >require set_clkdiv()?

> Okay, you said "
> Why is this a requirement?  The clock to use as a source should normally
> be specified via set_sysclk() and any internal dividers calculated
> automatically by the driver.
> "

> I think we should divider settings for these different sample rates.

Sure, the question is how these things get set.

>  If the codec is master mode, we are *not* need this operate.
>  If the codec is slave mode, we are need to divider the MCLK to setting the different sample rates.
> (for example, the sample rates (8k, 48k) the clock is MCLK, the clock should be divider cpu ip )

> "dividers calculated automatically by the driver", that should be occured by codec(max98090
> ) driver, but the divider clocks (LRCK, SCLK) should need to set for cpu internal side.

So the CPU knows what rates it needs to set and what clocks it's getting
in, why can't it set the dividers autonomously.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v1 1/5] ASoC: rockchip: i2s: Support to set the divider clock API Caesar Wang <wxt@rock-chips.com> - 2015-11-03 02:40 +0100
  Re: [PATCH v1 1/5] ASoC: rockchip: i2s: Support to set the divider  clock API Mark Brown <broonie@kernel.org> - 2015-11-04 15:40 +0100
    Re: [PATCH v1 1/5] ASoC: rockchip: i2s: Support to set the divider  clock API Mark Brown <broonie@kernel.org> - 2015-11-05 17:20 +0100

csiph-web