Commit a6b44f16 authored by Javier Martin's avatar Javier Martin Committed by Mark Brown

ASoC: Route Mic Bias in Visstrim_M10 board.

Visstrim_M10 board uses an external microphone
that can be enabled/disabled by the user
Signed-off-by: default avatarJavier Martin <javier.martin@vista-silicon.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 44fb864b
...@@ -74,6 +74,24 @@ static struct snd_soc_ops mx27vis_aic32x4_snd_ops = { ...@@ -74,6 +74,24 @@ static struct snd_soc_ops mx27vis_aic32x4_snd_ops = {
.hw_params = mx27vis_aic32x4_hw_params, .hw_params = mx27vis_aic32x4_hw_params,
}; };
static const struct snd_kcontrol_new mx27vis_aic32x4_controls[] = {
SOC_DAPM_PIN_SWITCH("External Mic"),
};
static const struct snd_soc_dapm_widget aic32x4_dapm_widgets[] = {
SND_SOC_DAPM_MIC("External Mic", NULL),
};
static const struct snd_soc_dapm_route aic32x4_dapm_routes[] = {
{"Mic Bias", NULL, "External Mic"},
{"IN1_R", NULL, "Mic Bias"},
{"IN2_R", NULL, "Mic Bias"},
{"IN3_R", NULL, "Mic Bias"},
{"IN1_L", NULL, "Mic Bias"},
{"IN2_L", NULL, "Mic Bias"},
{"IN3_L", NULL, "Mic Bias"},
};
static struct snd_soc_dai_link mx27vis_aic32x4_dai = { static struct snd_soc_dai_link mx27vis_aic32x4_dai = {
.name = "tlv320aic32x4", .name = "tlv320aic32x4",
.stream_name = "TLV320AIC32X4", .stream_name = "TLV320AIC32X4",
...@@ -89,6 +107,12 @@ static struct snd_soc_card mx27vis_aic32x4 = { ...@@ -89,6 +107,12 @@ static struct snd_soc_card mx27vis_aic32x4 = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.dai_link = &mx27vis_aic32x4_dai, .dai_link = &mx27vis_aic32x4_dai,
.num_links = 1, .num_links = 1,
.controls = mx27vis_aic32x4_controls,
.num_controls = ARRAY_SIZE(mx27vis_aic32x4_controls),
.dapm_widgets = aic32x4_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(aic32x4_dapm_widgets),
.dapm_routes = aic32x4_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(aic32x4_dapm_routes),
}; };
static struct platform_device *mx27vis_aic32x4_snd_device; static struct platform_device *mx27vis_aic32x4_snd_device;
......
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