Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1800056pxb; Thu, 16 Sep 2021 16:14:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLhRZc97ZN3jLw/F64hCPICuVxi4walUUkLDarDg/WI1jEDXXzoE2FN9nts+KdCap37QW+ X-Received: by 2002:a17:906:12c6:: with SMTP id l6mr8475788ejb.373.1631834094236; Thu, 16 Sep 2021 16:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631834094; cv=none; d=google.com; s=arc-20160816; b=s7exubtFXyP3J3YbkLZ56rUs/AYZfU9IWTQ/VdZUIk7aYciFDBXEVIy9xXkYPV+gP7 BJgvonM8x49zMXE9rGgw+t390csXamuH9irMbWj2Otk12FIJDza4araPJGdbrYzI8P05 /Le2c4beT8KQHAoAy1UwzVXEztcn1V70Foy1w2uwoi61n7uDyZC4w+J9DPmQL2NrOSWd Nlrkgp254mzdyQMvtFn95oCnWd7kOqZOfqlLVacw1wrFK39qXxWp+lXwjRo9v+dDKLTh 000BiE8dHllJmcp1dDkaZpmoqAvCN8wXOrQyUUBGCGETfmvj9wAR4inOo59e6kncGNh8 Z/Yg== 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=nu+s5Wsl6rEl82WQQb9MRSxbozzrJ7uM7UGI+1f92eA=; b=nYosaXhhpMzJNbk+wz+fc1RKj7VbaIk2H9ChElxjuHBfxH7Se6NGoxtlSesGSgG7r2 maX/y+o+A6xPVqxiSsQwvTeSXJMT+7RId0HbP2bjds1FNyq5WI9GVupucTu03nxwkW6u Kgdfo4ZcLVWxzw96xaTgjhB3Eq9L5OVO2u1blJjMmakb6MsS0IV21yIRmiJhixw/kZin FeVDMA3f7DOGFWqiFSzyU8nnsH4fve4DtXnMmla/aeGdVLYGkYCK5Zby9JKZslm9VIh9 sa0+RWUJhRWJVtv0RPwdvxWs0k1J99SrSTr87vj0UhWEbGHx+Z8TGhtgPGm4cugmwiO6 7Itg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F6S2q+WV; 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 l15si5142724eje.462.2021.09.16.16.14.31; Thu, 16 Sep 2021 16:14:54 -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=F6S2q+WV; 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 S1343868AbhIPQwr (ORCPT + 99 others); Thu, 16 Sep 2021 12:52:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:58998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244871AbhIPQrw (ORCPT ); Thu, 16 Sep 2021 12:47:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E0E1361882; Thu, 16 Sep 2021 16:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809618; bh=Lc4+sA1v5F/jes2Rb9XXiWEbIV278sT9/liBkcqxlbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F6S2q+WV1ZjAVZGsEVKPgS0T5Akyi4xhKhEuuB7malV8yvaj/48aUVTnbNINdJRLC VPIRvRnu+LxkRcrMfOmfQEMpOd3Sp4Arq490X/sz6CBIAgVK4lqnpzk6BBGv8XcGow 92Ac36NNB2RCkXzgaryuKpxDEvOHW1q8U/sd0kc4= 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.13 221/380] ASoC: Intel: bytcr_rt5640: Move "Platform Clock" routes to the maps for the matching in-/output Date: Thu, 16 Sep 2021 17:59:38 +0200 Message-Id: <20210916155811.607018268@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@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 22dbd9d93c1e..4bddb969176f 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -290,9 +290,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"}, @@ -300,19 +297,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"}, }; @@ -354,6 +355,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"}, @@ -361,6 +363,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