|
@@ -131,6 +131,7 @@ static const struct snd_soc_dapm_widget byt_rt5651_widgets[] = {
|
|
|
SND_SOC_DAPM_MIC("Headset Mic", NULL),
|
|
|
SND_SOC_DAPM_MIC("Internal Mic", NULL),
|
|
|
SND_SOC_DAPM_SPK("Speaker", NULL),
|
|
|
+ SND_SOC_DAPM_LINE("Line In", NULL),
|
|
|
SND_SOC_DAPM_SUPPLY("Platform Clock", SND_SOC_NOPM, 0, 0,
|
|
|
platform_clock_control, SND_SOC_DAPM_PRE_PMU |
|
|
|
SND_SOC_DAPM_POST_PMD),
|
|
@@ -142,6 +143,7 @@ static const struct snd_soc_dapm_route byt_rt5651_audio_map[] = {
|
|
|
{"Headset Mic", NULL, "Platform Clock"},
|
|
|
{"Internal Mic", NULL, "Platform Clock"},
|
|
|
{"Speaker", NULL, "Platform Clock"},
|
|
|
+ {"Line In", NULL, "Platform Clock"},
|
|
|
|
|
|
{"AIF1 Playback", NULL, "ssp2 Tx"},
|
|
|
{"ssp2 Tx", NULL, "codec_out0"},
|
|
@@ -155,6 +157,9 @@ static const struct snd_soc_dapm_route byt_rt5651_audio_map[] = {
|
|
|
{"Headphone", NULL, "HPOR"},
|
|
|
{"Speaker", NULL, "LOUTL"},
|
|
|
{"Speaker", NULL, "LOUTR"},
|
|
|
+ {"IN2P", NULL, "Line In"},
|
|
|
+ {"IN2N", NULL, "Line In"},
|
|
|
+
|
|
|
};
|
|
|
|
|
|
static const struct snd_soc_dapm_route byt_rt5651_intmic_dmic_map[] = {
|
|
@@ -193,6 +198,7 @@ static const struct snd_kcontrol_new byt_rt5651_controls[] = {
|
|
|
SOC_DAPM_PIN_SWITCH("Headset Mic"),
|
|
|
SOC_DAPM_PIN_SWITCH("Internal Mic"),
|
|
|
SOC_DAPM_PIN_SWITCH("Speaker"),
|
|
|
+ SOC_DAPM_PIN_SWITCH("Line In"),
|
|
|
};
|
|
|
|
|
|
static struct snd_soc_jack_pin bytcr_jack_pins[] = {
|