Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp172449lqo; Tue, 7 May 2024 16:35:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFDd6hM8LoX4UmoKWwSyxMyI7SCvXn6U7AyqnlPa1U4EAnlcR8Z1C5MWpbdmQOU98CgKFHep5FcAtmyi4P07o3TGBthrCEziaUHbqKXg== X-Google-Smtp-Source: AGHT+IEIakNjgowMBPHjZ8+xy2RYLHhfKLTGkbvSBGOOccsTgN9dUuI2uTKKsckxBO5jcHknys3y X-Received: by 2002:a17:903:26d4:b0:1ec:77e5:2d6f with SMTP id d9443c01a7336-1eeb0b9b970mr10946745ad.59.1715124925867; Tue, 07 May 2024 16:35:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715124925; cv=pass; d=google.com; s=arc-20160816; b=mvY//gV/+JJ7YbQePge1D54G9nzzGffdFT/OtKzyr5OSELNg5nPbWk0yDgHYt8DBuz Da4x/2oJ3mXooztbJiqDYjS0tfRT710rVN2GGCEG1I9v4stVGb0fOqzLXKieAAU2nbT6 G3Qw5NCYYXD0POCNUysj1E3e9vwSNmizvLsFdAABWEDkhhEq7ubM0W3pA37pXWSIFFP4 qeYGtRLEhZDPDh3uXuVPolQqWXvghjcQKqIcFvbtLUS0Kk81+qHvYQ0MwN9tOoYL/wBk yi1WhtaLeJmi8O2PFHmIkUJy581IFQgu6alpxy12NG7qJOFjZ0ZYT9SbOFAyQquFwMyV yrkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=dBfstkAB771YRxKDkk9U/x0YN33wXV4yl6SrzAA1uGs=; fh=HOTIJAuh4GVundETfNuOqQZ7DCiEWZG+A+/ql8c7kIs=; b=KAiVw6FZA47yj+mR59OkbGEKgSpV6+00xAV3FJxVz9wyU9RbO3Y8YpSemIwkQsWS0B h6aftLFSIIbwVnv20GQhSmc/9IMHQBwJ0Zx/AtFb8les4+dowSEBOg34vJl1/SF4r9EU C+4dLWCe9yOPRBxQzmqGzaCGzHU0slVlkPrEih1IrWbLKvB0PmUVWsf9JWDFq/omkH2h ylo4uhONXFvUe3ASiTBxBlVzcrS9iun5GvrofZuF8mSTMdceJ49P+qC6v4plrsAiqxjT yNR/dFNiWkrxNbbasYxhZD81AtNsSG7jp/vrMFGf0VlcX31olp178qDt48okX+QbZEWG 3aPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JrLFjPaO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e6-20020a170902784600b001eb641fe96esi10656681pln.651.2024.05.07.16.35.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:35:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JrLFjPaO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172396-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 84656281328 for ; Tue, 7 May 2024 23:35:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CC788613B; Tue, 7 May 2024 23:10:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JrLFjPaO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F44A7FBA6; Tue, 7 May 2024 23:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123436; cv=none; b=EtG0Do653801mD/bjwLy3B8+/WUoQDkCO830Vw743PrFO836rBkHZ8eFND7uDfkeFP9YTbtaGtKLCXTwnpQWfL4oCGKXbJQK9PWuPCJK2voPVUd+2fhktFj2blXmCELgh6FIOc6ZrefT6EHd2Y8oy1Nd5fapjFz/lyNOL0JWqZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123436; c=relaxed/simple; bh=mlO1AB1Iz8VdqHcNQzJ0eSmS0bKUqYyoUn6XIjE4TJM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=crKyXivCvcFx+Mp0qV70zLY0lJ0ciiKJq2Mmu7tSkwTRr+Da3Ke9oUbhJcXswZErFyOPpJXGQ/xnpLx537fPqN9scGECKuO2BKJXYYtyldLjnzfr2SjaBJM9qWOzG8NL5dOXLeTji+/2ls5vfjuXjx2abwYL2mhA0Hozm4vTT8Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JrLFjPaO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 900ABC2BBFC; Tue, 7 May 2024 23:10:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123436; bh=mlO1AB1Iz8VdqHcNQzJ0eSmS0bKUqYyoUn6XIjE4TJM=; h=From:To:Cc:Subject:Date:From; b=JrLFjPaOdJ6/C1eBKUy1ozF8req+Fdq64njZH5RtwZXxUnCzCs1Gz8uAU6gXTPSMj svjPJo2txJuZ5/8LAkWA6yJD3KLyNqDuZSY1iR1eaquGu+S4K9hcy7+CK3AQHCIm56 emoAv0L1noh+nhDBP2IKo/gdm4VDp48G1EGgPpJqU4iJ+7I6G7g9WeX2JtKRVzxrFk UhNlbwfgBGnCYx0u3gMWCsCuC+hxWsgqy7+oGkS1BdsMf2ZV8Y7/rjZ+OUKtCROwza QQE+LKXM4WwDZKL4CoyfcO9gsQaSYB8QRnwl3yiLQQSfn6OMZr/6YG2fyTxsgQ0CS2 I/7VCZDseSqsw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Mark Brown , Sasha Levin , cezary.rojewski@intel.com, pierre-louis.bossart@linux.intel.com, liam.r.girdwood@linux.intel.com, peter.ujfalusi@linux.intel.com, yung-chuan.liao@linux.intel.com, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, perex@perex.cz, tiwai@suse.com, kuninori.morimoto.gx@renesas.com, alban.boye@protonmail.com, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.6 01/43] ASoC: Intel: bytcr_rt5640: Apply Asus T100TA quirk to Asus T100TAM too Date: Tue, 7 May 2024 19:09:22 -0400 Message-ID: <20240507231033.393285-1-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.30 Content-Transfer-Encoding: 8bit From: Hans de Goede [ Upstream commit e50729d742ec364895f1c389c32315984a987aa5 ] The Asus T100TA quirk has been using an exact match on a product-name of "T100TA" but there are also T100TAM variants with a slightly higher clocked CPU and a metal backside which need the same quirk. Sort the existing T100TA (stereo speakers) below the more specific T100TAF (mono speaker) quirk and switch from exact matching to substring matching so that the T100TA quirk will also match on the T100TAM models. Signed-off-by: Hans de Goede Link: https://msgid.link/r/20240407191559.21596-1-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5640.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index e609249cc38d5..651408c6f399d 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -636,28 +636,30 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { BYT_RT5640_USE_AMCR0F28), }, { + /* Asus T100TAF, unlike other T100TA* models this one has a mono speaker */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100TA"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100TAF"), }, .driver_data = (void *)(BYT_RT5640_IN1_MAP | BYT_RT5640_JD_SRC_JD2_IN4N | BYT_RT5640_OVCD_TH_2000UA | BYT_RT5640_OVCD_SF_0P75 | + BYT_RT5640_MONO_SPEAKER | + BYT_RT5640_DIFF_MIC | + BYT_RT5640_SSP0_AIF2 | BYT_RT5640_MCLK_EN), }, { + /* Asus T100TA and T100TAM, must come after T100TAF (mono spk) match */ .matches = { - DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100TAF"), + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "T100TA"), }, .driver_data = (void *)(BYT_RT5640_IN1_MAP | BYT_RT5640_JD_SRC_JD2_IN4N | BYT_RT5640_OVCD_TH_2000UA | BYT_RT5640_OVCD_SF_0P75 | - BYT_RT5640_MONO_SPEAKER | - BYT_RT5640_DIFF_MIC | - BYT_RT5640_SSP0_AIF2 | BYT_RT5640_MCLK_EN), }, { -- 2.43.0