Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp426776pxb; Wed, 24 Feb 2021 06:04:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmVMQlZx9u+RimxtaO3zbpq7DpFrlxiA+CCoi/Zb84CVl7NnK9dlT/mk1F3KnOfWJfbTBz X-Received: by 2002:a17:907:1629:: with SMTP id hb41mr30230592ejc.197.1614175495147; Wed, 24 Feb 2021 06:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614175495; cv=none; d=google.com; s=arc-20160816; b=UyIv7Lpl4gZFQ5zBkD+bnEeJ10rTV3Kpr7IVz0tLvIRsPWI2FJJAYJ8H+uYpKRUZ+f Tzh6powHEtWCTQ5y8cVHW5+AS1e3iQ0wMY59s2iMUTmtvjUwaUV5Yz8PZKA4ee4xm5TZ 6ab1nJxX0ZWbfmJw99A3V72uFCDqbNtNZX5LZZqXmwM5lViKG+cSE+NojygdfHSeucdE 81Kqlfmj/Xr2ieyY8954MBk2RCxhRdc1nniWbOfN2xZWnCMKW9IAGHuIC/gMMBR/pooV oQykn3JXD7Z4ttKyJ2RAfpq34lAXLg/ZhMTArzqIfH516QfguTffxBN8F7k+ZROMCwVL SlGQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VHtZNPgDzZxuwitXoUolUVIe6ahZKI+teVnnH32p9pE=; b=L5RWZqJDXKztKVvhg5tAs6FmyQiIN0ooyxKgOTkpTtfWvQLODL6keIcejcvXUT2sK5 tW+dRNAih/jE/JE/OLGpDteXFkrZMGV0TsbFG8+Nq0PiwdlFkirRuZJhYSYkgc+Y7LuD vqpyId1dXmZ3SvA59y3/A4ZX4BEHHri7b/6O/3rS7Wln7KsprUOluBSmE+piKzI961s9 BlaGg+dLIFy46hEKBOtos4ghYrSFYjhMBGO996PIRYJWDC4O7TB5zZSPrm6nFrzqhQjV JWTbPIGaLwJ3SdADBO+w185BK+l05uL8LPd1oobNFeOp0S5PJvgaOB7XnXel7AZ3Hkog t7rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UbDgGenn; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h28si1214674edj.309.2021.02.24.06.04.15; Wed, 24 Feb 2021 06:04:55 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=UbDgGenn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238269AbhBXN7o (ORCPT + 99 others); Wed, 24 Feb 2021 08:59:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:58440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235811AbhBXNHU (ORCPT ); Wed, 24 Feb 2021 08:07:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3977F64F93; Wed, 24 Feb 2021 12:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614171272; bh=o/agGiwWlfFWMMCKPvpiZpHx96+nMNwWOByCH78st50=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UbDgGennqnNnKJJ0QdkzmIvyFqDP78uZF334IFDL1JpuprBjGsZxkcT5nkYa8Gn8w f02uq9TFBNnrMZ/D0h9DF13uv/0uTKafQ2tJf71L/p4i8q6MfzRveRFae6qKVuL0dr J7d+PM537n6pNT+j2AOCQ5CkmASFFyCNz3K4LGv19MhWN89RSxctRPFghTP7/6jSRH tW967F8NSCWjwZbKtA/hW5u0ihtyXGnevGAaLzCrl0QOLcMo+jaRsWJH/tLUby8yZx FPQ3rKrVFYbR5N9QsrEdeb+ZKK/Y80b3W7xPAD2ZwnyPDAgWZOTp/C5Zzht7ePpJ21 Eq4XEjJLOKYEQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Pierre-Louis Bossart , Mark Brown , Sasha Levin , alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.4 39/40] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet Date: Wed, 24 Feb 2021 07:53:39 -0500 Message-Id: <20210224125340.483162-39-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210224125340.483162-1-sashal@kernel.org> References: <20210224125340.483162-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit df8359c512fa770ffa6b0b0309807d9b9825a47f ] Add a DMI quirk for the Jumper EZpad 7 tablet, this tablet has a jack-detect switch which reads 1/high when a jack is inserted, rather then using the standard active-low setup which most jack-detect switches use. All other settings are using the defaults. Add a DMI-quirk setting the defaults + the BYT_RT5651_JD_NOT_INV flags for this. Signed-off-by: Hans de Goede Acked-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20210216213555.36555-4-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5651.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c index 4606f6f582d6f..921c09cdb4800 100644 --- a/sound/soc/intel/boards/bytcr_rt5651.c +++ b/sound/soc/intel/boards/bytcr_rt5651.c @@ -435,6 +435,19 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = { BYT_RT5651_SSP0_AIF1 | BYT_RT5651_MONO_SPEAKER), }, + { + /* Jumper EZpad 7 */ + .callback = byt_rt5651_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), + DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), + /* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */ + DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"), + }, + .driver_data = (void *)(BYT_RT5651_DEFAULT_QUIRKS | + BYT_RT5651_IN2_MAP | + BYT_RT5651_JD_NOT_INV), + }, { /* KIANO SlimNote 14.2 */ .callback = byt_rt5651_quirk_cb, -- 2.27.0