Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/topic/zx-aud96p22' into asoc-next
Browse files Browse the repository at this point in the history
  • Loading branch information
broonie committed Jul 3, 2017
2 parents f116d2f + 0e15bdf commit 478b774
Show file tree
Hide file tree
Showing 4 changed files with 434 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Documentation/devicetree/bindings/sound/zte,zx-aud96p22.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ZTE ZX AUD96P22 Audio Codec

Required properties:
- compatible: Must be "zte,zx-aud96p22"
- #sound-dai-cells: Should be 0
- reg: I2C bus slave address of AUD96P22

Example:

i2c0: i2c@1486000 {
compatible = "zte,zx296718-i2c";
reg = <0x01486000 0x1000>;
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&audiocrm AUDIO_I2C0_WCLK>;
clock-frequency = <1600000>;

aud96p22: codec@22 {
compatible = "zte,zx-aud96p22";
#sound-dai-cells = <0>;
reg = <0x22>;
};
};
5 changes: 5 additions & 0 deletions sound/soc/codecs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,11 @@ config SND_SOC_WM9713
tristate
select REGMAP_AC97

config SND_SOC_ZX_AUD96P22
tristate "ZTE ZX AUD96P22 CODEC"
depends on I2C
select REGMAP_I2C

# Amp
config SND_SOC_LM4857
tristate
Expand Down
2 changes: 2 additions & 0 deletions sound/soc/codecs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ snd-soc-wm9705-objs := wm9705.o
snd-soc-wm9712-objs := wm9712.o
snd-soc-wm9713-objs := wm9713.o
snd-soc-wm-hubs-objs := wm_hubs.o
snd-soc-zx-aud96p22-objs := zx_aud96p22.o
# Amp
snd-soc-dio2125-objs := dio2125.o
snd-soc-max9877-objs := max9877.o
Expand Down Expand Up @@ -457,6 +458,7 @@ obj-$(CONFIG_SND_SOC_WM9712) += snd-soc-wm9712.o
obj-$(CONFIG_SND_SOC_WM9713) += snd-soc-wm9713.o
obj-$(CONFIG_SND_SOC_WM_ADSP) += snd-soc-wm-adsp.o
obj-$(CONFIG_SND_SOC_WM_HUBS) += snd-soc-wm-hubs.o
obj-$(CONFIG_SND_SOC_ZX_AUD96P22) += snd-soc-zx-aud96p22.o

# Amp
obj-$(CONFIG_SND_SOC_DIO2125) += snd-soc-dio2125.o
Expand Down
Loading

0 comments on commit 478b774

Please sign in to comment.