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


Groups > linux.kernel > #1315150

Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing output clock to codec

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing output clock to codec
Date 2016-01-22 18:20 +0100
Message-ID <qTNxp-77w-29@gated-at.bofh.it> (permalink)
References <qRd50-6Sf-5@gated-at.bofh.it> <qRd50-6Sf-7@gated-at.bofh.it> <qRgFz-W7-17@gated-at.bofh.it> <qRkpR-3pW-43@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 Fri, Jan 15, 2016 at 01:48:04PM -0800, Sonny Rao wrote:
> On Fri, Jan 15, 2016 at 9:46 AM, Mark Brown <broonie@kernel.org> wrote:

> > If the I2S block is providing a clock to the CODEC then that's what the
> > software should do so that the CODEC can gate and ungate the clock as
> > required.  This patch has the I2S block using a clock, not providing
> > one.

> From my read of the clock diagram for RK3288  there is a single clock
> signal (labeled "clk_i2s0") that comes out of a fractional divider,
> and it is split such that one path gets sent to the I2S block and the
> second path is sent to a mux after which that signal is sent to an
> external pin that goes to the codec.

> There are separate clock gates for the two paths: one for the I2S
> block and one after that mux before the external pin.

> I'm not sure if it's being modeled that way in the Linux code or not,
> but at least physically I don't think this clock signal actually goes
> through the I2S block before being sent to the codec.

That's not really the issue here, the issue is that it's not the I2S
controller that is consuming the clock so it should not be the I2S
controller driver that ensures that the clock is enabled.  The driver
that manages the clock should be the one that uses it, like I say this
means you should add the code to enable the clock to the CODEC driver if
the CODEC driver needs the clock enabled.

> Does that help clarify?

The problem here isn't a lack of clarity in the situation.

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


Thread

[PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing output clock to codec Caesar Wang <wxt@rock-chips.com> - 2016-01-15 15:00 +0100
  Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing  output clock to codec Mark Brown <broonie@kernel.org> - 2016-01-15 18:50 +0100
    Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing  output clock to codec Sonny Rao <sonnyrao@chromium.org> - 2016-01-15 22:50 +0100
      Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing  output clock to codec Mark Brown <broonie@kernel.org> - 2016-01-22 18:20 +0100
        Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing  output clock to codec Jianqun Xu <jay.xu@rock-chips.com> - 2016-01-25 02:20 +0100
          Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing output clock to codec Heiko Stübner <heiko@sntech.de> - 2016-01-26 11:00 +0100
            Re: [PATCH v3 3/9] ASoC: rockchip: i2s: add support for grabbing  output clock to codec Mark Brown <broonie@kernel.org> - 2016-01-27 13:50 +0100

csiph-web