d1: add new target
[openwrt/openwrt.git] / target / linux / d1 / patches-6.1 / 0082-ASoC-sun20i-codec-What-is-this-ramp-thing.patch
1 From 87a77f803f5038e3fc64f45d5142ea402512029a Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Wed, 23 Jun 2021 21:18:47 -0500
4 Subject: [PATCH 082/117] ASoC: sun20i-codec: What is this ramp thing?
5
6 Signed-off-by: Samuel Holland <samuel@sholland.org>
7 ---
8 sound/soc/sunxi/sun20i-codec.c | 4 ++++
9 1 file changed, 4 insertions(+)
10
11 --- a/sound/soc/sunxi/sun20i-codec.c
12 +++ b/sound/soc/sunxi/sun20i-codec.c
13 @@ -709,6 +709,10 @@ static int sun20i_codec_component_probe(
14 0x3 << SUN20I_CODEC_ADC_DIG_CTRL_ADC_VOL_EN,
15 0x3 << SUN20I_CODEC_ADC_DIG_CTRL_ADC_VOL_EN);
16
17 + /* Maaagic... */
18 + snd_soc_component_update_bits(component, SUN20I_CODEC_RAMP,
19 + BIT(1) | BIT(0), BIT(0));
20 +
21 return 0;
22
23 err_assert_reset: