Jelajahi Sumber

ASoC: mid-x86: Add support for capture in machine driver

This configures the capture unused pins

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Harsha Priya <priya.harsha@intel.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Harsha Priya 14 tahun lalu
induk
melakukan
d316553a0c
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      sound/soc/mid-x86/mfld_machine.c

+ 3 - 0
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");
 	snd_soc_dapm_disable_pin(dapm, "LINEOUTR");
 	lo_dac = 3;
 	lo_dac = 3;
 	hs_switch = 0;
 	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);
 	return snd_soc_dapm_sync(dapm);
 }
 }