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 D47503BBC1; Tue, 4 Feb 2025 01:18:09 +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=1738631889; cv=none; b=lB5BCK7hT24c0lew5/igVY68y572y8IxY5CQm0ADlilbzgmG9d/dUIf6JoIq6cMDn1thgcIElgo6g1jK+7pcF2uSnGPurcR3Rye5uKW0jTJTsqIPyQMoQ4XnZwX8uttrPTjuQAhC4u2tFR+vAKYZqCIfcz/0EAJT+8fUpqLPacY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738631889; c=relaxed/simple; bh=hRwU2oV9hAAmwJJNweGytqeplpBVxrosn1R6SEVR1to=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UX0nrT/EaGkQ+EvLCJJh8RwwxCQG7AvkIZh7cTxW/L2AZS7KVh1KOhSSvwIszZFPpFkuZK3bE0K96bM6DKCuc8ANXmGixebFBJ6QgZ7NZO4airJdJmxaHw/t2EgcAt0EyYM45uIBH2fD/hFEqXuDWLJ5DlLRPCceB+2GP8hNmkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UzC7DiNK; 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="UzC7DiNK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E25EC4CEE8; Tue, 4 Feb 2025 01:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738631889; bh=hRwU2oV9hAAmwJJNweGytqeplpBVxrosn1R6SEVR1to=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UzC7DiNKcOWs9r2a4Z/WVTRtSvX62DUmXDwBgH2rEz+eKb+JAwmwxFDoMXsMH1n8d qgMvjDBucKf/iPTqbLlOkv6K/NtFCzCWwpFDwGpE29rxDdjIqqmBq6axanNSLVHYZ6 jEUrPwOnZh7yUEv/3WSmc1O5rV65gYVW15scQjQhp2HmbpkB2hw3vxxW/qDbleVNeZ EZ6WdNinPEmPIc9dLgbDbQ7X6nD7FgYmIR3ol2E67n7lJXvj43cFZprJYCqhmfCNHZ lDh0NtuY9rrTF1n1FAunC5/qrchcgRxavQdpw3GeXDfJeABO6MA1to7oZHBj3dk4Rm pfJHki17RiaeQ== 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, 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, pierre-louis.bossart@linux.dev, u.kleine-koenig@baylibre.com, alban.boye@protonmail.com, tomlohave@gmail.com, kuninori.morimoto.gx@renesas.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.12 4/5] ASoC: Intel: bytcr_rt5640: Add DMI quirk for Vexia Edu Atla 10 tablet 5V Date: Mon, 3 Feb 2025 20:17:52 -0500 Message-Id: <20250204011757.2206869-4-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250204011757.2206869-1-sashal@kernel.org> References: <20250204011757.2206869-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-sound@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.12.12 Content-Transfer-Encoding: 8bit From: Hans de Goede [ Upstream commit 6917192378c1ce17ba31df51c4e0d8b1c97a453b ] The Vexia EDU ATLA 10 tablet comes in 2 different versions with significantly different mainboards. The only outward difference is that the charging barrel on one is marked 5V and the other is marked 9V. The 5V version mostly works with the BYTCR defaults, except that it is missing a CHAN package in its ACPI tables and the default of using SSP0-AIF2 is wrong, instead SSP0-AIF1 must be used. That and its jack detect signal is not inverted as it usually is. Add a DMI quirk for the 5V version to fix sound not working. Signed-off-by: Hans de Goede Link: https://patch.msgid.link/20250123132507.18434-1-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5640.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 54f77f57ec8e2..1148e9498d8e8 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -1132,7 +1132,22 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { BYT_RT5640_SSP0_AIF2 | BYT_RT5640_MCLK_EN), }, - { /* Vexia Edu Atla 10 tablet */ + { + /* Vexia Edu Atla 10 tablet 5V version */ + .matches = { + /* Having all 3 of these not set is somewhat unique */ + DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."), + DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."), + DMI_MATCH(DMI_BOARD_NAME, "To be filled by O.E.M."), + /* Above strings are too generic, also match on BIOS date */ + DMI_MATCH(DMI_BIOS_DATE, "05/14/2015"), + }, + .driver_data = (void *)(BYTCR_INPUT_DEFAULTS | + BYT_RT5640_JD_NOT_INV | + BYT_RT5640_SSP0_AIF1 | + BYT_RT5640_MCLK_EN), + }, + { /* Vexia Edu Atla 10 tablet 9V version */ .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), -- 2.39.5