From patchwork Fri Jun 12 16:13:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gianluca X-Patchwork-Id: 6599241 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5C1E0C0020 for ; Fri, 12 Jun 2015 16:14:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F96A205F9 for ; Fri, 12 Jun 2015 16:14:32 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id AF5262066F for ; Fri, 12 Jun 2015 16:14:29 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B9398266A02; Fri, 12 Jun 2015 18:14:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 47CE52669DE; Fri, 12 Jun 2015 18:13:51 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 939652669DF; Fri, 12 Jun 2015 18:13:50 +0200 (CEST) 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 Received: from [192.168.143.6] ([77.89.4.21]) by mx7.acantho.net (8.14.3/8.13.4/Debian-3sarge1) with ESMTP id t5CGDStQ001272; Fri, 12 Jun 2015 18:13:29 +0200 X-Icontrol: Sent by Inrete Icontrol Message-ID: <557B0528.2060404@eurekelettronica.it> Date: Fri, 12 Jun 2015 18:13:28 +0200 From: gianluca User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Zeng Zhaoming X-Priority: 1 (Highest) X-IControl-Milter-Checked: yes (IControlServer: FRONTEND-002 SrcIpType: UnTrusted SrcIpHeaderType: Undefined Authenticated: no) X-IControl-Milter-SPF-Checked: yes (IControlServer: FRONTEND-002 HeloSPFType: unknown FromSPFType: none HeloHeaderSPFType: Undefined FromHeaderSPFType: none) X-IControl-Milter-MD5SUM: 781f51a3a5e88ea4005d1dc9915ffe05 Cc: "Fabio.Estevam@freescale.com" , "alsa-devel@alsa-project.org" Subject: [alsa-devel] SoC/Codecs/SGTL5000 - Non working MIC_BIAS Voltage settings X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" 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 X-Virus-Scanned: ClamAV using ClamSMTP Hello, in attachment there is a small patch to ensure the correct register value for MIC BIAS Voltage. Best regards 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: