]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun4i-codec: Add support for A31 board level audio routing
authorChen-Yu Tsai <wens@csie.org>
Thu, 3 Nov 2016 07:55:53 +0000 (15:55 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 4 Nov 2016 20:38:35 +0000 (14:38 -0600)
commit32577a8c65d577631d9a1c9c6c6e033c90e51d7e
tree2e7fd1c3da4b7b6eb139ca89132660b70cfe64be
parentb00a982af8f60d2f8548e26f5ac5f9df56c95ff6
ASoC: sun4i-codec: Add support for A31 board level audio routing

The A31 SoC's codec has various inputs, outputs and microphone bias
supplies. These can be routed on the board in different ways, such as:

  - HPCOM may be connected to have the headphone DC coupled.

  - Microphones all use the MBIAS main microphone supply or one mic may
    use the HBIAS supply, which supports headset detection and buttons.

  - Line Out may be routed to an audio jack, or an onboard speaker amp
    with power controls.

Add support for specifying the audio routes in the device tree.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/sun4i-codec.txt
sound/soc/sunxi/sun4i-codec.c