devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support for AK5558 ADC
@ 2018-02-02 16:20 Daniel Baluta
  2018-02-02 16:20 ` [PATCH v2 1/2] ASoC: codecs: Add support for AK5558 ADC driver Daniel Baluta
  2018-02-02 16:20 ` [PATCH v2 2/2] ASoC: ak5558: Add bindings for AK5558 ADC Daniel Baluta
  0 siblings, 2 replies; 9+ messages in thread
From: Daniel Baluta @ 2018-02-02 16:20 UTC (permalink / raw)
  To: broonie, alsa-devel, devicetree, andy.shevchenko, fabio.estevam
  Cc: daniel.baluta, shengjiu.wang, linux-kernel, wakasugi.jb,
	linux-imx, cosmin.samoila, daniel.baluta, mihai.serban

We support normal mode, TDM mode and pm.

Changes since v1: [addressed comments from Andy and Fabio]
 * fix GPIO polarity from active high to active low for correct documentation
 * fix license header by using SPDX identifier
 * remove debug prints at the beginning of functions.
 * only support auto clock switching (manual switching was dead code anyway) (in the
   future we could add a DT property to choose between manual and auto)
 * Use gpiod API
 * use GENMASK
 * introduce power_off/power_on

One open question is the resume sequence which appears to need power_off/power_on.
Just power_on alone isn't enough. With just power_on after resume aplay plays a
song for 1 seconds and then the sound stops.

Datasheet says, page 55"

(1) The PDN pin should be held to “L” for more than 150 ns after AVDD and TVDD are powered up.

Daniel Baluta (2):
  ASoC: codecs: Add support for AK5558 ADC driver
  ASoC: ak5558: Add bindings for AK5558 ADC

 Documentation/devicetree/bindings/sound/ak5558.txt |  23 +
 sound/soc/codecs/Kconfig                           |   6 +
 sound/soc/codecs/Makefile                          |   2 +
 sound/soc/codecs/ak5558.c                          | 626 +++++++++++++++++++++
 sound/soc/codecs/ak5558.h                          |  52 ++
 5 files changed, 709 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ak5558.txt
 create mode 100644 sound/soc/codecs/ak5558.c
 create mode 100644 sound/soc/codecs/ak5558.h

-- 
2.7.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2018-02-05  6:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02 16:20 [PATCH v2 0/2] Add support for AK5558 ADC Daniel Baluta
2018-02-02 16:20 ` [PATCH v2 1/2] ASoC: codecs: Add support for AK5558 ADC driver Daniel Baluta
2018-02-02 19:33   ` Andy Shevchenko
2018-02-02 23:11     ` Mark Brown
     [not found]       ` <20180202231102.GA2705-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2018-02-04 14:31         ` Andy Shevchenko
2018-02-04 14:42           ` Daniel Baluta
2018-02-02 16:20 ` [PATCH v2 2/2] ASoC: ak5558: Add bindings for AK5558 ADC Daniel Baluta
2018-02-02 22:48   ` [alsa-devel] " Fabio Estevam
     [not found]   ` <1517588406-3295-3-git-send-email-daniel.baluta-3arQi8VN3Tc@public.gmane.org>
2018-02-05  6:09     ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).