From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harsha Priya Subject: [PATCH 3/4] ASoC: mid-x86: Add support for capture in machine driver Date: Wed, 19 Jan 2011 18:18:34 +0530 Message-ID: <1295441314-32209-1-git-send-email-priya.harsha@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id 3249F1039B4 for ; Wed, 19 Jan 2011 13:34:22 +0100 (CET) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, Vinod Koul , broonie@opensource.wolfsonmicro.com, lrg@slimlogic.co.uk List-Id: alsa-devel@alsa-project.org From: Vinod Koul This configures the capture unused pins and sets the DMIC cfg by default (also done by user) Signed-off-by: Vinod Koul --- sound/soc/mid-x86/mfld_machine.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/sound/soc/mid-x86/mfld_machine.c b/sound/soc/mid-x86/mfld_machine.c index 1a330be..1cd49a2 100644 --- a/sound/soc/mid-x86/mfld_machine.c +++ b/sound/soc/mid-x86/mfld_machine.c @@ -182,6 +182,13 @@ 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"); + /* we are using DMICs here so configure how the clock and out pin is set */ + snd_soc_write(codec, SN95031_DMICBUF0123, 0x85); + snd_soc_write(codec, SN95031_DMICBUF45, 0x02); + snd_soc_update_bits(codec, SN95031_DMICMUX, 0x7, 0x07); return snd_soc_dapm_sync(dapm); } -- 1.7.2.3