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


Groups > linux.kernel > #1320719 > unrolled thread

Re: [RFC V2 1/2] ASoC: img: Add binding document for Pistachio audio card

Started byDamien Horsley <Damien.Horsley@imgtec.com>
First post2016-01-28 15:20 +0100
Last post2016-01-29 00:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [RFC V2 1/2] ASoC: img: Add binding document for Pistachio audio  card Damien Horsley <Damien.Horsley@imgtec.com> - 2016-01-28 15:20 +0100
    Re: [RFC V2 1/2] ASoC: img: Add binding document for Pistachio audio  card Mark Brown <broonie@kernel.org> - 2016-01-29 00:30 +0100

#1320719 — Re: [RFC V2 1/2] ASoC: img: Add binding document for Pistachio audio card

FromDamien Horsley <Damien.Horsley@imgtec.com>
Date2016-01-28 15:20 +0100
SubjectRe: [RFC V2 1/2] ASoC: img: Add binding document for Pistachio audio card
Message-ID<qVVAu-4Ce-11@gated-at.bofh.it>
On 27/01/16 20:14, Mark Brown wrote:
> On Wed, Jan 27, 2016 at 05:13:09PM +0000, Damien Horsley wrote:
> 
>> audio_pll is referenced exclusively by the card device
> 
> That one *may* be plausible.
> 
>> i2s_mclk and dac_mclk can also be referenced by other devices. The i2s
>> out controller references i2s_mclk, and codec devices can reference
>> i2s_mclk/dac_mclk dependent on their system clock requirements
> 
> The clock API copes perfectly happily with this.
> 
>> without a reference to i2s_mclk and dac_mclk in the card driver, it
>> would not be possible to control the divisors and gates for these clocks
>> in the following cases:
> 
>> Simplistic codecs that do not have drivers
> 
>> Codec drivers that do not call clk_set_rate and clk_enable/clk_disable
> 
> Nonsense, if there is no driver or the driver doesn't do what you want
> then fix that.  Don't bodge things at the wrong abstraction layer, that
> just creates problems later on when someone comes along and does things
> properly or tries to use the device tree outside of your particular
> implementation (eg, when working with a differnet OS).
> 

Okay. If it can be expected that the codec driver will call these then
the references will not be required in the card driver for the codecs.

The i2s out controller also uses i2s_mclk, and calls clk_set_rate in
hw_params at present. Would creating a set_sysclk callback for the i2s
out controller, then calling snd_soc_dai_set_sysclk on the cpu dai in
addition to the codec dais in the card driver be the correct way to
manage this?

[toc] | [next] | [standalone]


#1321148

FromMark Brown <broonie@kernel.org>
Date2016-01-29 00:30 +0100
Message-ID<qW4aK-2gf-5@gated-at.bofh.it>
In reply to#1320719

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

On Thu, Jan 28, 2016 at 02:17:37PM +0000, Damien Horsley wrote:

> The i2s out controller also uses i2s_mclk, and calls clk_set_rate in
> hw_params at present. Would creating a set_sysclk callback for the i2s
> out controller, then calling snd_soc_dai_set_sysclk on the cpu dai in
> addition to the codec dais in the card driver be the correct way to
> manage this?

That'd be more normal, yes.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web