diff options
author | Matt Flax <flatmax@flatmax.org> | 2018-09-25 16:40:18 +1000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-25 10:18:38 -0700 |
commit | b0ef5011b981ece1fde8063243a56d3038b87adb (patch) | |
tree | 5b6e2e8b0f2daecbb0d3bf825bae1076ea3dddf0 /sound/soc/codecs/cs4265.c | |
parent | 15a0c64572463eddf59e80aa643d3a87809a7d9b (diff) | |
download | lwn-b0ef5011b981ece1fde8063243a56d3038b87adb.tar.gz lwn-b0ef5011b981ece1fde8063243a56d3038b87adb.zip |
ASoC: cs4265: Add a MIC pre. route
The cs4265 driver is missing a microphone preamp enable.
This patch enables/disables the microphone preamp when mic
selection is made using the kcontrol.
Signed-off-by: Matt Flax <flatmax@flatmax.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4265.c')
-rw-r--r-- | sound/soc/codecs/cs4265.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index d9eebf6af7a8..ab27d2b94d02 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -221,10 +221,11 @@ static const struct snd_soc_dapm_route cs4265_audio_map[] = { {"LINEOUTR", NULL, "DAC"}, {"SPDIFOUT", NULL, "SPDIF"}, + {"Pre-amp MIC", NULL, "MICL"}, + {"Pre-amp MIC", NULL, "MICR"}, + {"ADC Mux", "MIC", "Pre-amp MIC"}, {"ADC Mux", "LINEIN", "LINEINL"}, {"ADC Mux", "LINEIN", "LINEINR"}, - {"ADC Mux", "MIC", "MICL"}, - {"ADC Mux", "MIC", "MICR"}, {"ADC", NULL, "ADC Mux"}, {"DOUT", NULL, "ADC"}, {"DAI1 Capture", NULL, "DOUT"}, |