From cb6f7d56aaa22259f8a260d34921e639d2303a90 Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Tue, 27 Sep 2022 22:24:05 +0300 Subject: [PATCH] sound: soc: sunxi: sun8i-codec-analog: add r40 --- sound/soc/sunxi/sun8i-codec-analog.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/soc/sunxi/sun8i-codec-analog.c b/sound/soc/sunxi/sun8i-codec-analog.c index 10387fa9f..d0772cfa0 100644 --- a/sound/soc/sunxi/sun8i-codec-analog.c +++ b/sound/soc/sunxi/sun8i-codec-analog.c @@ -686,6 +686,14 @@ static const struct sun8i_codec_analog_quirks sun8i_h3_quirks = { .has_mic2 = true, }; +static const struct sun8i_codec_analog_quirks sun8i_r40_quirks = { + .has_headphone = true, + .has_hmic = true, + .has_linein = true, + .has_mbias = true, + .has_mic2 = true, +}; + static int sun8i_codec_analog_add_mixer(struct snd_soc_component *cmpnt, const struct sun8i_codec_analog_quirks *quirks) { @@ -813,6 +821,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-r40-codec-analog", + .data = &sun8i_r40_quirks, + }, { .compatible = "allwinner,sun8i-v3s-codec-analog", .data = &sun8i_v3s_quirks, -- 2.35.3