Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1979738pxb; Fri, 5 Mar 2021 04:40:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXMqe+FeHdMhcauG+lAgTPMx2ucwfe6iw5zgJOrFBD/AS6cDCIPUNO6ZCkUQhNF1GSsGdc X-Received: by 2002:a05:6402:b85:: with SMTP id cf5mr7480094edb.248.1614948021199; Fri, 05 Mar 2021 04:40:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614948021; cv=none; d=google.com; s=arc-20160816; b=NrlGudqn9Ilvw/VrN0RbtYTUfqFZaIXvtAYBqkQzt4DFNAGzaGM9LHONXys5y12fXu oJgAr22oP+V3FDc5vJbskewr2MG1eYRbeValeX5tTFFQA9dZHxRmIwzVGNA7169oXhbr wJoNh/bZb/NVnxM0YtEGvXO+6alvcUay5T+WDf4bzOFvs2jdZSHDJ4UD0tJ1ueu+aToB cjwSd238/mLuI0wYHqE0un9XDz3FFMPe4dQpa6lVtj4G9AhOUFlg9+kCI4D6ENLUbWx2 3GW7j3ikN5dtk1Q5w11ZHmhPVaRL8wrcopajqu/BYDFeWYdD6S7PSobdCA5Bx8Xmab9s yJgg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MLrLpr15k78DvGWFHahegtoDmAhsTnsJ2gn9MhJ1d5A=; b=eVj1Lm+cTFbswNsrKrv2X9ctLXndFBQ+FbgK+9e/RuMqDfuJ5CrA97MHmazBcZrqIx qOSdPyOZZhtPf6utAjSu/QArZIOYPteWk6Vfsc06C+mW3UCzdvbyGvXc4ev5fvV39liW UIkxzsrLr4uGDVoCMke2BQOa4n9+qUVVP9odqQ/ATDudvi58d28KzI/t/0NqpnjLlU8X dErMJhc84R4ZadZ0RTp0IGqmH6NmmPmqzyvchqXgNhbkdBJBZQp+7Sl8jLMNuwKMb0iv oIcRikYG9vftjvh0+tOOdovzes/+pQs/9QzxtibBvNHAsySkLkKEB7hyGPXZVVlmmunp 30wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="KRksh2k/"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lc7si1289454ejb.426.2021.03.05.04.39.58; Fri, 05 Mar 2021 04:40:21 -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=@linuxfoundation.org header.s=korg header.b="KRksh2k/"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232566AbhCEMgZ (ORCPT + 99 others); Fri, 5 Mar 2021 07:36:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:48436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbhCEMgB (ORCPT ); Fri, 5 Mar 2021 07:36:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E90165004; Fri, 5 Mar 2021 12:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614947760; bh=5pLIBrGcrGGo/t1daVCjK9MoHkca4h837IwbcbBBmG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KRksh2k/CLOEjynntBRvpdlC6gLiPlYi9sCq+dZHgV6D8WCSrhlfayRV1QrZldf1T 9l+n5B6Hl0n84UXjkShh+gm9kuHO8sBW4hZrkbhzxpPPh4U2HoCsYShpYk+QpRdRfm T1gol02FIUnVVOKS2z3hhT267aaEYZdt8U5ujkRw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.4 59/72] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet Date: Fri, 5 Mar 2021 13:22:01 +0100 Message-Id: <20210305120900.232006142@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305120857.341630346@linuxfoundation.org> References: <20210305120857.341630346@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 4606f6f582d6..921c09cdb480 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.30.1