alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Harsha Priya <priya.harsha@intel.com>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, Vinod Koul <vinod.koul@intel.com>,
	broonie@opensource.wolfsonmicro.com, lrg@slimlogic.co.uk
Subject: [PATCH 3/4] ASoC: mid-x86: Add support for capture in machine driver
Date: Wed, 19 Jan 2011 18:18:34 +0530	[thread overview]
Message-ID: <1295441314-32209-1-git-send-email-priya.harsha@intel.com> (raw)

From: Vinod Koul <vinod.koul@intel.com>

This configures the capture unused pins and sets
the DMIC cfg by default (also done by user)

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 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

             reply	other threads:[~2011-01-19 12:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19 12:48 Harsha Priya [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-01-19 12:47 [PATCH 3/4] ASoC: mid-x86: Add support for capture in machine driver Harsha Priya
2011-01-19 14:24 ` Mark Brown
2011-01-19 16:29   ` Koul, Vinod
2011-01-19 16:36     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1295441314-32209-1-git-send-email-priya.harsha@intel.com \
    --to=priya.harsha@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=lrg@slimlogic.co.uk \
    --cc=tiwai@suse.de \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).