From mboxrd@z Thu Jan 1 00:00:00 1970 From: gianluca Subject: SoC/Codecs/SGTL5000 - Non working MIC_BIAS Voltage settings Date: Fri, 12 Jun 2015 18:13:28 +0200 Message-ID: <557B0528.2060404@eurekelettronica.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000907090205030006050102" Return-path: Received: from mx7.acantho.net (mx7.acantho.net [213.174.182.181]) by alsa0.perex.cz (Postfix) with ESMTP id 7BCE82604AA for ; Fri, 12 Jun 2015 18:13:44 +0200 (CEST) Received: (from root@localhost) by mx7.acantho.net (8.14.3/8.13.4/Debian-3sarge1) id t5CGDiov001558 for ; Fri, 12 Jun 2015 18:13:44 +0200 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Zeng Zhaoming Cc: "Fabio.Estevam@freescale.com" , "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org This is a multi-part message in MIME format. --------------000907090205030006050102 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000907090205030006050102 Content-Type: text/x-patch; name="sgtl5000.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sgtl5000.patch" 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: --------------000907090205030006050102 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --------------000907090205030006050102--