OSDN Git Service

ASoC: sunxi: Add support for A23/A33/H3 codec's analog path controls
authorChen-Yu Tsai <wens@csie.org>
Sat, 12 Nov 2016 06:46:40 +0000 (14:46 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2016 17:59:27 +0000 (17:59 +0000)
commitba2ff3027b5ab4a96b9d2832822311c3ccbf3011
treeb4091f4f68b06a4b69f92a29ca41c7170afefd3d
parent837e71847aefd82c903ee0bb2ff2589e70b0808f
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 <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/Kconfig
sound/soc/sunxi/Makefile
sound/soc/sunxi/sun8i-codec-analog.c [new file with mode: 0644]