Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3426316ybi; Fri, 19 Jul 2019 03:06:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEI/c9Ks5te4tchWUH3vtgPGV2qGTvlnr2ece95YKyLYGzVYUiOJ7ggJ7uwiHvqdJC1NXK X-Received: by 2002:a17:902:a409:: with SMTP id p9mr56604684plq.218.1563530782937; Fri, 19 Jul 2019 03:06:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563530782; cv=pass; d=google.com; s=arc-20160816; b=Ke4v8PWHDi06s2svwsi16mzEC//FW4/ireoSZ8Mib88VT6azNO4H0xfEeSzn2no105 DloY2yEP50Qhupi/788VLaMsutS58YQBhMvWoaBQvUcn7gGN8jR+Bgmsrsh25DCl0ydW MYiYjvJW6PzlwXHfSNPb0MIByGpsOkTMG32g0I5RSMkQtnW3wuxSEkPW99uaOt9VOsll dT2k5BqXqFKag1Q4UG5Dsdqf2jMpWigDm5gSdJe3Iu2hOOdpb0X1pWP9io/1kc18xQ5x rPPpM1s7NR9TqrjqVcNWnKywpEvk33kA4znLciR62oiySin/A88sHsAyR9QD80RiwH7h ns4A== 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=8ne9/66fzNnqSrx7C88pPEdCm0f/kRbSaQoxLFDwHnY=; b=D51dBAcx943rBNrRwjER0NRWb+AwWaw3Gi3o2BtEJrOPL+Coq7fHrIK22xFR+nGbN/ WZoGKp6VUWNZqVOibHkOR6n+aNKV7kpPBOLI4w2m1FJD0LV47/unnZZSdsKjEISBr2Tl IIVIajMr+p7i6kXhQ/Nl6pbqWczAxGbdKyU8k2U1b03T3N34hghh8zscuOe14MC6qgpl qf07wtYkJRC2MRZFcsAixoboNdSo7WVr3M3ZXlYDrlw3PFsXKVUfhSgRty3kaRVwELik UltALfsDIELxAGfzDfbXjnlOjk0LhLzZhHEvqz2uY8/THRbEQkIMwHDdDQqCcJ5O458m 11vg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b="J/sRy4uC"; 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 68si1257123ple.89.2019.07.19.03.06.07; Fri, 19 Jul 2019 03:06:22 -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="J/sRy4uC"; 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 S1727602AbfGSKFm (ORCPT + 99 others); Fri, 19 Jul 2019 06:05:42 -0400 Received: from mail-eopbgr40092.outbound.protection.outlook.com ([40.107.4.92]:10046 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727571AbfGSKFk (ORCPT ); Fri, 19 Jul 2019 06:05:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F5UgrP1u/MqJ7gpV1x4YF9bApi9AIFIG/e62ykFGdrlxrA8HtonBfHwTMP/awd51ivqnnEFKwv/JR6Ow0JkTfbPByY80gIbBr+cxEDJNtnRLY+rYImXhxQ1MPRR3VL/eINShn155PLFqWFxF9Mnm/GuJF8gN+VUWBoaEwg1Wi4BHWx8tt2e/KpuBG44x5ot4o3AIsdQNMZhvRkOKzJN+LpBYsmqnMkcBF3UgJ0uJ3QXcmQ41JbdHbwW4jgH4zxocY3kOmGWZzhO94oNPa6aqYQP23XAL6KOHqSE+iJJUdTYOcxDDHUck5o8etPr2IEGk4PO+cWdqCAwL7CB81gfuXA== 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=8ne9/66fzNnqSrx7C88pPEdCm0f/kRbSaQoxLFDwHnY=; b=NKOh129T3mh0QizRbbYSMaOZ/vy4bra3NC5ImkoKUmZoWeZ9fPwTipK7FLey/n56MkOJSDRaQVA5F+ubHAeAkOn8OuezuVT4hpUwJNhLe4E2GdCRG53b7WoxF62pX2qdBt16zUV4lqNiVTi7pwROIqS3IUuNNt58q1ixVx+F18bX2+IM5oIwIkbhghKfpRhds5b4Gq0pzakfV2BQGBl+S8mA/JoJPNdg7P5GCaT41iE99EXQ/GqnXfA1zyL7g1eUPA5E47dI4JmyPTPaMT7ZHgpdpfwh5BLnEBu1LNT2mayt4CPyDiwOZzJ7+wznYTaCj0lwKGeSieIWDJfKwZaw+Q== 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=8ne9/66fzNnqSrx7C88pPEdCm0f/kRbSaQoxLFDwHnY=; b=J/sRy4uC6bJr+F668hNnBTFcNSvjDsG85p1ZoDxAQcXabJZrF725f4m9vQp2R5F+bH0I0pILpyLF+8fIX2bhZzPNaWTmpDnBjDIth1Z406sn69BZpHQKS8r8f+sr8PdgFH5mK4/gFW8LTRVZBobtCPrFbCp+qSMiG1RqO2eeCec= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB5925.eurprd05.prod.outlook.com (20.179.0.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.14; Fri, 19 Jul 2019 10:05:34 +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; Fri, 19 Jul 2019 10:05:34 +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 v6 4/6] ASoC: sgtl5000: add ADC mute control Thread-Topic: [PATCH v6 4/6] ASoC: sgtl5000: add ADC mute control Thread-Index: AQHVPhmB+ZcOy3sA7kOKlGoQrxM/0g== Date: Fri, 19 Jul 2019 10:05:34 +0000 Message-ID: <20190719100524.23300-5-oleksandr.suvorov@toradex.com> References: <20190719100524.23300-1-oleksandr.suvorov@toradex.com> In-Reply-To: <20190719100524.23300-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR05CA0093.eurprd05.prod.outlook.com (2603:10a6:208:136::33) 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: 6181830d-fc35-4aab-b83a-08d70c30a3fb x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM6PR05MB5925; x-ms-traffictypediagnostic: AM6PR05MB5925: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-forefront-prvs: 01039C93E4 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(39840400004)(396003)(136003)(376002)(366004)(346002)(199004)(189003)(14454004)(68736007)(8676002)(50226002)(6486002)(8936002)(54906003)(305945005)(7736002)(71190400001)(71200400001)(6436002)(81156014)(186003)(99286004)(66476007)(66446008)(66556008)(64756008)(1411001)(81166006)(2906002)(476003)(36756003)(66946007)(446003)(256004)(6512007)(86362001)(6916009)(26005)(478600001)(66066001)(11346002)(52116002)(53936002)(486006)(76176011)(2616005)(25786009)(1076003)(6506007)(4326008)(44832011)(3846002)(6116002)(316002)(4744005)(5660300002)(102836004)(386003);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR05MB5925;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: TbbxHtuFyzW1mB0UnLBRshDWJuuDCC9i6G1VYjI8Utvyp6LLAcb7ctQRbRAh5P6+HeqzMhdM7aLjS0s74bBOysJ+yuuWQG6aAmz/wzqhOjxoIumJQFran1gcepKzJfcTm0FxtvrB6xMZ/T035CbCyiG1LBK+I/HQrUejshsUja7xzkmvhA6BLqN/GPns3pgkTRlU4DtisnA8TOoLKx5AMLjUFJoSd6DM1tFs6lJyXtlc/ZapRwolZf+lOhtWeFo60xOPeV/VNGUfYlaI+1ZXnCgqGUu7aIx7IzG4PjuSLSICNwGhtiF7yqlt+/iVOXtH00VJ7yoAuMQStlq9cK1gz/kC8XuMss5SuQZwuJyg6f8CmkCx06zTmTqJgnnSe88PnzL18p2RZnk41MXljrEFgxp5JePT4HXdE5ZTIPQsf9M= 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: 6181830d-fc35-4aab-b83a-08d70c30a3fb X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2019 10:05:34.6840 (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: AM6PR05MB5925 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 Reviewed-by: Fabio Estevam --- Changes in v6: None Changes in v5: None 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 3f28e7862b5b..b65232521ea8 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -720,6 +720,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