Received: by 10.192.165.156 with SMTP id m28csp47427imm; Tue, 10 Apr 2018 16:06:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx49/QGhZMcv0TinUeJaybWrTGc2WI7k8/RT7znp53ro2OJHMuLVuTcW9M6dMeiIY5v2hZ7we X-Received: by 10.99.95.75 with SMTP id t72mr1604858pgb.411.1523401599622; Tue, 10 Apr 2018 16:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523401599; cv=none; d=google.com; s=arc-20160816; b=Id+swagZKjdtN2HW351BKaLcZ0Dy6Dt8xXpGBJWJJCiB7bnKWlPLDWQK692Z2yqRpv ghRil7/CFMQ7KH0UvIsDBu5R6nrqHKRIIXEJRLAXg4ozTwVr7LZJYa6wjXcXTYeKCI7H N6dnSUUBgC7Xre1TXmEmxFBNyctEXBj4RWu3KEQWYZhom1SqN805qLmXNsojrKPH8Dx4 vLPz4hY6z2+v5odTwG/K5CuOQSAsTUFy/kxlZC3gN44+3CTKBTV7BjNcaCIPmXnMUO57 CRdlZz6iIJ80FVOqvZNBQ9Mis/F0bneUz+vf9wu0JtpnwOrJYs29FYM1yapijdEOhMfC lPsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Vwo2eukSPB96s4Esb+Ps12VFTNfD72NO3mJGbVAsiYY=; b=PqATsljYwy6tdJpIpRW0aMK8Y2Hr5+BAowaNVkBvwPZjxrX/RHOR+5/XTh4H1hFd2k 7SC6pWhqvVAHtzWFHZPkjwDWb9Y6m3Nz/YpURcjgedxjR+Pn1SJhnufb+6wG6+hwIg9H FFm33Ohm2G1Klhaqh4Gf53REq8USzxR8dbwKNdkqN9x0dZs8YdtasEgI9fKBPJ3gw+qe VAdkUaARh0ZxPIhyN6hNDtCkCECmNiVejQX+T4omj+K7AyE20FkUazd+QuCi12TXDyjc cqotION2uNPqYp2lMFRgw3QnLpWddFdhKPTm13/8ILdVjFeQqCoJpVRPTadHSBKN1UOg 1fuw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35-v6si3553527plh.394.2018.04.10.16.06.02; Tue, 10 Apr 2018 16:06:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932277AbeDJWfj (ORCPT + 99 others); Tue, 10 Apr 2018 18:35:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42220 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755575AbeDJWfh (ORCPT ); Tue, 10 Apr 2018 18:35:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 70F0CDFA; Tue, 10 Apr 2018 22:35:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Mark Brown , Sasha Levin Subject: [PATCH 4.14 028/138] ASoC: Intel: cht_bsw_rt5645: Analog Mic support Date: Wed, 11 Apr 2018 00:23:38 +0200 Message-Id: <20180410212905.408078644@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- sound/soc/intel/boards/cht_bsw_rt5645.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/sound/soc/intel/boards/cht_bsw_rt5645.c +++ b/sound/soc/intel/boards/cht_bsw_rt5645.c @@ -133,6 +133,7 @@ static const struct snd_soc_dapm_widget 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), @@ -143,6 +144,8 @@ static const struct snd_soc_dapm_route c {"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"}, @@ -150,6 +153,9 @@ static const struct snd_soc_dapm_route c {"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"}, }; @@ -204,6 +210,7 @@ static const struct snd_kcontrol_new cht 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"), };