Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2016617ybi; Thu, 18 Jul 2019 02:04:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+MVfYoV4cfskSFinml+jExedH1T/FVjbF1xbX1c767jVOtVSB+UQPsvqwLQxWNc5SGfCP X-Received: by 2002:a17:902:bcc4:: with SMTP id o4mr47941542pls.90.1563440675346; Thu, 18 Jul 2019 02:04:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563440675; cv=pass; d=google.com; s=arc-20160816; b=RpQvRYqbhB4tYa/oGujHnHxp98cC65z4+f+ohWE9ve5UoXsQE3QB3dIP9EXYeKtNfM cDGHKyXxtOAGg3LSOVm7yuYY9iGtDgHuUSyxzMBcidh9f1Cr2ZxHc9WYvKkVY3Jnkhxm ZiHaZ1hIKn5mQ3XMGmWcRZfC1PWz6+zg97OoE1GqtYyoSZfbWucly4Iw2yBPpW6Y5oOC w6wO71vXqayE/HoIs1Y1iiKFZqwTLkOglJK/w3oQ8M+vjmzB2nmuXxj64Xxz9m3FX0f3 sbM51rsEMzAGvoCJ9Sf3kICVZJum46HwssvjVLsh8RlsI9keiWO/zH/TsNG1vlxgLanO 8LUg== 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=45X+Y2bERyBfazVTmZxOV1DjVVuSO5pnlowazssve3c=; b=uzwmDvFDNu9H82WDc8pmiI7G2cZgIYK7Sa0Fzv+y1aoXadHKcBsmREfVGmV0nlQmI6 VpcboRyx0QyRb0puFNMwhd6RRd2rS5cFNFDeYNxsNq55eNhXkeZ1CgZogKxWiN4zATCi bzsuo52d6JrFb6Ojx8ALml3sDtCaDuWLaIuXof4a2RpLL3ugbsYE1b4peeBWwTQhJJWF eqf+MyjcfAUd+dCJhfKQJpbCLFr2NylcGeBVjp9UesKZpDFFtpCQw2iaxxIul4qvMBon BDw8kTKqWGRfXmmbXxy79O8OSQbgKmDEZiHegrFye9bpybTDW4BXGmeV0Vc9dIr6e9Si aAeQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b=SrEJySmM; 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 k73si483263pje.10.2019.07.18.02.04.18; Thu, 18 Jul 2019 02:04:35 -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=SrEJySmM; 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 S2389705AbfGRJDA (ORCPT + 99 others); Thu, 18 Jul 2019 05:03:00 -0400 Received: from mail-eopbgr150109.outbound.protection.outlook.com ([40.107.15.109]:61477 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389657AbfGRJC6 (ORCPT ); Thu, 18 Jul 2019 05:02:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DjNEVLu5YDKYDry32xW80etNyJ1iU99mRu/+9yCJhIrOslIwFg7r1rOI2t6efhSodWFxFqyrWoKHqKuTriOH+hmRu97VCBC6OYb4mvt5s7sTC8d+pIEM5Bx0iVuxQ8dBoRi1Uxe8PvcnWsv1cbIZyi/m45DNNsf93yNfgURq7sAJDC7rOaOM5GJYeW2pNe+QaM3XNoffvUGXZ51L9OAkD0mVcFrIaAjvD4VtjUWA4HYlwHiuuAUITDANijcMp9uOU+HBnox3a94ejFrcBHsMHDz0rofRL6tZ/vtA7temyIpVAYgAvbOUWtzDe4WowWGYgaVEw20vgRT7h6QDnfWjmg== 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=45X+Y2bERyBfazVTmZxOV1DjVVuSO5pnlowazssve3c=; b=hN7qLEflPlQ1QhNS3kY4kTuGwrWsJdGW+aMYwUF97rniOFAbp1Eq6dH3K8nm4GudV/gPFU/5GW7H4JsbpQ4SwW4ehs3gkELB/1fG/Zcs0jmxaOuxcziE5nbl9azw9Nr9/R91JPRryxKJbek24n7LV+m/+T8iRO5vj42alECQqLktkmAxQGAvowZAyYStIv8Le/FTK4u8kFYxM0243H3npT88ZxjRi13UR3JmpHPKJxPQ7cbAgFD2RY9kJ/KlXIsGdHLOoGztsXR0gI9PQlWyU1XJ5CZGwEshBGtkN7fxmyskoBQRXmspB2it90G2jUB5lGyTD7LYfJrVz9ZQnhqnTw== 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=45X+Y2bERyBfazVTmZxOV1DjVVuSO5pnlowazssve3c=; b=SrEJySmM1iY2dCpRPscd6btFW1n1emjA2SjCOVfLHT3tp25rn3Do5BbN7P5tKlVAd/3DcefJWKm+cVbRX21jYaLJR/c6HBNBPuYyJQ6x94RQKHVHVQ4E2ERTd3cSk/FCNTZktgZ0+EKByCm0xL9PKzMEuRENvaOyaPPVFIHF7b4= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB5013.eurprd05.prod.outlook.com (20.177.35.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.12; Thu, 18 Jul 2019 09:02: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; Thu, 18 Jul 2019 09:02: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 v5 4/6] ASoC: sgtl5000: add ADC mute control Thread-Topic: [PATCH v5 4/6] ASoC: sgtl5000: add ADC mute control Thread-Index: AQHVPUeTL7C42F/420K4CqAM90BbWw== Date: Thu, 18 Jul 2019 09:02:51 +0000 Message-ID: <20190718090240.18432-5-oleksandr.suvorov@toradex.com> References: <20190718090240.18432-1-oleksandr.suvorov@toradex.com> In-Reply-To: <20190718090240.18432-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM4PR08CA0058.eurprd08.prod.outlook.com (2603:10a6:205:2::29) 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: 1ceb33f8-3a81-4a7d-c879-08d70b5eb654 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM6PR05MB5013; x-ms-traffictypediagnostic: AM6PR05MB5013: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-forefront-prvs: 01026E1310 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(39850400004)(346002)(366004)(376002)(396003)(136003)(199004)(189003)(2616005)(99286004)(68736007)(476003)(446003)(50226002)(11346002)(486006)(86362001)(8936002)(81166006)(76176011)(81156014)(26005)(14454004)(4326008)(186003)(386003)(6506007)(316002)(102836004)(6916009)(54906003)(52116002)(36756003)(6486002)(6436002)(71190400001)(71200400001)(6512007)(25786009)(66066001)(256004)(66946007)(64756008)(66476007)(66556008)(66446008)(1076003)(1411001)(5660300002)(4744005)(8676002)(478600001)(7736002)(44832011)(6116002)(3846002)(305945005)(53936002)(2906002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR05MB5013;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: S7wzwTfOrl9dYaeAUK5URitFYxl9sn4UBtBfgZfv4KPooKlR9/thtyub4Az3sW3ftV72z5vfu/34nIM3CgJkxZZ/OHmt6I1q2Lljb63hc/Th/Mp0ZE3afsBvESIAiyzKRjLzHrUd3+A87WmmO8RUFmCtbIo7CAUzEeTH0U48apZelRv943pW0zzjjvqJbVsVj5J+Fc5FF/jc1TdkRFuZJKtcuvjm1GfHclKEMbGMW9PamgNvJu62QHk0Qzw9yUDxGLFjqiLNOSUN+3E0yC8p9aMd9RCnhKodyNN3zPQ4W7og8idH80YnsMA1IdMi91YoHKLsN/6Z0TNnpBFgnD4zx+3vOOv/B9YD0wcKKcLsigvMsieb9bidjAi23PrcXOS7BNgjswbEElmf8DRI6/RsgNyni7HXeiDrBl1SYBHqeAM= 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: 1ceb33f8-3a81-4a7d-c879-08d70b5eb654 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2019 09:02:51.1644 (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: AM6PR05MB5013 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 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 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