Commit dd8286a3 authored by Samuel Holland's avatar Samuel Holland Committed by Mark Brown

ASoC: sun50i-codec-analog: Make line out routes stereo

This matches the hardware more accurately, and is necessary for
including the (stereo) line out mute switch in the DAPM graph.
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200726025334.59931-7-samuel@sholland.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4b9f39e1
...@@ -328,7 +328,9 @@ static const struct snd_soc_dapm_widget sun50i_a64_codec_widgets[] = { ...@@ -328,7 +328,9 @@ static const struct snd_soc_dapm_widget sun50i_a64_codec_widgets[] = {
SUN50I_ADDA_HP_CTRL_HPPA_EN, 0, NULL, 0), SUN50I_ADDA_HP_CTRL_HPPA_EN, 0, NULL, 0),
SND_SOC_DAPM_OUTPUT("HP"), SND_SOC_DAPM_OUTPUT("HP"),
SND_SOC_DAPM_MUX("Line Out Source Playback Route", SND_SOC_DAPM_MUX("Left Line Out Source",
SND_SOC_NOPM, 0, 0, sun50i_codec_lineout_src),
SND_SOC_DAPM_MUX("Right Line Out Source",
SND_SOC_NOPM, 0, 0, sun50i_codec_lineout_src), SND_SOC_NOPM, 0, 0, sun50i_codec_lineout_src),
SND_SOC_DAPM_OUTPUT("LINEOUT"), SND_SOC_DAPM_OUTPUT("LINEOUT"),
...@@ -439,12 +441,14 @@ static const struct snd_soc_dapm_route sun50i_a64_codec_routes[] = { ...@@ -439,12 +441,14 @@ static const struct snd_soc_dapm_route sun50i_a64_codec_routes[] = {
{ "Mic2 Amplifier", NULL, "MIC2"}, { "Mic2 Amplifier", NULL, "MIC2"},
/* Line-out Routes */ /* Line-out Routes */
{ "Line Out Source Playback Route", "Stereo", "Left Mixer" }, { "Left Line Out Source", "Stereo", "Left Mixer" },
{ "Line Out Source Playback Route", "Stereo", "Right Mixer" }, { "Left Line Out Source", "Mono Differential", "Left Mixer" },
{ "Line Out Source Playback Route", "Mono Differential", "Left Mixer" }, { "Left Line Out Source", "Mono Differential", "Right Mixer" },
{ "Line Out Source Playback Route", "Mono Differential", { "LINEOUT", NULL, "Left Line Out Source" },
"Right Mixer" },
{ "LINEOUT", NULL, "Line Out Source Playback Route" }, { "Right Line Out Source", "Stereo", "Right Mixer" },
{ "Right Line Out Source", "Mono Differential", "Left Line Out Source" },
{ "LINEOUT", NULL, "Right Line Out Source" },
/* Earpiece Routes */ /* Earpiece Routes */
{ "Earpiece Source Playback Route", "DACL", "Left DAC" }, { "Earpiece Source Playback Route", "DACL", "Left DAC" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment