Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp159813yba; Wed, 3 Apr 2019 06:28:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGpCfKR92TLDL5NUOTdvcPfjAagBFL/yPK30mr8RWa8kkXvHMUghWXdVJZy1m6kbPyIYPJ X-Received: by 2002:a62:121c:: with SMTP id a28mr74136019pfj.58.1554298100436; Wed, 03 Apr 2019 06:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554298100; cv=none; d=google.com; s=arc-20160816; b=0LxUI5xAjJ7zIcDtA4DjOrl3a/zpWRq+hVV+qa3Ee5YCuhXEcSjXz+ek72xhHKIZz8 JJ8XdtNA6cxB8GJrfYYJBapKD0YPlLoCNyx6IGySAsn2JCfYFjAHjXEkKWvrhBsUyens +TEl03dnCtI93LvLYmp/1O9fyrfRIpFctYC0jYY5np0OSEzhK5/egRn+CN4mezkQsiGR ioPrV0KGy0pCr4flarcMwgS9xDt8q6SDqR2AqdRTpaeKKmI91YTuCAaNZhIozA+MMrmY 9V9XEdfIi3QEqFuwGvtu+IPRTQzYi2LC6v7THIWZ2JW9AG0w6PuxMEQGYO/Ji8y6UGvZ 1stw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=F5x1oEkfmaUh5i0M/L/68NoDZrf+0HHzKKqoOGIGQXg=; b=YJ0CftKJdPsXmO8sEAJ9Wu5LSZD54zhWfzheKfheQPQX6ePTFATAS0sIPzRHBBOack gyr0bEbG8X8PMO/uH6b06YxB41FhWZyUImxlr78TPeFpBVsV4nYsIzxGcHDwAfiW0low O3vWMxUmrqlE6dqWgq0rap9OjyWl6QrqWrCjPUTd8gglhqpawU7OPLVdXGX9PI6fok6I gRjHLt1GxvKWgsPnYYKH+L3+V+iiofVB0UtdAQ2Ks1qSP9feexA4SW3YXDpoMcMs+x0O NF6QgXCH9vNEO3b8OWlJ9L/9Z2y3S8xFkXM1JUtnfun8x6gbMEh+DYYeX5emn6Y+fSh6 F15A== 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 f9si4977557plo.101.2019.04.03.06.28.05; Wed, 03 Apr 2019 06:28:20 -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 S1726864AbfDCN0g (ORCPT + 99 others); Wed, 3 Apr 2019 09:26:36 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:30426 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726615AbfDCN0H (ORCPT ); Wed, 3 Apr 2019 09:26:07 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x33DL6lL012288; Wed, 3 Apr 2019 15:23:48 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2rmgmx44jq-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 03 Apr 2019 15:23:48 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 704F931; Wed, 3 Apr 2019 13:23:47 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2B10729C0; Wed, 3 Apr 2019 13:23:47 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.435.0; Wed, 3 Apr 2019 15:23:47 +0200 Received: from localhost (10.201.23.16) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.435.0; Wed, 3 Apr 2019 15:23:46 +0200 From: Olivier Moysan To: , , , , , , , , , , , , , , , , Subject: [PATCH 5/7] ASoC: cs42l51: change mic bias DAPM Date: Wed, 3 Apr 2019 15:23:35 +0200 Message-ID: <1554297817-14154-6-git-send-email-olivier.moysan@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554297817-14154-1-git-send-email-olivier.moysan@st.com> References: <1554297817-14154-1-git-send-email-olivier.moysan@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.16] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-03_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use SND_SOC_DAPM_SUPPLY for mic bias DAPM instead of deprecated SND_SOC_DAPM_MICBIAS. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 397b68901d1c..33298a7a8aab 100644 --- a/sound/soc/codecs/cs42l51.c +++ b/sound/soc/codecs/cs42l51.c @@ -206,7 +206,8 @@ static const struct snd_kcontrol_new cs42l51_adcr_mux_controls = SOC_DAPM_ENUM("Route", cs42l51_adcr_mux_enum); static const struct snd_soc_dapm_widget cs42l51_dapm_widgets[] = { - SND_SOC_DAPM_MICBIAS("Mic Bias", CS42L51_MIC_POWER_CTL, 1, 1), + SND_SOC_DAPM_SUPPLY("Mic Bias", CS42L51_MIC_POWER_CTL, 1, 1, NULL, + SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), SND_SOC_DAPM_PGA_E("Left PGA", CS42L51_POWER_CTL1, 3, 1, NULL, 0, cs42l51_pdn_event, SND_SOC_DAPM_PRE_POST_PMD), SND_SOC_DAPM_PGA_E("Right PGA", CS42L51_POWER_CTL1, 4, 1, NULL, 0, -- 2.7.4