Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp992710ybi; Fri, 12 Jul 2019 07:57:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtru6TTiNtVtZVdLxPI/d2fwjkQf2S5/sPmNY7LQmZKnkcfCKE/nVls8nH3CTj7H37Hv08 X-Received: by 2002:a63:fa4e:: with SMTP id g14mr11257319pgk.237.1562943421511; Fri, 12 Jul 2019 07:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562943421; cv=none; d=google.com; s=arc-20160816; b=LfjaVksuK5VSeprh4jEX/CQcVQVFw3vAgOLd+5Twuvl8qFMFUb+7LBE3kekMaVYU8U GI+txwTkBwq+ECgzlInyZoYceUrPSLkVUsRyarwxMGSB0BRhUCTONePOsEnAnamBz3FZ f4vLBunNBNxp9Ru0DgSxMAuLHsz+jFHaDidpSDyU4Gom+dE8afZGG22j35I2c1381HUl z+78R2xEeU/Jzy2WeuV6LrIE4n+8501D0QU4Yz4s0LKoSwfHigib/A7gtXt3WgXTF+wx c97CszdH9jQDp0Xaq8gXwrV7oKOe8qgfHa9/f97Bia+TzX2rxKite/sVNcmsKKL90J2x 0pCw== ARC-Message-Signature: i=1; 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=6smOT4hxDyFMoe6BQ9nCjBv0j4gPQRsoZRy7ay4FicU=; b=q2BUKMmoHPpE08IwqBaMw8wJ0Mjw8yTCAQQ9lB5wte86+FJxa27gEZC2IPNDraJTsN pqhtl46uWjWxvzxlsQ7ZxOYW1ejOObLe0YSJzpEFXnH+n6H/IgXRq8A1BpUTn40+dXiV 654T38IiRw2YR40UbzJQsBkzYC+X/FzNLjYoejp+QBmbGzfqGQ27fFu4Atb79VyhaBcW 9/nr2YBn6JjflOduv6/I0Lf+28ycNSxozMWV2lQPfhXFaTnJDUJac0X1JQ7TJz1HRU2b 1ADNJ1J+22tam4CXTWuMnOxrf7LZFOqcct8ANiXFwP7G76cSzFawiyetxNxELaMWGaf6 JS1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b=balG4uwS; 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 h12si7964728pfn.171.2019.07.12.07.56.45; Fri, 12 Jul 2019 07:57:01 -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=balG4uwS; 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 S1727372AbfGLO4L (ORCPT + 99 others); Fri, 12 Jul 2019 10:56:11 -0400 Received: from mail-eopbgr00131.outbound.protection.outlook.com ([40.107.0.131]:39750 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726318AbfGLO4J (ORCPT ); Fri, 12 Jul 2019 10:56:09 -0400 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=6smOT4hxDyFMoe6BQ9nCjBv0j4gPQRsoZRy7ay4FicU=; b=balG4uwSW2Othmd0c8pVWKsyDZdL9ro4CAizZRtILmt9LTN14ZdHsel4XPHrRh71G6KAibNFsDULWRDDq4sElcP3zBe5oH0VOqmXkGPkjnlt9TejPWkLgduLq0Uk+ZNrlraKR7HUV5QZUa1gVVS7z1RF+PJ9t2WuvJ0EKcTM3Co= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB5508.eurprd05.prod.outlook.com (20.177.119.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.20; Fri, 12 Jul 2019 14:56:01 +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.2073.008; Fri, 12 Jul 2019 14:56:01 +0000 From: Oleksandr Suvorov To: Fabio Estevam CC: "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" , Marcel Ziswiler , Igor Opaniuk , Oleksandr Suvorov , Jaroslav Kysela , Mark Brown , Takashi Iwai , Liam Girdwood Subject: [PATCH v3 2/6] ASoC: sgtl5000: add ADC mute control Thread-Topic: [PATCH v3 2/6] ASoC: sgtl5000: add ADC mute control Thread-Index: AQHVOMHsCCCig14E/Eaohv8rEs+88w== Date: Fri, 12 Jul 2019 14:56:01 +0000 Message-ID: <20190712145550.27500-3-oleksandr.suvorov@toradex.com> References: <20190712145550.27500-1-oleksandr.suvorov@toradex.com> In-Reply-To: <20190712145550.27500-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR05CA0018.eurprd05.prod.outlook.com (2603:10a6:208:55::31) 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: a1fe4d2f-2c00-421c-3083-08d706d90e84 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM6PR05MB5508; x-ms-traffictypediagnostic: AM6PR05MB5508: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-forefront-prvs: 00963989E5 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(4636009)(366004)(39850400004)(376002)(346002)(396003)(136003)(199004)(189003)(102836004)(186003)(66476007)(52116002)(305945005)(26005)(66946007)(64756008)(66446008)(6506007)(5660300002)(6436002)(86362001)(478600001)(1411001)(66556008)(53936002)(8676002)(4744005)(386003)(7736002)(316002)(76176011)(66066001)(1076003)(6916009)(54906003)(99286004)(50226002)(14454004)(36756003)(71200400001)(71190400001)(68736007)(6116002)(3846002)(486006)(6512007)(2616005)(6486002)(2906002)(44832011)(11346002)(446003)(8936002)(81166006)(81156014)(4326008)(476003)(256004)(25786009)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR05MB5508;H:AM6PR05MB6535.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: aqBWAQNpLd2JOmzRR8oqI6KLI8ajV8Ln7MUFxBDgOkoDv5hIqnFZtbmDS12ulw3T7kKIbQHMsLE3AXT+i5r/iHxcVzVFXJvIVzWcfFqVpQH0WlENrZetFsQUfhkKde4OxC8B7RC5Bazm0qO3D4F4v2RSOHFqp54Qn5MRYnb1S9lfKT0d5+a4aUR1pb6UTfDFaJISmksvyU5O0vJ4F5nz9UZ8g+b8TPtnzm5WehpFHVu8rEo8FdK681G6xXeWnJ7XZwDU+n+FXacprPeAnjrpwysztv1qLma1H4ekaCi/BIFmGwzejj/PepOEm0ma3aQqJrQOPj+metHXwtY6MYWO6lb1/2danJucqw7XQhkqBM7vU12qXqT7TwzCp1iVOSwLBgp2i+h35QRcQYgmYnA1C01A4UHzKwb8R6NL2eE2svU= 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: a1fe4d2f-2c00-421c-3083-08d706d90e84 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jul 2019 14:56:01.8677 (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: AM6PR05MB5508 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 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 5e49523ee0b67..bb58c997c6914 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -556,6 +556,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