diff options
author | Icenowy Zheng <icenowy@aosc.xyz> | 2017-06-05 21:27:21 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-06 19:29:54 +0100 |
commit | 2cfeaec0ec896bc0b8aad2de28a3de4572c7e4a1 (patch) | |
tree | e87b50712ce4c95e23ca7cd46dbfe87062bad5b7 /sound/soc | |
parent | 50aadc14cee74009c72e7d66954b15f27d45c02f (diff) | |
download | op-kernel-dev-2cfeaec0ec896bc0b8aad2de28a3de4572c7e4a1.zip op-kernel-dev-2cfeaec0ec896bc0b8aad2de28a3de4572c7e4a1.tar.gz |
ASoC: sun8i-codec-analog: add support for V3s SoC
The V3s SoC features an analog codec with headphone support but without
mic2 and linein.
Add support for it.
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/sunxi/sun8i-codec-analog.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/sunxi/sun8i-codec-analog.c b/sound/soc/sunxi/sun8i-codec-analog.c index 29c4460..485e79f 100644 --- a/sound/soc/sunxi/sun8i-codec-analog.c +++ b/sound/soc/sunxi/sun8i-codec-analog.c @@ -810,6 +810,11 @@ static int sun8i_codec_analog_add_mixer(struct snd_soc_component *cmpnt, return 0; } +static const struct sun8i_codec_analog_quirks sun8i_v3s_quirks = { + .has_headphone = true, + .has_hmic = true, +}; + static int sun8i_codec_analog_cmpnt_probe(struct snd_soc_component *cmpnt) { struct device *dev = cmpnt->dev; @@ -886,6 +891,10 @@ static const struct of_device_id sun8i_codec_analog_of_match[] = { .compatible = "allwinner,sun8i-h3-codec-analog", .data = &sun8i_h3_quirks, }, + { + .compatible = "allwinner,sun8i-v3s-codec-analog", + .data = &sun8i_v3s_quirks, + }, {} }; MODULE_DEVICE_TABLE(of, sun8i_codec_analog_of_match); |