ASoC: sun8i-codec-analog: prepare a mixer control/widget/route set for V3s
authorIcenowy Zheng <icenowy@aosc.io>
Mon, 5 Jun 2017 13:27:20 +0000 (21:27 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 18:27:34 +0000 (19:27 +0100)
commit50aadc14cee74009c72e7d66954b15f27d45c02f
treeb15b0bb9fb5e20e7e3ba380eff7bbf6b6199de42
parentb08a20f58d2efcd88bf5276e34cd4020028accb7
ASoC: sun8i-codec-analog: prepare a mixer control/widget/route set for V3s

Allwinner V3s has an analog codec without MIC2 and Line In, which will
need a special set of mixer controls/widgets/routes, otherwise meaningless
controls will be exported to userspace and confuse the user.

Add the special set, and use it when the SoC has no MIC2 and Line In.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec-analog.c