Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1713980pxb; Thu, 16 Sep 2021 13:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgoFgFO+TRGAwz5Wf9pZ5hSg8C2bfA4wXctGdd8S8scb7OSXXjAwBFdJG7PgSzyfo66y4A X-Received: by 2002:a17:906:c055:: with SMTP id bm21mr8348105ejb.350.1631825063525; Thu, 16 Sep 2021 13:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631825063; cv=none; d=google.com; s=arc-20160816; b=alKe87VplWtXPDWFEghaIZtthn10GYzsTy4+p2t9m0ybo3n9QvOMGpJTESCAvX0Qxo KHPvSOGzfnJFE9PI8sPS9qiSQPaHYZn0Ysbcp6H+zlZKw6zWnl4utidVPhcBf9tZUMQz C9oa0YGx50iXyVSTU/CY2PJeFq5EigaXbbzXSc9DDYFWQLsHZxU9LsFNS87dCd0zNLC5 mROpO+AnWi2w9+qnbyh0W/s2ITmHOVLBa+PTiiQZis0Xo/CsoC/a7/FxivPdFcFZispI rGsTWha7jESaNf+YPyp2PluxyXXQt1DYAC2bZCSThbpizA11urHu2hrM6Nw50MyGZs5l BNRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=f1dScStOkNPXuUD5626UTmx7SFoLN/4m22/Vo3p9BDw=; b=lt7oQaKYvT+8dPZdVypvFh/AN9USFnYHpT/VVBoSTEcsXWWw06tybzZ33NgTgYAHTo S9i30iNKQkbNGbWwnf+JR4/ZjZJWkvOPtoM23QSVxSOlqA9kLszSwqXsqS5727Splt4A ZSKes8eQPrEGDX24mUjGEwafwZQaX2qy7MRPnf7L23c69T9UbBibRDi0OTdcZfTSqiea lyJ0cZXefR2QTu4VgNImJwLDKxsl16gnuMVlrobLoBZ8DN4L2+IXIkSdkWMcfHhIEUki ooq4+3cOFC9B1pKYLRR1xLfS91FxLaxdSFyQVOuiS8FXndCAvY8Yal762cYjmE2Lsigi 0b2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lDp4neTo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si3584787edb.337.2021.09.16.13.43.59; Thu, 16 Sep 2021 13:44:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lDp4neTo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241365AbhIPQ06 (ORCPT + 99 others); Thu, 16 Sep 2021 12:26:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:55040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240832AbhIPQRX (ORCPT ); Thu, 16 Sep 2021 12:17:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1BEE61373; Thu, 16 Sep 2021 16:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808740; bh=cV1bULndHYuO+pws6De6elADmnvVsd2GUAbeYhywzrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lDp4neToCkQgCybxzHQVqvwZs7522iLZjbenXK1H8csiOqpywq9D09QO4IOnVuj5j HL9I9xKLQ0y1cTBQMQKpf6EqrQLI19GnrATRqvXDrPbRpPMlHZx4yJcqHHs2OWkEOc 1GGQntx63uvrvQ/kYO8oURuYMavC9Gz7T46QV0sE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.10 177/306] ASoC: Intel: bytcr_rt5640: Move "Platform Clock" routes to the maps for the matching in-/output Date: Thu, 16 Sep 2021 17:58:42 +0200 Message-Id: <20210916155800.116356609@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit dccd1dfd0770bfd494b68d1135b4547b2c602c42 ] Move the "Platform Clock" routes for the "Internal Mic" and "Speaker" routes to the intmic_*_map[] / *_spk_map[] arrays. This ensures that these "Platform Clock" routes do not get added when the BYT_RT5640_NO_INTERNAL_MIC_MAP / BYT_RT5640_NO_SPEAKERS quirks are used. Signed-off-by: Hans de Goede Acked-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20210802142501.991985-2-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5640.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index ca14730232ba..43ee3d095a1b 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -286,9 +286,6 @@ static const struct snd_soc_dapm_widget byt_rt5640_widgets[] = { static const struct snd_soc_dapm_route byt_rt5640_audio_map[] = { {"Headphone", NULL, "Platform Clock"}, {"Headset Mic", NULL, "Platform Clock"}, - {"Internal Mic", NULL, "Platform Clock"}, - {"Speaker", NULL, "Platform Clock"}, - {"Headset Mic", NULL, "MICBIAS1"}, {"IN2P", NULL, "Headset Mic"}, {"Headphone", NULL, "HPOL"}, @@ -296,19 +293,23 @@ static const struct snd_soc_dapm_route byt_rt5640_audio_map[] = { }; static const struct snd_soc_dapm_route byt_rt5640_intmic_dmic1_map[] = { + {"Internal Mic", NULL, "Platform Clock"}, {"DMIC1", NULL, "Internal Mic"}, }; static const struct snd_soc_dapm_route byt_rt5640_intmic_dmic2_map[] = { + {"Internal Mic", NULL, "Platform Clock"}, {"DMIC2", NULL, "Internal Mic"}, }; static const struct snd_soc_dapm_route byt_rt5640_intmic_in1_map[] = { + {"Internal Mic", NULL, "Platform Clock"}, {"Internal Mic", NULL, "MICBIAS1"}, {"IN1P", NULL, "Internal Mic"}, }; static const struct snd_soc_dapm_route byt_rt5640_intmic_in3_map[] = { + {"Internal Mic", NULL, "Platform Clock"}, {"Internal Mic", NULL, "MICBIAS1"}, {"IN3P", NULL, "Internal Mic"}, }; @@ -350,6 +351,7 @@ static const struct snd_soc_dapm_route byt_rt5640_ssp0_aif2_map[] = { }; static const struct snd_soc_dapm_route byt_rt5640_stereo_spk_map[] = { + {"Speaker", NULL, "Platform Clock"}, {"Speaker", NULL, "SPOLP"}, {"Speaker", NULL, "SPOLN"}, {"Speaker", NULL, "SPORP"}, @@ -357,6 +359,7 @@ static const struct snd_soc_dapm_route byt_rt5640_stereo_spk_map[] = { }; static const struct snd_soc_dapm_route byt_rt5640_mono_spk_map[] = { + {"Speaker", NULL, "Platform Clock"}, {"Speaker", NULL, "SPOLP"}, {"Speaker", NULL, "SPOLN"}, }; -- 2.30.2