linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add ZTE ZTE zx-aud96p22 audio codec driver
@ 2017-06-17 14:09 Shawn Guo
  2017-06-17 14:09 ` [PATCH 1/2] ASoC: add bindings for ZTE zx-aud96p22 audio codec Shawn Guo
  2017-06-17 14:09 ` [PATCH 2/2] ASoC: zx_aud96p22: add ZTE ZX AUD96P22 codec driver Shawn Guo
  0 siblings, 2 replies; 12+ messages in thread
From: Shawn Guo @ 2017-06-17 14:09 UTC (permalink / raw)
  To: linux-arm-kernel

From: Shawn Guo <shawn.guo@linaro.org>

This is a pick-up of Baoyou's zx-aud96p22 audio codec driver
submission [1], with quite some significant rework as below.

 - Instead of hard-coding the GPIO used to control external amplifier,
   use generic devm_gpiod_get_optional() call to retrieve the GPIO
   defined in device tree.
 - Rather than directly using I2C bus calls, use REGMAP_I2C interface
   which is more common for accessing codec register via I2C bus.
 - Use snd_kcontrol_new infrastructural for Volume and Mute control.
 - Use DAPM widget and route for various power bits control.
 - A lot of code cleanups

[1] https://lkml.org/lkml/2017/2/15/170

Baoyou Xie (2):
  ASoC: add bindings for ZTE zx-aud96p22 audio codec
  ASoC: zx_aud96p22: add ZTE ZX AUD96P22 codec driver

 .../devicetree/bindings/sound/zte,zx-aud96p22.txt  |  28 ++
 sound/soc/codecs/Kconfig                           |   5 +
 sound/soc/codecs/Makefile                          |   2 +
 sound/soc/codecs/zx_aud96p22.c                     | 425 +++++++++++++++++++++
 4 files changed, 460 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/zte,zx-aud96p22.txt
 create mode 100644 sound/soc/codecs/zx_aud96p22.c

-- 
1.9.1

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

end of thread, other threads:[~2017-06-21 16:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-17 14:09 [PATCH 0/2] Add ZTE ZTE zx-aud96p22 audio codec driver Shawn Guo
2017-06-17 14:09 ` [PATCH 1/2] ASoC: add bindings for ZTE zx-aud96p22 audio codec Shawn Guo
2017-06-19 16:16   ` Mark Brown
2017-06-20  3:11     ` Shawn Guo
2017-06-20 14:33       ` Mark Brown
2017-06-21 13:22         ` Shawn Guo
2017-06-17 14:09 ` [PATCH 2/2] ASoC: zx_aud96p22: add ZTE ZX AUD96P22 codec driver Shawn Guo
2017-06-19 16:19   ` Mark Brown
2017-06-20  3:19     ` Shawn Guo
2017-06-20 12:40       ` Mark Brown
2017-06-21 16:03         ` Shawn Guo
2017-06-21 16:13           ` Mark Brown

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).