[alsa-devel] SoC/Codecs/SGTL5000 - Non working MIC_BIAS Voltage settings

gianluca gianlucarenzi at eurekelettronica.it
Wed Jun 17 09:20:06 CEST 2015


Hello,
I didn't receive any feedback about this posting...

On 06/12/2015 06:13 PM, gianluca wrote:
> Hello,
> in attachment there is a small patch to ensure the correct register
> value for MIC BIAS Voltage.

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:


-- 
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


More information about the Alsa-devel mailing list