Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: gianluca <gianlucarenzi@eurekelettronica.it>
To: Zeng Zhaoming <zengzm.kernel@gmail.com>
Cc: "Fabio.Estevam@freescale.com" <Fabio.Estevam@freescale.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: SoC/Codecs/SGTL5000 - Non working MIC_BIAS Voltage settings
Date: Fri, 12 Jun 2015 18:13:28 +0200	[thread overview]
Message-ID: <557B0528.2060404@eurekelettronica.it> (raw)

[-- Attachment #1: Type: text/plain, Size: 352 bytes --]

Hello,
in attachment there is a small patch to ensure the correct register 
value for MIC BIAS Voltage.

Best regards
-- 
Eurek s.r.l.                          |
Electronic Engineering                | http://www.eurek.it
via Celletta 8/B, 40026 Imola, Italy  | Phone: +39-(0)542-609120
p.iva 00690621206 - c.f. 04020030377  | Fax:   +39-(0)542-609212

[-- Attachment #2: sgtl5000.patch --]
[-- Type: text/x-patch, Size: 600 bytes --]

diff -Nru linux-4.0.5.orig/sound/soc/codecs/sgtl5000.c linux-4.0.5/sound/soc/codecs/sgtl5000.c
--- linux-4.0.5.orig/sound/soc/codecs/sgtl5000.c	2015-06-06 17:21:22.000000000 +0200
+++ linux-4.0.5/sound/soc/codecs/sgtl5000.c	2015-06-12 18:09:38.363381087 +0200
@@ -1339,8 +1339,8 @@
 			sgtl5000->micbias_resistor << SGTL5000_BIAS_R_SHIFT);
 
 	snd_soc_update_bits(codec, SGTL5000_CHIP_MIC_CTRL,
-			SGTL5000_BIAS_R_MASK,
-			sgtl5000->micbias_voltage << SGTL5000_BIAS_R_SHIFT);
+			SGTL5000_BIAS_VOLT_MASK,
+			sgtl5000->micbias_voltage << SGTL5000_BIAS_VOLT_SHIFT);
 	/*
 	 * disable DAP
 	 * TODO:

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2015-06-12 16:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-12 16:13 gianluca [this message]
2015-06-17  7:20 ` SoC/Codecs/SGTL5000 - Non working MIC_BIAS Voltage settings gianluca
2015-06-17  7:32   ` Michael Trimarchi
2015-06-17 13:00   ` Fabio Estevam
2015-06-17 14:08     ` Michael Trimarchi
2015-09-30 19:32 ` Applied "ASoC: sgtl5000: fix wrong register MIC_BIAS_VOLTAGE setup on probe" to the asoc tree 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=557B0528.2060404@eurekelettronica.it \
    --to=gianlucarenzi@eurekelettronica.it \
    --cc=Fabio.Estevam@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=zengzm.kernel@gmail.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