ASoC: Add max98925 codec driver
Subsystems (3)
PATCH 1/1 ASoC: Add max98925 codec driver
Signed-off-by Anish Kumar <[email protected]>
---
changes in this version:
- addressed mark brown comments regarding
probe function.
- changed the mixer namings
- added device tree documentation
changes since v1:
- addressed mark brown comments regarding
open coding functions.
- changed the mixer namings
- added some dapm widgets
.../devicetree/bindings/sound/max98925.txt | 22 + sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/max98925.c | 655 ++++++++++++++++ sound/soc/codecs/max98925.h | 832 +++++++++++++++++++++ 5 files changed, 1515 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/max98925.txt create mode 100644 sound/soc/codecs/max98925.c create mode 100644 sound/soc/codecs/max98925.h
Documentation/devicetree/bindings/sound/max98925.txt new file +22 -0
@@ -0,0 +1,22 @@ +max98925 audio CODEC + +This device supports I2C. + +Required properties: + + - compatible : "maxim,max98925" + + - vmon-slot-no : slot number used to send voltage information + + - imon-slot-no : slot number used to send current information + + - reg : the I2C address of the device for I2C + +Example: + +codec: max98925@1a { + compatible = "maxim,max98925"; + vmon-slot-no = <0>; + imon-slot-no = <2>; + reg = <0x1a>; +};
sound/soc/codecs/Kconfig +4 -0
@@ -68,6 +68,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_LM49453 if I2C select SND_SOC_MAX98088 if I2C select SND_SOC_MAX98090 if I2C + select SND_SOC_MAX98925 if I2C select SND_SOC_MAX98095 if I2C select SND_SOC_MAX98357A if GPIOLIB select SND_SOC_MAX9850 if I2C
@@ -455,6 +456,9 @@ config SND_SOC_MAX98088 config SND_SOC_MAX98090 tristate +config SND_SOC_MAX98925 + tristate + config SND_SOC_MAX98095 tristate
sound/soc/codecs/Makefile +2 -0
@@ -63,6 +63,7 @@ snd-soc-lm49453-objs := lm49453.o snd-soc-max9768-objs := max9768.o snd-soc-max98088-objs := max98088.o snd-soc-max98090-objs := max98090.o +snd-soc-max98925-objs := max98925.o snd-soc-max98095-objs := max98095.o snd-soc-max98357a-objs := max98357a.o snd-soc-max9850-objs := max9850.o
@@ -247,6 +248,7 @@ obj-$(CONFIG_SND_SOC_LM49453) += snd-soc-lm49453.o obj-$(CONFIG_SND_SOC_MAX9768) += snd-soc-max9768.o obj-$(CONFIG_SND_SOC_MAX98088) += snd-soc-max98088.o obj-$(CONFIG_SND_SOC_MAX98090) += snd-soc-max98090.o +obj-$(CONFIG_SND_SOC_MAX98925) += snd-soc-max98925.o obj-$(CONFIG_SND_SOC_MAX98095) += snd-soc-max98095.o obj-$(CONFIG_SND_SOC_MAX98357A) += snd-soc-max98357a.o obj-$(CONFIG_SND_SOC_MAX9850) += snd-soc-max9850.o
sound/soc/codecs/max98925.c new file +655 -0
655 lines not on this page · raw message
sound/soc/codecs/max98925.h new file +832 -0
832 lines not on this page · raw message
Signature · 1 line
1.9.3
Quoted 1 line · Anish Kumar
Signed-off-by Anish Kumar <[email protected]>
Applied, thanks.