From mboxrd@z Thu Jan 1 00:00:00 1970 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 58C311504C6; Thu, 29 Feb 2024 15:50:43 +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=1709221843; cv=none; b=midXrshLi25Xdn4hdkp2l6fEIqXGiepczmZdh4LC0+x0+xAA8vD6P+dQcOkN7si5EObs1eDDImRH0MxpkhZC4hiSYSu56N9jMGehONLxJZY/sH6wfr00A8/oF7i8dzCO3KNZrN1sCiQC/PkWb5mVdo1GftAwBeBE26+eiWAL+XY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709221843; c=relaxed/simple; bh=hX1X2qS80z/6QcjTqb0Ho7A66ckoeTDMLAe17KU4MCo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CnebJ2sIJzG9tFsBx8JXkwXO0ppp+fAcc3+m1Y63Rhi7ptuP2Rb0YJIKXsFTB5kZz0yK6Edp7kUVID2zdMLmEmn+MAafo58BbwyF4RvTULVXVAztz7lR69fJ0dhYHjhnXvYBUSgpOUDhY5nF+rgek5WhM0L+jzEnSlsE9kVgd8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JNVoX8im; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JNVoX8im" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D80E1C43394; Thu, 29 Feb 2024 15:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709221843; bh=hX1X2qS80z/6QcjTqb0Ho7A66ckoeTDMLAe17KU4MCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JNVoX8imEpmmKXfK1wtLi8gfPIJqoWRsrVAHlt7MVoNa20CcQMzbNkho2knSWz10x q0/5LZv6hCTQ5anVKlDW/e+wNAATvq2C269Blh7X9FAx2zHlCAf6n6V2Yhzbl5FZoC 5ytCAa2Nvjd+9PkNmcP+fPIJwqjBOUkX18cdmCKUUCyDyL7LldJFErq997WCvc8lfx Z2LIlgrywEwwaUlPyyDgCsJMSakt8UOWptVx1Eh7ahee4Wv22LA1kwo6c9KlE3JD/1 CZ14fD8HQd6+WrfJJcswU6+LUWA1hgFcIjojtxAmSCMzCVqVYxJLta+kW2b1aOWe2S M5juZ/20K7DKg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Mark Brown , Sasha Levin , oder_chiou@realtek.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 06/12] ASoC: rt5645: Make LattePanda board DMI match more precise Date: Thu, 29 Feb 2024 10:50:23 -0500 Message-ID: <20240229155032.2850566-6-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229155032.2850566-1-sashal@kernel.org> References: <20240229155032.2850566-1-sashal@kernel.org> 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.1.79 Content-Transfer-Encoding: 8bit From: Hans de Goede [ Upstream commit 551539a8606e28cb2a130f8ef3e9834235b456c4 ] The DMI strings used for the LattePanda board DMI quirks are very generic. Using the dmidecode database from https://linux-hardware.org/ shows that the chosen DMI strings also match the following 2 laptops which also have a rt5645 codec: Insignia NS-P11W7100 https://linux-hardware.org/?computer=E092FFF8BA04 Insignia NS-P10W8100 https://linux-hardware.org/?computer=AFB6C0BF7934 All 4 hw revisions of the LattePanda board have "S70CR" in their BIOS version DMI strings: DF-BI-7-S70CR100-* DF-BI-7-S70CR110-* DF-BI-7-S70CR200-* LP-BS-7-S70CR700-* See e.g. https://linux-hardware.org/?computer=D98250A817C0 Add a partial (non exact) DMI match on this string to make the LattePanda board DMI match more precise to avoid false-positive matches. Signed-off-by: Hans de Goede Link: https://msgid.link/r/20240211212736.179605-1-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt5645.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index fd3dca08460ba..04a0dc0932f50 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -3801,6 +3801,16 @@ static const struct dmi_system_id dmi_platform_data[] = { DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), DMI_EXACT_MATCH(DMI_BOARD_VERSION, "Default string"), + /* + * Above strings are too generic, LattePanda BIOS versions for + * all 4 hw revisions are: + * DF-BI-7-S70CR100-* + * DF-BI-7-S70CR110-* + * DF-BI-7-S70CR200-* + * LP-BS-7-S70CR700-* + * Do a partial match for S70CR to avoid false positive matches. + */ + DMI_MATCH(DMI_BIOS_VERSION, "S70CR"), }, .driver_data = (void *)&lattepanda_board_platform_data, }, -- 2.43.0