Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2349076pxb; Mon, 20 Sep 2021 19:42:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWQ5itWp6tUCt5wsCN0BfqTjs37IAvyObx5/wp9b1A9apKHcCLVcLwbqItps04VSe5TXc7 X-Received: by 2002:a17:906:eb0f:: with SMTP id mb15mr8898663ejb.113.1632192138744; Mon, 20 Sep 2021 19:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192138; cv=none; d=google.com; s=arc-20160816; b=Qu+i+VWfLmRSGRxPLJaL+k5B9yHHEJ4O3fTLrZrYGkaPXXcVNkvtyms3bjDVoA7EeO zwx8I/9WKBWRKWhe61E57LiJP+25g0e0CDCzPc2QWqFoN1Dyg3eQxBm/6TAJ26KXEsWl pPO2i/z4AfVLMQNhfE54pUTG83tQy4Do7eQIy3eeJGqggbh7dmVGkM3bQFEp2bLMUo88 HoPvSaKaoqdvCAw/BJrwrXF1jYd8DdE98IRpMd7V/Hnim/hOcf/BHsT+0/LSI7E+zrrJ UrIWwKQjEcX8B0SIrQJ4eVb1H/Ksbu8+lP3d6MxB9TNu14wCZClGAke6lyvEAdv80wVt wzOg== 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=pEhSLWC8ePBGNHPlNqrVhQUjMDlvm4u4eMdGAPgGwpI=; b=jeg0gZFrhjB/dj/Flrc3Vse8vp+kgjBt5HK5hXpBGPyxjCBfHfQ/TmX4cyCGCRIefp 4+NYXJXrKE9PB6bYx7mkKNrvdWcm4Da4Y/KdYJh8FAzvIL64LVFDNTFpAUMrQm6ufarQ pIQlcbUIPNv74B8gFUnxj0iQkvVEZLe8lzcxoQS/4WFCLPKjy52H7GGHLM9oguEYhMCk 1WWjF4lic16tbXCORA2/YF4oLBtRuZxxgMxiw4XRrhjwPf2dVbTCcswEWuP09fELxZ0/ p6Hn/qhjKltyThGOGU6pmgLp7FJyj5ruLbXDILpxV1RdoplE7/wbkjzqjYhbgF2cHxzi MmAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MMcI9dtD; 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 29si10077989ejf.281.2021.09.20.19.41.55; Mon, 20 Sep 2021 19:42:18 -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=MMcI9dtD; 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 S1377427AbhITSSp (ORCPT + 99 others); Mon, 20 Sep 2021 14:18:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376385AbhITSML (ORCPT ); Mon, 20 Sep 2021 14:12:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 73329613DB; Mon, 20 Sep 2021 17:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158442; bh=OSeshNkxA5GDkU2sAsgtY47kOVD0qJ8DS2MJAVhlNEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MMcI9dtDa4BKdoaCP3CSGSBc+GGfLgAkb9ylScna8aDodrZDhHjPgs9J2QcUfNZWf txfCoX+koDf3wrD+3vk96+MZ11WGKEo70EKKGkXHKb4VTdlQeBUroP7wozfz//1mCz B8ggDDEhPJ+HJA5I2OC0c1fOofLCr7uxuvi+IhsE= 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.4 116/260] ASoC: Intel: bytcr_rt5640: Move "Platform Clock" routes to the maps for the matching in-/output Date: Mon, 20 Sep 2021 18:42:14 +0200 Message-Id: <20210920163935.078482173@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 c67b86e2d0c0..7830d014d924 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -284,9 +284,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"}, @@ -294,19 +291,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"}, }; @@ -348,6 +349,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"}, @@ -355,6 +357,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