Skip to content

Commit ba2ff30

Browse files
wensbroonie
authored andcommitted
ASoC: sunxi: Add support for A23/A33/H3 codec's analog path controls
The internal codec on A23/A33/H3 is split into 2 parts. The analog path controls are routed through an embedded custom register bus accessed through the PRCM block. The SoCs share a common set of inputs, outputs, and audio paths. The following table lists the differences. ---------------------------------------- | Feature \ SoC | A23 | A33 | H3 | ---------------------------------------- | Headphone | v | v | | ---------------------------------------- | Line Out | | | v | ---------------------------------------- | Phone In/Out | v | v | | ---------------------------------------- Add an ASoC component driver for it. This should be tied to the codec audio card as an auxiliary device. This patch adds the commont paths and controls, and variant specific headphone out and line out. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 837e718 commit ba2ff30

File tree

3 files changed

+674
-0
lines changed

3 files changed

+674
-0
lines changed

sound/soc/sunxi/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ config SND_SUN4I_CODEC
99
Select Y or M to add support for the Codec embedded in the Allwinner
1010
A10 and affiliated SoCs.
1111

12+
config SND_SUN8I_CODEC_ANALOG
13+
tristate "Allwinner sun8i Codec Analog Controls Support"
14+
depends on MACH_SUN8I || COMPILE_TEST
15+
select REGMAP
16+
help
17+
Say Y or M if you want to add support for the analog controls for
18+
the codec embedded in newer Allwinner SoCs.
19+
1220
config SND_SUN4I_I2S
1321
tristate "Allwinner A10 I2S Support"
1422
select SND_SOC_GENERIC_DMAENGINE_PCM

sound/soc/sunxi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
obj-$(CONFIG_SND_SUN4I_CODEC) += sun4i-codec.o
22
obj-$(CONFIG_SND_SUN4I_I2S) += sun4i-i2s.o
33
obj-$(CONFIG_SND_SUN4I_SPDIF) += sun4i-spdif.o
4+
obj-$(CONFIG_SND_SUN8I_CODEC_ANALOG) += sun8i-codec-analog.o

0 commit comments

Comments
 (0)