From patchwork Tue May 7 10:12:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzung-Bi Shih X-Patchwork-Id: 10932719 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 CCFE214B6 for ; Tue, 7 May 2019 10:31:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBF792892C for ; Tue, 7 May 2019 10:31:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA66D28988; Tue, 7 May 2019 10:31:58 +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_ADSP_CUSTOM_MED, 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 0BAD928986 for ; Tue, 7 May 2019 10:31:57 +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 4C3941816; Tue, 7 May 2019 12:12:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4C3941816 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1557224026; bh=rmbF2nUJAOgKcWMJVsr3MzfOcicEFLIfgZW5evYENek=; h=Date:From:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=bUptv5kzwJnnptH2c32yQn7h4EUWqCfTwsNkGecjMcAHk9IdizXpMtz1TQyA+j6o3 5n1mNqJkhEIpSz+jv4CsHJjRVrayQP30HvoB51hrYk4MC1iyem3p2YtDzH3FgXjb/p AB8nKKMgyk+8SXi1QDEvGvI8wM0hsEoj2iyZZBnI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D67ECF89673; Tue, 7 May 2019 12:12:55 +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 9C963F89674; Tue, 7 May 2019 12:12:54 +0200 (CEST) Received: from mail-yw1-xc4a.google.com (mail-yw1-xc4a.google.com [IPv6:2607:f8b0:4864:20::c4a]) (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 64799F89671 for ; Tue, 7 May 2019 12:12:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 64799F89671 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="sAuK7ijJ" Received: by mail-yw1-xc4a.google.com with SMTP id a70so27616363ywe.21 for ; Tue, 07 May 2019 03:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=WDoE9G2PwqfkiYm4BU59wFG6VzUDTTHStBhsHPdIFc0=; b=sAuK7ijJvJWorF+Xl3i7tdoo0EncoBKGSyjgqLTcU2DAhfcOcKL73lLqiWlm70H36G KOCqakhAB5cCsQpkrDY6vtvGqPwR7ACsjSNnhoUTBcusiVwHoRaL3v1OwJNxsRPYPNU0 myZNilQzSFCXibLJCAdzs8ei9T01HcloZwcVzjaKY9KDJoW+eQVsFojLnRDjsn4RB/YF W3//5tuGcjgz+dNcri/oCYigaLzO6zcVktdrj9tG6Kw3mDFCDFbTE3HdF95v3scNmxWs g1BcXyLGfwufk2naga27ftMLCYphpoSYkdawu61p+WR+tjwIJXxPHSXwpsqwDQOBaM8N qxIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=WDoE9G2PwqfkiYm4BU59wFG6VzUDTTHStBhsHPdIFc0=; b=czSq1midknBM4fzaVacMyQ0UzxuWzJ1sn8XT0b8rgevu1omKOX+Hmm0R3IUbeAoIa0 5vdAfwzIxNKeP1dYl5YLgJyR+SjdHT4xWbnbSUcXiGhxpK5p5n6SxqC5y03rfKdS+a3i Ys99p9yfsDCq6JEY1uri+i8/QykCCmMr3JNv7ZOgnOGY6Naj74wLY1vsDa7dv7F+LY1b +Li2XOy48GBJSGXhfxfDf7GwCZvbAn031HaPX9ea54FFsavlyue+zgJx8vQmNBish1H3 0jr9/MXCBC4FBdsWc+bU04kuz8SXEqotRX+7C2KrDDrrHqbIPLSJLShH7KA6yY7xe+CB IbPg== X-Gm-Message-State: APjAAAU4adjnUcgDTVVOTqcosN+yuEs8MtXDC+kWmb7zIepVO5kthUhN 1Ac3iowVXey58Rkc5R9dCe6HkyYFWrmY X-Google-Smtp-Source: APXvYqyc1Q/trIwbmrnrPNz5dr6NrX8zD/pA4kQ8oJfTgS2NT5fCAjbr/+hh1yuUeYngOo1gza+zhfu61GqT X-Received: by 2002:a81:2245:: with SMTP id i66mr6651775ywi.307.1557223970333; Tue, 07 May 2019 03:12:50 -0700 (PDT) Date: Tue, 7 May 2019 18:12:17 +0800 Message-Id: <20190507101220.182466-1-tzungbi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog From: Tzung-Bi Shih To: broonie@kernel.org, tiwai@suse.com Cc: tzungbi@google.com, alsa-devel@alsa-project.org, dgreid@google.com, cychiang@google.com Subject: [alsa-devel] [PATCH 0/3] ASoC: mediatek: mt6358: fix mixer control issues 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 This series fixes the following mixer control related issues: - "Headphone Volume" and "PGA Volume" have been reset after previous stream closed. - Set "Headphone Volume" to the smallest value (-10dB) still get mute, because ramp from -10dB to -10dB is a NOP in original implementation. "Lineout Volume" and "Handset Volume" are un-tested. Fixing them by applying similar logic with "Headphone Volume". Tzung-Bi Shih (3): ASoC: mediatek: mt6358: initialize setting when ramping volume ASoC: mediatek: mt6358: save output volume for mixer controls ASoC: mediatek: mt6358: save PGA for mixer control sound/soc/codecs/mt6358.c | 131 ++++++++++++++++++++++++-------------- 1 file changed, 83 insertions(+), 48 deletions(-)