mbox series

[V7,0/5] ASoC: codecs: Add Awinic AW883XX audio amplifier driver

Message ID 20221222123205.106353-1-wangweidong.a@awinic.com (mailing list archive)
Headers show
Series ASoC: codecs: Add Awinic AW883XX audio amplifier driver | expand

Message

wangweidong.a@awinic.com Dec. 22, 2022, 12:32 p.m. UTC
From: Weidong Wang <wangweidong.a@awinic.com>

The Awinic AW883XX is an I2S/TDM input, high efficiency
digital Smart K audio amplifier with an integrated 10.25V
smart boost convert

Add a DT schema for describing Awinic AW883xx audio amplifiers. They are
controlled using I2C

v6 -> v7: Change name-prefix.yaml to dai-common.yaml in awinic,aw883xx.yaml file
          Delete redundant header files
          Use EINVAL and so on instead of custom error return values
          Remove unnecessary comment
          No longer assign NULL to pointer
          Change the way the if statement is written
          Use devm_kcalloc instead of devm_kzalloc
          Use crc8 and crc32 that come with linux          

Weidong Wang (5):
  ASoC: codecs: Add i2c and codec registration for aw883xx and their
    associated operation functions
  ASoC: codecs: Aw883xx function for ACF file parse and check
  ASoC: codecs: Aw883xx common function for ALSA Audio Driver
  ASoC: codecs: Aw883xx chip register file, data type file and Kconfig
    Makefile
  ASoC: dt-bindings: Add schema for "awinic,aw883xx"

 .../bindings/sound/awinic,aw883xx.yaml        |   49 +
 sound/soc/codecs/Kconfig                      |   10 +
 sound/soc/codecs/Makefile                     |    6 +
 sound/soc/codecs/aw883xx/aw883xx.c            |  706 +++++++
 sound/soc/codecs/aw883xx/aw883xx.h            |   61 +
 sound/soc/codecs/aw883xx/aw883xx_bin_parse.c  | 1138 ++++++++++
 sound/soc/codecs/aw883xx/aw883xx_bin_parse.h  |  123 ++
 sound/soc/codecs/aw883xx/aw883xx_data_type.h  |  143 ++
 sound/soc/codecs/aw883xx/aw883xx_device.c     | 1840 +++++++++++++++++
 sound/soc/codecs/aw883xx/aw883xx_device.h     |  201 ++
 .../soc/codecs/aw883xx/aw883xx_pid_2049_reg.h |  490 +++++
 11 files changed, 4767 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/awinic,aw883xx.yaml
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx.c
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx.h
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx_bin_parse.c
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx_bin_parse.h
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx_data_type.h
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx_device.c
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx_device.h
 create mode 100644 sound/soc/codecs/aw883xx/aw883xx_pid_2049_reg.h


base-commit: 9d2f6060fe4c3b49d0cdc1dce1c99296f33379c8