Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1103640ybi; Wed, 17 Jul 2019 09:33:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbU53Zq1h6RAaHf9sOAlF9dlFdhaA/zKf+2ogrhCaniVv9yzw7TJAolTe06ebDs5gbipdV X-Received: by 2002:a17:902:76c6:: with SMTP id j6mr44137280plt.102.1563381230252; Wed, 17 Jul 2019 09:33:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563381230; cv=pass; d=google.com; s=arc-20160816; b=koNdfzEu8HN2eh5cUDGIWGtKy0APNNNIrvudPD6ghsnnOm8XSpTXb6IVmYt62gyqWO iwB6Q57LhBaAbQ7h3I5773QtFk5PmtiPLZjSbMVlYh8UAGzY+zF+iEJlMoEcq41FgrOv TKchjHJjfpup6/JArheHw4iLbu2uqP1ko741CIwNVeXgNH2guBMKid4DKnt31eVMMWs0 XMHLUeojSrW/7mEc8iYlO2aSP9Jo00TuZL0d4UpeN1CwrizmthjNS077U/hamEpOY71K ivzTwE7LM6N72aiVHCvsxCP97zwnMhoKnU/VjwPVwcjbIxXL23BvQvLyKDOlSbZYXHhM EQ4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=T50sXYNMNxjCZ3iAUZ/fyNPX/WDT5uQTAGK0OKZJgM8=; b=U41ADTPbUCRyB4+jyERfhqPeKoOcKRi6PT13iAytA4AKMWhMle/mPQGWD4jBwygsmO iIgEFrea2KtdZBYokZF/SMWxXxHG6U5CQJx7LxbBi1F/evDweIyuW+lnctaDGmTwGQnC T7nuBjFrkyswN9kY0+bV6NO7nvRPZdlO1j7eNmkZ+GbYEReRBuPXwq8otYk/vfBMoQIP 8w+0nC0ybN08T8nvqL2aidIVP2K3FIRZEoE5sIcseK0Qbvd+vGgIeImHPqP5mULGobvB +thDdsTYAOQ0viO9rh7q4+xXggBYm/ppJ9ayCPXsiZtThBE8FFBrhAeBBovivclTmLw4 MCrQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b=LoO9Va12; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z185si24552107pfb.109.2019.07.17.09.33.34; Wed, 17 Jul 2019 09:33:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b=LoO9Va12; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727560AbfGQQa6 (ORCPT + 99 others); Wed, 17 Jul 2019 12:30:58 -0400 Received: from mail-eopbgr00110.outbound.protection.outlook.com ([40.107.0.110]:27717 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726081AbfGQQay (ORCPT ); Wed, 17 Jul 2019 12:30:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ANQ9we1GF4lX3578fbnnR1a6e+eaLaAw1lbx3oVqGfkEh7M2msst8Xv80dZmVm6okQ4zfUhbQJJLFrj0QwVleqJqoKZJfuo9S2ayCCvrx9oateMgQ+TRCHItI+KC84vN/5EVXKi/8X2krvxreFDNPw7vY3D9d8AgxK5RDDH6s5xPMC0G4wR3ZeQA2ENtRq/IVJX8l8htnNC7Iyj247kOHKDVDRpRpVBlxYmlPLXF2dIwsnGPBhVMOin09KMsTQi9K1QHuvSc2mDAMp2taJ8irQPA1M6ezMlKgZNFtrZlybmj6WRWYqQhMpDyrNExs+OvBzDpDjkTYs5mH1vnqiB7Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T50sXYNMNxjCZ3iAUZ/fyNPX/WDT5uQTAGK0OKZJgM8=; b=A1VDbrdYGv3L2ga3DjCKrddUu8zM8p+Se/n3anohVk8/QQP6E4E2lPhNFnJCSwap+Yfm0Qz2Y4sD8vF0o3KdPl0EtBYboqEtMv7+l9KrmNuN94SgJR8zmWL7QGgGQbPszlAVZbsZsnLls5bZWPHxqR7x6i8ejdYC+YIQaUsSIp/wtStI0UqLLdArPSK9wMtM3syIvuYw7k0Ky7oH3ipthNljvS673mQKq2N0cUfyv3rLUZHyJdKSTj2lfpA3dyeOnDOyOSN/GdzzisGeHn99r2cNQ4qQGk4E4AUTEcJh3doOLl7nDmz9zgwee6J/3pR0V6ggWBbYbtUG+tRN6Ep9KA== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=toradex.com;dmarc=pass action=none header.from=toradex.com;dkim=pass header.d=toradex.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T50sXYNMNxjCZ3iAUZ/fyNPX/WDT5uQTAGK0OKZJgM8=; b=LoO9Va12yJuNaPQ8PoNMxKL/FACYzLUdtPXf8FlXAdLkSq9weXnotV2aHLKo98gvBr+VYdlLaUs/v8a68qhtU/Q7opMDW57CsP+b2ce6HPNU4mT/ZIVpOCh5qMHCpwS2dzxBESY7jJl68qMdxA+xFAh6ty7zezDBz7IQX6bYcFM= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB6408.eurprd05.prod.outlook.com (20.179.6.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Wed, 17 Jul 2019 16:30:51 +0000 Received: from AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::c860:b386:22a:8ec9]) by AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::c860:b386:22a:8ec9%6]) with mapi id 15.20.2094.011; Wed, 17 Jul 2019 16:30:51 +0000 From: Oleksandr Suvorov To: Fabio Estevam CC: "linux-kernel@vger.kernel.org" , Igor Opaniuk , Marcel Ziswiler , "alsa-devel@alsa-project.org" , Oleksandr Suvorov , Jaroslav Kysela , Mark Brown , Takashi Iwai , Liam Girdwood Subject: [PATCH v4 4/6] ASoC: sgtl5000: add ADC mute control Thread-Topic: [PATCH v4 4/6] ASoC: sgtl5000: add ADC mute control Thread-Index: AQHVPLz/r35mERsc3kyuoDGGQ3JgOg== Date: Wed, 17 Jul 2019 16:30:51 +0000 Message-ID: <20190717163014.429-5-oleksandr.suvorov@toradex.com> References: <20190717163014.429-1-oleksandr.suvorov@toradex.com> In-Reply-To: <20190717163014.429-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM4P190CA0020.EURP190.PROD.OUTLOOK.COM (2603:10a6:200:56::30) To AM6PR05MB6535.eurprd05.prod.outlook.com (2603:10a6:20b:71::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [194.105.145.90] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0a26a0f5-d332-4ed9-bdf9-08d70ad421e2 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM6PR05MB6408; x-ms-traffictypediagnostic: AM6PR05MB6408: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-forefront-prvs: 01018CB5B3 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(39850400004)(136003)(346002)(396003)(376002)(366004)(189003)(199004)(486006)(305945005)(7736002)(2616005)(11346002)(476003)(446003)(1076003)(52116002)(36756003)(53936002)(66066001)(81156014)(81166006)(71200400001)(8676002)(6436002)(4744005)(6512007)(50226002)(8936002)(256004)(71190400001)(4326008)(3846002)(44832011)(6486002)(68736007)(14454004)(6116002)(2906002)(316002)(5660300002)(1411001)(99286004)(478600001)(66476007)(66556008)(64756008)(66446008)(66946007)(76176011)(86362001)(6916009)(6506007)(102836004)(386003)(26005)(186003)(54906003)(25786009);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR05MB6408;H:AM6PR05MB6535.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: iiKweZZyZqdi75JInVB4OHX4ShqIWTMl31biMdF3f2bc0AbioljY4sXXJOu5E+Bb2ENPl29rDfVSVlCcTa7FL6oq6V6j2RjgYVJpCFLTsd12LGC+KgDL1mOOHujz9RixPd15phct21fcQ6z1tfGmchsXiivtYA5TE4kFmGW6GjZYCHjiteQTucpyNPK9AQEVdov/ya/YS+Gtsl+xt+WAelgqSR7kcn4UQSPkHiSn3U5Ha/mEKrbfjt4S55NN1JB2UV1Fyv4EDF1wPEmvIGn+B7c7cw2DhjZ86BKCyRD8A1UGAN5cRiABm5jP2Uchgf9m1Bv5cv4+4cEJ3tvK1ZdjVUBydYriACXebbn9fIFgFB99NwXBtVSJ/y755xO3BIkSRBXqJYE16jdRpsBqqDHQpVuivtlLUeNLxSsjhUNOoM4= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a26a0f5-d332-4ed9-bdf9-08d70ad421e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2019 16:30:51.5036 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oleksandr.suvorov@toradex.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB6408 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This control mute/unmute the ADC input of SGTL5000 using its CHIP_ANA_CTRL register. Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- Changes in v4: None Changes in v3: None Changes in v2: - Fix patch formatting sound/soc/codecs/sgtl5000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index a8d55c21a5f2d..0123d9cfcb473 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -710,6 +710,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_contr= ols[] =3D { 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), =20 SOC_DOUBLE_TLV("Headphone Playback Volume", SGTL5000_CHIP_ANA_HP_CTRL, --=20 2.20.1