Skip to content

Commit b0ef501

Browse files
flatmaxbroonie
authored andcommitted
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>
1 parent 15a0c64 commit b0ef501

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/soc/codecs/cs4265.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,11 @@ static const struct snd_soc_dapm_route cs4265_audio_map[] = {
221221
{"LINEOUTR", NULL, "DAC"},
222222
{"SPDIFOUT", NULL, "SPDIF"},
223223

224+
{"Pre-amp MIC", NULL, "MICL"},
225+
{"Pre-amp MIC", NULL, "MICR"},
226+
{"ADC Mux", "MIC", "Pre-amp MIC"},
224227
{"ADC Mux", "LINEIN", "LINEINL"},
225228
{"ADC Mux", "LINEIN", "LINEINR"},
226-
{"ADC Mux", "MIC", "MICL"},
227-
{"ADC Mux", "MIC", "MICR"},
228229
{"ADC", NULL, "ADC Mux"},
229230
{"DOUT", NULL, "ADC"},
230231
{"DAI1 Capture", NULL, "DOUT"},

0 commit comments

Comments
 (0)