From patchwork Tue May 21 10:36:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 10953365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D47E114C0 for ; Tue, 21 May 2019 10:37:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2DF41FFF9 for ; Tue, 21 May 2019 10:37:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6A51289B6; Tue, 21 May 2019 10:37:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BDC561FFF9 for ; Tue, 21 May 2019 10:37:29 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 4C4211614; Tue, 21 May 2019 12:36:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4C4211614 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1558435047; bh=HmY2CKOLeWCM7RGyjcQNfjzsODURisGFkm1FRsz0Ylc=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=mAIU2lQMBe+ydnn2rdbEAh1SQdEyMauLHIbVHKics2Dk4UiVMTFTXeuOhwwdp5UbC pQYL5J37D1jep6VooaIxqIb3YjC7n1lDGPUpRyz2PdQXiFO1UaOiaEp3+ljinUBoZ1 /DRK358VTxwlz5WbNJ11uD9wCUwoYUFDNFl/pqbY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 90292F8079B; Tue, 21 May 2019 12:36:36 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 31EADF89674; Tue, 21 May 2019 12:36:34 +0200 (CEST) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 961C7F8079B for ; Tue, 21 May 2019 12:36:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 961C7F8079B Received: by mail-ed1-f66.google.com with SMTP id b8so28603995edm.11 for ; Tue, 21 May 2019 03:36:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=uAylt3ofKrXJiUmVt/aJiMVs6WCW7IL4o+lOVbQ9k+k=; b=TVocVEhcbDpcRIAr5tBQ7BMol5/Qwm2gCwiOfpDgLL21KWwzoqqJqrCeE+niLMJ3c8 muNfVcBJauVPm3OMfyiVYo1gwDkUHKo97rOwP4oELowQn6tcLDyaMZPPjQH1wGqiQL83 fqikNRF7rA9358hBCyVc5pZfOoFafapoes2Z7Bn4VFoVWYndBrbxhj+KOzyU/c+5xrW4 D+zupvKnHNgyhd3GOXKzLA38d9IwnwZHoyfYPs8ypYQQRTvxx1oz1258CUrcItoq5hzo K0iqQOiSM1sHtPrUIW+8Bx7LrDB9jgwn5e6ka6jCRHPzbkxKptNwheyTcaLL8T/kLeaE hWJQ== X-Gm-Message-State: APjAAAXrRHTN0+B7BIMGOQ4GX3c1v749BSMFCR6Kw9BqbLtpBrPcE4MI qohpdwEWcOyt8DSvQX8DSm8kDgwtfyOHS3bXxwjR+SmgtFBYgdIiCuTNE8w5Q0YGkAdbsgp1Zns QlJAeAjIfkLocP+c= X-Google-Smtp-Source: APXvYqxwKTRDeQeHnXoeo2S5PjdpTBXMJbW529IdtNa7k6B9JmqbZcfYZOYpZVGnzIrOSfgpYYl4WA== X-Received: by 2002:a17:906:5593:: with SMTP id y19mr35149813ejp.264.1558434989114; Tue, 21 May 2019 03:36:29 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id a40sm6205178edd.1.2019.05.21.03.36.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 03:36:28 -0700 (PDT) From: Oleksandr Suvorov To: Fabio Estevam Date: Tue, 21 May 2019 13:36:13 +0300 Message-Id: <20190521103619.4707-1-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Igor Opaniuk , Marcel Ziswiler , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Oleksandr Suvorov Subject: [alsa-devel] [PATCH v1 0/6] VAG power control improvement for sgtl5000 codec X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" X-Virus-Scanned: ClamAV using ClamSMTP VAG power control is improved to fit the manual. This fixes as minimum one bug: if customer muxes Headphone to Line-In right after boot w/o playing any sound, the VAG power remains off that leads to poor sound quality from line-in. I.e. after boot: - Connect sound source to Line-In jack; - Connect headphone to HP jack; - Run following commands: $ amixer set 'Headphone' 80% $ amixer set 'Headphone Mux' LINE_IN Also this series includes fixes of non-important bugs in sgtl5000 codec driver. Oleksandr Suvorov (6): ASoC: sgtl5000: Fix definition of VAG Ramp Control ASoC: sgtl5000: add ADC mute control ASoC: sgtl5000: Fix of unmute outputs on probe ASoC: sgtl5000: Fix charge pump source assignment ASoC: Define a set of DAPM pre/post-up events ASoC: sgtl5000: Improve VAG power and mute control include/sound/soc-dapm.h | 2 + sound/soc/codecs/sgtl5000.c | 250 ++++++++++++++++++++++++++++++------ sound/soc/codecs/sgtl5000.h | 2 +- 3 files changed, 212 insertions(+), 42 deletions(-)