From patchwork Tue May 21 10:36:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 10953371 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 0DDE376 for ; Tue, 21 May 2019 10:39:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EECCC1FFF9 for ; Tue, 21 May 2019 10:39:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1F7B289B6; Tue, 21 May 2019 10:39:10 +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 2F73A1FFF9 for ; Tue, 21 May 2019 10:39:10 +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 6EB1F167D; Tue, 21 May 2019 12:38:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6EB1F167D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1558435148; bh=Wkg5TrDtao70VHvG+bcZ6X2cHYXmT0drCEJhlqHp7Dc=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rgxYbCQgXgW30ojqqsjM7tlyiH8v7LpYNd7xXMa0U0eLy+bJhsn+o+Q9FLAK7BrHS Y+KWfVz/NxRggyEg7I/ba1Az7JJxBjnq8NEaTMlfJZgWokKcMCzrxBByh/HsRCWyTJ eOPDINfgXqKL9Nl7C8JdcVi8znM1a4ZRFN9QkBWQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6E518F8972C; Tue, 21 May 2019 12:36:46 +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 3957FF89723; Tue, 21 May 2019 12:36:40 +0200 (CEST) Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) (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 38218F89715 for ; Tue, 21 May 2019 12:36:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 38218F89715 Received: by mail-ed1-f65.google.com with SMTP id b8so28604570edm.11 for ; Tue, 21 May 2019 03:36:36 -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:in-reply-to :references:mime-version; bh=odw0Br10pd/FID0oLpxhs9oyem6lxu+oPFxMjbKBkEQ=; b=JIBKcAvC4fUfkD0z7SQVP6BY23Ad1GDGy34Mt1sqqV3ICt9994pFzURrAp7Kd1zR8i QuwPT97GTsLRw1nxtMwR1WTXremrJ0rKZTs1uTRRVrFuefPYyu9i7xVbcePdOAKrPItL n6+3s8g/rvS2Dp60ugj4mlb6EstLfwTSJHWopWvdQl1Rv6YgwVCVohmEEEddouw9Y9tT iTdjTC2IFRbnOdF0G7ogS1+v0v4eqhwTuvqCKuNPEYGXytk+3N0SsPeRRjCWHLwcG5Nm bkEI4rP+GIzyUWjuf4M4xIpjatovHuO0NKC9ge+ic+k27eGwcI6ufyROu2TFlH4yOEfJ H92w== X-Gm-Message-State: APjAAAXT7/3vqO43xNnFbAZwSRKd/wOeAjHqlBVmRbPJsK2ruL4w8quT 1PQOH9T3gs+0K95Ektsun49FCFYGk0HrbBbhWyKGEWzdixAIV2ByVStDeKCNGZa0yT6j85T9Ou9 cmhmpwZUr/NvVTyM= X-Google-Smtp-Source: APXvYqybcyoaWgALzKgHnX9qkZKOL1y9QhO/tydUl9gFPtCPfkc2n+gdnaHhGjgsCSNAwAtctNFBuA== X-Received: by 2002:a17:906:90c6:: with SMTP id v6mr40526940ejw.111.1558434996456; Tue, 21 May 2019 03:36:36 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id ay6sm3507075ejb.20.2019.05.21.03.36.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 03:36:35 -0700 (PDT) From: Oleksandr Suvorov To: Fabio Estevam Date: Tue, 21 May 2019 13:36:15 +0300 Message-Id: <20190521103619.4707-3-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190521103619.4707-1-oleksandr.suvorov@toradex.com> References: <20190521103619.4707-1-oleksandr.suvorov@toradex.com> MIME-Version: 1.0 Cc: Marcel Ziswiler , Igor Opaniuk , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Oleksandr Suvorov Subject: [alsa-devel] [PATCH v1 2/6] ASoC: sgtl5000: add ADC mute control 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 control mute/unmute the ADC input of SGTL5000 using its CHIP_ANA_CTRL register. Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler --- sound/soc/codecs/sgtl5000.c | 1 + 1 file changed, 1 insertion(+) diff --git sound/soc/codecs/sgtl5000.c sound/soc/codecs/sgtl5000.c index 5e49523ee0b6..bb58c997c691 100644 --- sound/soc/codecs/sgtl5000.c +++ sound/soc/codecs/sgtl5000.c @@ -556,6 +556,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = { SGTL5000_CHIP_ANA_ADC_CTRL, 8, 1, 0, capture_6db_attenuate), SOC_SINGLE("Capture ZC Switch", SGTL5000_CHIP_ANA_CTRL, 1, 1, 0), + SOC_SINGLE("Capture Switch", SGTL5000_CHIP_ANA_CTRL, 0, 1, 1), SOC_DOUBLE_TLV("Headphone Playback Volume", SGTL5000_CHIP_ANA_HP_CTRL,