All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ASoC: simple-card/davinci-mcasp: System clock configuration support
@ 2016-02-15 14:11 Peter Ujfalusi
  2016-02-15 14:11 ` [PATCH 1/4] ASoC: davinci-mcasp: Use defines for clkdiv IDs via DT binding header Peter Ujfalusi
                   ` (3 more replies)
  0 siblings, 4 replies; 30+ messages in thread
From: Peter Ujfalusi @ 2016-02-15 14:11 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, Jyri Sarha

Hi,

Currently davinci-mcasp is hardwired for two configuration regarding to reference
clock:
McASP is master: AHCLKX is selected as source of the reference clock used to
		 generate the FS and BCLK
McASP is slave: AHCLKX is selected as output and the default AUXCLK is routed
		there.

This works in most of the boards, but not all configuration can be supported
with this limitation.
McASP uses it's internal AUXCLK as a reference clock. AUXCLK can be sourced from
the external AHCLKX pin or from internal functional clock. If the board uses
McASP as master and AHCLKX is not receiving clock, we need to be able to select
the internal clock source to be able to generate the FS and BCLK.

Since we try to move all of our boards to simple-card instead of the davinci-evm
custom machine driver, I have included Jyri's two patch to add the needed support
for it to be able to select clocks and directions.

I remember the discussion regarding to clock IDs, and to try to move to common
clock framework. I have taken a look at that path and I'm not convinced that by
trying to add ASoC level common clock handling will simplify or makes things
cleaner/simpler.

Regards,
Peter
---
Jyri Sarha (2):
  ASoC: simple-card: Add system-clock-direction DT parameter to dai
    nodes
  ASoC: simple-card: Support for selecting system clocks by ID

Peter Ujfalusi (2):
  ASoC: davinci-mcasp: Use defines for clkdiv IDs via DT binding header
  ASoC: davinci-mcasp: Improve the sysclk selection

 .../devicetree/bindings/sound/simple-card.txt      |  3 ++
 include/dt-bindings/sound/ti-mcasp.h               | 13 +++++++
 include/sound/simple_card.h                        |  2 ++
 sound/soc/davinci/davinci-mcasp.c                  | 42 ++++++++++++++++------
 sound/soc/generic/simple-card.c                    | 17 ++++++++-
 5 files changed, 66 insertions(+), 11 deletions(-)
 create mode 100644 include/dt-bindings/sound/ti-mcasp.h

-- 
2.7.1

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2016-04-22 12:08 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 14:11 [PATCH 0/4] ASoC: simple-card/davinci-mcasp: System clock configuration support Peter Ujfalusi
2016-02-15 14:11 ` [PATCH 1/4] ASoC: davinci-mcasp: Use defines for clkdiv IDs via DT binding header Peter Ujfalusi
2016-02-15 14:11 ` [PATCH 2/4] ASoC: davinci-mcasp: Improve the sysclk selection Peter Ujfalusi
2016-02-15 14:11 ` [PATCH 3/4] ASoC: simple-card: Add system-clock-direction DT parameter to dai nodes Peter Ujfalusi
2016-02-15 14:11 ` [PATCH 4/4] ASoC: simple-card: Support for selecting system clocks by ID Peter Ujfalusi
2016-02-15 15:26   ` Mark Brown
2016-02-16  9:46     ` Peter Ujfalusi
2016-02-16  9:46       ` Peter Ujfalusi
2016-02-16 13:42       ` Mark Brown
2016-02-16 19:13         ` Michael Turquette
2016-02-16 19:13           ` Michael Turquette
2016-02-17  8:13           ` Peter Ujfalusi
2016-02-17  8:13             ` Peter Ujfalusi
2016-02-17 12:07             ` Mark Brown
2016-02-17 19:52               ` Peter Ujfalusi
2016-02-17 19:52                 ` Peter Ujfalusi
2016-04-18 15:50                 ` [alsa-devel] " Peter Ujfalusi
2016-04-18 15:50                   ` Peter Ujfalusi
2016-04-18 16:29                   ` Mark Brown
2016-04-21 22:29                     ` Stephen Boyd
2016-04-22 11:52                       ` Peter Ujfalusi
2016-04-22 11:52                         ` Peter Ujfalusi
2016-04-22 12:08                         ` Tero Kristo
2016-04-22 12:08                           ` Tero Kristo
2016-02-17 11:31           ` Mark Brown
2016-02-17 14:18           ` [alsa-devel] " Ricard Wanderlof
2016-02-17 14:18             ` Ricard Wanderlof
2016-02-17 14:18             ` Ricard Wanderlof
2016-02-22  3:21             ` Mark Brown
2016-02-16 12:46     ` Andreas Irestål

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.