ASoC: Intel: skl-hda-dsp-generic: add dmic dapm widget and route

Adding DAPM MIC endpoint widget "SoC DMIC" and route, to enable
DMIC DAPM support with hda generic machine.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190809232236.21182-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Keyon Jie 2019-08-09 18:22:36 -05:00 committed by Mark Brown
parent 0181d28531
commit 79631210fc
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0

View file

@ -23,6 +23,7 @@ static const struct snd_soc_dapm_widget skl_hda_widgets[] = {
SND_SOC_DAPM_MIC("Alt Analog In", NULL), SND_SOC_DAPM_MIC("Alt Analog In", NULL),
SND_SOC_DAPM_SPK("Digital Out", NULL), SND_SOC_DAPM_SPK("Digital Out", NULL),
SND_SOC_DAPM_MIC("Digital In", NULL), SND_SOC_DAPM_MIC("Digital In", NULL),
SND_SOC_DAPM_MIC("SoC DMIC", NULL),
}; };
static const struct snd_soc_dapm_route skl_hda_map[] = { static const struct snd_soc_dapm_route skl_hda_map[] = {
@ -41,6 +42,9 @@ static const struct snd_soc_dapm_route skl_hda_map[] = {
{ "Codec Input Pin2", NULL, "Digital In" }, { "Codec Input Pin2", NULL, "Digital In" },
{ "Codec Input Pin3", NULL, "Alt Analog In" }, { "Codec Input Pin3", NULL, "Alt Analog In" },
/* digital mics */
{"DMic", NULL, "SoC DMIC"},
/* CODEC BE connections */ /* CODEC BE connections */
{ "Analog Codec Playback", NULL, "Analog CPU Playback" }, { "Analog Codec Playback", NULL, "Analog CPU Playback" },
{ "Analog CPU Playback", NULL, "codec0_out" }, { "Analog CPU Playback", NULL, "codec0_out" },