aa99f322df0954d221e0ef926671fb5e40070e5c
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.14 / 950-0423-ASoC-cs4265-Add-a-MIC-pre.-route-2696.patch
1 From 2c85d648b750a406eee62a2647173e2b99915ab7 Mon Sep 17 00:00:00 2001
2 From: Matt Flax <flatmax@flatmax.org>
3 Date: Fri, 28 Sep 2018 15:13:28 +1000
4 Subject: [PATCH 423/454] ASoC: cs4265: Add a MIC pre. route (#2696)
5
6 Commit b0ef5011b981ece1fde8063243a56d3038b87adb upstream.
7
8 The cs4265 driver is missing a microphone preamp enable.
9 This patch enables/disables the microphone preamp when mic
10 selection is made using the kcontrol.
11
12 Signed-off-by: Matt Flax <flatmax@flatmax.org>
13 Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
14 Signed-off-by: Mark Brown <broonie@kernel.org>
15 ---
16 sound/soc/codecs/cs4265.c | 5 +++--
17 1 file changed, 3 insertions(+), 2 deletions(-)
18
19 --- a/sound/soc/codecs/cs4265.c
20 +++ b/sound/soc/codecs/cs4265.c
21 @@ -222,10 +222,11 @@ static const struct snd_soc_dapm_route c
22 {"LINEOUTR", NULL, "DAC"},
23 {"SPDIFOUT", NULL, "SPDIF"},
24
25 + {"Pre-amp MIC", NULL, "MICL"},
26 + {"Pre-amp MIC", NULL, "MICR"},
27 + {"ADC Mux", "MIC", "Pre-amp MIC"},
28 {"ADC Mux", "LINEIN", "LINEINL"},
29 {"ADC Mux", "LINEIN", "LINEINR"},
30 - {"ADC Mux", "MIC", "MICL"},
31 - {"ADC Mux", "MIC", "MICR"},
32 {"ADC", NULL, "ADC Mux"},
33 {"DOUT", NULL, "ADC"},
34 {"DAI1 Capture", NULL, "DOUT"},