diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-03-12 19:12:42 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2015-05-08 17:22:27 +0800 |
commit | a73886471f2687899e34240a07b17ce78395f383 (patch) | |
tree | 9d0508325a55cd8b1ab53bbcf83314752e2e4a45 /sound | |
parent | 3affc43de1d1a0f1b09f91d311d865259978de28 (diff) |
MLK-10418-2 ASoC: imx-wm8960: add dapm route for MICBIAS
Add dapm route for MICBIAS.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-wm8960.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-wm8960.c b/sound/soc/fsl/imx-wm8960.c index e8554498e2ba..e0aa9399470a 100644 --- a/sound/soc/fsl/imx-wm8960.c +++ b/sound/soc/fsl/imx-wm8960.c @@ -187,6 +187,10 @@ static struct snd_soc_ops imx_hifi_ops = { .hw_free = imx_hifi_hw_free, }; +static const struct snd_soc_dapm_route imx_wm8960_dapm_route[] = { + { "LINPUT1", NULL, "MICB" }, +}; + static int imx_wm8960_probe(struct platform_device *pdev) { struct device_node *cpu_np, *codec_np; @@ -260,6 +264,8 @@ static int imx_wm8960_probe(struct platform_device *pdev) goto fail; data->card.num_links = 1; data->card.dai_link = &data->dai; + data->card.dapm_routes = imx_wm8960_dapm_route; + data->card.num_dapm_routes = ARRAY_SIZE(imx_wm8960_dapm_route); platform_set_drvdata(pdev, &data->card); snd_soc_card_set_drvdata(&data->card, data); |