From nobody Tue Sep 16 15:59:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39E6DC4332F for ; Sat, 31 Dec 2022 20:09:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235929AbiLaUIm (ORCPT ); Sat, 31 Dec 2022 15:08:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236019AbiLaUIA (ORCPT ); Sat, 31 Dec 2022 15:08:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 002D21180C; Sat, 31 Dec 2022 12:06:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 35FC260C28; Sat, 31 Dec 2022 20:06:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE7F5C433F0; Sat, 31 Dec 2022 20:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672517179; bh=N/jVfDNU1O6nNZIo0aAmILMlmj2UEOKAqJzf22iqBqs=; h=From:To:Cc:Subject:Date:From; b=WIghN6NxL2lthpdVrDJGkEJKPasIfJ6sWZod9ByvoxupN0NNmlJRY8pwUOpVJZsGD Mm7Xv6f1xc7i4VrGhEXRV1czp8HdqolzJgLcXjNwbxY9fsQ34eWexUM++oMusrwvIy whZxLqRJIIiXjPpFOOmlXDdH0uXG0HZAoD9bGWdw7mDqObDyjrUjebrtALRVfTx3Ww VbFU7l8S0vqkfNpXJsu2dCjW1m3g9v84MV8bhW1lE0rsRGc58/PwbjuMapCLCF4/Rs 4IRFYaODMZh0FV7vLa6dqXH5wScNB966Ealn+VbInNLEqwLdMri6l2mc60/MVL/BzC N5ujUJyLofGyA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Pierre-Louis Bossart , 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, ckeepax@opensource.cirrus.com, akihiko.odaki@gmail.com, oder_chiou@realtek.com, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.4] ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech MICA-071 tablet Date: Sat, 31 Dec 2022 15:06:04 -0500 Message-Id: <20221231200606.1748940-1-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Hans de Goede [ Upstream commit a1dec9d70b6ad97087b60b81d2492134a84208c6 ] The Advantech MICA-071 tablet deviates from the defaults for a non CR Bay Trail based tablet in several ways: 1. It uses an analog MIC on IN3 rather then using DMIC1 2. It only has 1 speaker 3. It needs the OVCD current threshold to be set to 1500uA instead of the default 2000uA to reliable differentiate between headphones vs headsets Add a quirk with these settings for this tablet. Signed-off-by: Hans de Goede Acked-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20221213123246.11226-1-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5640.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards= /bytcr_rt5640.c index 7830d014d924..6a8edb0a559d 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -428,6 +428,21 @@ static const struct dmi_system_id byt_rt5640_quirk_tab= le[] =3D { BYT_RT5640_SSP0_AIF1 | BYT_RT5640_MCLK_EN), }, + { + /* Advantech MICA-071 */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Advantech"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MICA-071"), + }, + /* OVCD Th =3D 1500uA to reliable detect head-phones vs -set */ + .driver_data =3D (void *)(BYT_RT5640_IN3_MAP | + BYT_RT5640_JD_SRC_JD2_IN4N | + BYT_RT5640_OVCD_TH_1500UA | + BYT_RT5640_OVCD_SF_0P75 | + BYT_RT5640_MONO_SPEAKER | + BYT_RT5640_DIFF_MIC | + BYT_RT5640_MCLK_EN), + }, { .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ARCHOS"), --=20 2.35.1