From: Harsha Priya Date: Fri, 28 Jan 2011 16:58:32 +0000 (+0530) Subject: ASoC: mid-x86: Add support for capture in machine driver X-Git-Tag: MMI-PSA29.97-13-9~16612^2~1226^2~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d316553a0cb4569a9b6260e870cab8b9c102eace;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: mid-x86: Add support for capture in machine driver This configures the capture unused pins Signed-off-by: Vinod Koul Signed-off-by: Harsha Priya Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/mid-x86/mfld_machine.c b/sound/soc/mid-x86/mfld_machine.c index 1a330be1a01e..7925851a5de1 100644 --- a/sound/soc/mid-x86/mfld_machine.c +++ b/sound/soc/mid-x86/mfld_machine.c @@ -182,6 +182,9 @@ static int mfld_init(struct snd_soc_pcm_runtime *runtime) snd_soc_dapm_disable_pin(dapm, "LINEOUTR"); lo_dac = 3; hs_switch = 0; + /* we dont use linein in this so set to NC */ + snd_soc_dapm_disable_pin(dapm, "LINEINL"); + snd_soc_dapm_disable_pin(dapm, "LINEINR"); return snd_soc_dapm_sync(dapm); }