Received: by 10.213.65.68 with SMTP id h4csp1862136imn; Mon, 19 Mar 2018 15:33:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELuyVpX0yQxhCIQLvhwCMdAneGOaAGbaBc27td0rQvBdpQtUMIVR7PsbEQY40sAu5JeTWVqL X-Received: by 2002:a17:902:8483:: with SMTP id c3-v6mr11663928plo.156.1521498825819; Mon, 19 Mar 2018 15:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521498825; cv=none; d=google.com; s=arc-20160816; b=yv0+gARLubGRw5Z0SZ4WLQoxje7NwTBUMuQD2TCKSFwM+fUYRyvligppQ6L+mqOUor XorWV1S1X0qgbdCi/4qXqoHc2fyJXK8wqJ+0I/xa0DCuyovxmUoTOsBE4vqJBenr0PiS dzK72EZTZqu1cqilPq2DkTtUU+FJ8yubLtzAwyMuJe7t8BR8+2vwbWkmh65YjMrHPt6a Qyg5Ixoe20krZDhB8oamE1GPrlBWkWUBx0em78OnfX/IsMy2nM1SmbENCsac/IQacIdp PTkuMaoiUkYsa3LmwPrDKN1QeLLr7DnW3eggh0foRhcEiJLDKLWaR6EQIZmErRSpYUvV 6lMA== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=IKe9ZdAHm/HEP0m3VFqGaYQh2FRi3VyvqOjUTLv/y0U=; b=EI7eWT1DhYk10t+ecF8VR9gZdJN6onPN9krD1dUCdh6lF3WRc8cqgSBY07rPkbN8gY Hc2fSlw915IuPlJXQnqFRjO/zbb7h8raE6JJozTZV+/vEfCzlp9Ts4pJcwQ4bmb/PPuW DztXOAbAgSOn4LoAzhyCYsnTxR9uKfw+HuXTL0cmYcWDVU9/lOJZZr2ozEqS3xLTWfk+ T7kWxIxLV3K3/PTNUyUJQJZwQuiKPJWcaLudDV5jvf+bB1bcOlEKIQREH1r57pPfBRl4 DLJdQ7Cjxtr56camW/lnwz8nxbdkw7TYwp6T2WwqaTBkRwUZVFaJR+kNRuu+PVH4zp9q yT9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=nZPMX0mS; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si143001pgn.559.2018.03.19.15.33.28; Mon, 19 Mar 2018 15:33:45 -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=@microsoft.com header.s=selector1 header.b=nZPMX0mS; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S972463AbeCSWa0 (ORCPT + 99 others); Mon, 19 Mar 2018 18:30:26 -0400 Received: from mail-by2nam01on0119.outbound.protection.outlook.com ([104.47.34.119]:13392 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933758AbeCSPsX (ORCPT ); Mon, 19 Mar 2018 11:48:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IKe9ZdAHm/HEP0m3VFqGaYQh2FRi3VyvqOjUTLv/y0U=; b=nZPMX0mS0HIY2Hv1r49U1hz2A3IGKaAFnKPygs97L380fMSf20PoWnb8WNobDtxaer9g0O5AO/vkutJvRLPVXTqyouLBKS7FB60WIQ5eqbQx4noFmi7JYeAuOjtrMjryZczdak+w1cXVwM5gD0kyM8y1MlYtuyHzgtyp6NhREXE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1030.namprd21.prod.outlook.com (52.132.128.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.1; Mon, 19 Mar 2018 15:48:05 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:48:05 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Hans de Goede , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 037/124] ASoC: Intel: cht_bsw_rt5645: Analog Mic support Thread-Topic: [PATCH AUTOSEL for 4.15 037/124] ASoC: Intel: cht_bsw_rt5645: Analog Mic support Thread-Index: AQHTv5mbIesFz3pH/kynEw2Nkiykfg== Date: Mon, 19 Mar 2018 15:47:37 +0000 Message-ID: <20180319154645.11350-37-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1030;7:KYhGUSl2O4JQFtBn6lXUPYUl5ICB7Kiz38wEeoHTH2HRyzKZ0Ub7cfbnumLSaf12dI9OX1/k3IVCr9zGuC1a0HSPnh3/SUqGwQad3XQ5uroAAPvpNypOB7ZTdhZODtHtquB1LaMECVNEsr0JSMxg+edrRIoVpJJv+nFb1McUOhG/9szIzU7sr53peMsvpKsj81l0ufTvl4SC0sx2c51KSthMokd+qyQtOYlEJiHYado+ZwcGZK+0PDaVZzG0MGWL;20:X4Lnme2amzmagZeiL6Ubupatt13aYODMUH6+6WehLfpG2s5fw/EupS4P4kL76lWYi3lB+BncTCFo4Ptr5xxyirL4WxPayjGuJ4FzDUjV8pWWSSGm/hgiihlo3lLctYfgWUIomWlTsCAplFsp6LBH5+Oyq+roqklBa3bIPqdXXmo= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b70f89db-0efe-468f-754f-08d58db0ce13 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1030; x-ms-traffictypediagnostic: DM5PR2101MB1030: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231221)(944501300)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1030;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1030; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(39380400002)(366004)(346002)(376002)(199004)(189003)(2501003)(6486002)(5250100002)(478600001)(86612001)(102836004)(1076002)(97736004)(99286004)(72206003)(6436002)(2906002)(107886003)(66066001)(10090500001)(81166006)(6116002)(81156014)(305945005)(8676002)(86362001)(7736002)(68736007)(54906003)(110136005)(26005)(3846002)(105586002)(3280700002)(316002)(53936002)(8936002)(186003)(76176011)(2900100001)(6506007)(36756003)(10290500003)(2950100002)(22452003)(25786009)(5660300001)(106356001)(3660700001)(4326008)(14454004)(6512007)(6666003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1030;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 0sKehCptbmbjGNC1CKd/hjTeS2WZjteZEUB7uFMnYI7H4yBx/DQExTEcn55WkdBRsyIgZASSTscqfZ2qkZX3HNF8xB3mXT2q5q9rkvsoicwpwxaS7z/D9jhnZaEv8fQz3aIS8zMwFcdclxUPfrqw0uHqGkf9MotLfiA5J+YVM8pVQeQFljBQI2/n2hMX/0oXSVVz/MGLAQtNrlqgAk164xn2rC6oAqKHginOpXkxNeDXHzYYu31XK/pPbbCc/8MX+hQUoXETPbOPQaNybgtLovvi3p882MyOH7IIPtbQbv82Pgm50YZ23AAZI+pbti8disFLGUIHs/dZLnu/HL4TcA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: b70f89db-0efe-468f-754f-08d58db0ce13 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:47:37.7132 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1030 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit b70b309950418437bbd2a30afd169c4f09dee3e5 ] Various Cherry Trail boards with a rt5645 codec have an analog mic connected to IN2P + IN2N. The mic on this boards also needs micbias to be enabled, on some boards micbias1 is used and on others micbias2, so we enable both. This commit adds a new "Int Analog Mic" DAPM widget for this, so that we do not end up enabling micbias on boards with a digital mic which uses the already present "Int Mic" widget. Some existing UCM files already refer to "Int Mic" for their "Internal Analog Microphones" SectionDevice, but these don't work anyways since they enable the RECMIX BST1 Switch instead of the BST2 switch. Signed-off-by: Hans de Goede Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/cht_bsw_rt5645.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/intel/boards/cht_bsw_rt5645.c b/sound/soc/intel/boar= ds/cht_bsw_rt5645.c index 18d129caa974..f898ee140cdc 100644 --- a/sound/soc/intel/boards/cht_bsw_rt5645.c +++ b/sound/soc/intel/boards/cht_bsw_rt5645.c @@ -118,6 +118,7 @@ static const struct snd_soc_dapm_widget cht_dapm_widget= s[] =3D { SND_SOC_DAPM_HP("Headphone", NULL), SND_SOC_DAPM_MIC("Headset Mic", NULL), SND_SOC_DAPM_MIC("Int Mic", NULL), + SND_SOC_DAPM_MIC("Int Analog Mic", NULL), SND_SOC_DAPM_SPK("Ext Spk", NULL), SND_SOC_DAPM_SUPPLY("Platform Clock", SND_SOC_NOPM, 0, 0, platform_clock_control, SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), @@ -128,6 +129,8 @@ static const struct snd_soc_dapm_route cht_rt5645_audio= _map[] =3D { {"IN1N", NULL, "Headset Mic"}, {"DMIC L1", NULL, "Int Mic"}, {"DMIC R1", NULL, "Int Mic"}, + {"IN2P", NULL, "Int Analog Mic"}, + {"IN2N", NULL, "Int Analog Mic"}, {"Headphone", NULL, "HPOL"}, {"Headphone", NULL, "HPOR"}, {"Ext Spk", NULL, "SPOL"}, @@ -135,6 +138,9 @@ static const struct snd_soc_dapm_route cht_rt5645_audio= _map[] =3D { {"Headphone", NULL, "Platform Clock"}, {"Headset Mic", NULL, "Platform Clock"}, {"Int Mic", NULL, "Platform Clock"}, + {"Int Analog Mic", NULL, "Platform Clock"}, + {"Int Analog Mic", NULL, "micbias1"}, + {"Int Analog Mic", NULL, "micbias2"}, {"Ext Spk", NULL, "Platform Clock"}, }; =20 @@ -189,6 +195,7 @@ static const struct snd_kcontrol_new cht_mc_controls[] = =3D { SOC_DAPM_PIN_SWITCH("Headphone"), SOC_DAPM_PIN_SWITCH("Headset Mic"), SOC_DAPM_PIN_SWITCH("Int Mic"), + SOC_DAPM_PIN_SWITCH("Int Analog Mic"), SOC_DAPM_PIN_SWITCH("Ext Spk"), }; =20 --=20 2.14.1