Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1979543pxb; Fri, 5 Mar 2021 04:40:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR6ugr1CpY/aZIZT7CEmISFEm+85x7s3AHj6JnEaxurIipZEX2ZIZaNHKXjICuTEyf4fEI X-Received: by 2002:a17:906:c1d7:: with SMTP id bw23mr1996325ejb.554.1614948001851; Fri, 05 Mar 2021 04:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614948001; cv=none; d=google.com; s=arc-20160816; b=lCEsdM/gjPsDFDqGlr7sFgFAAD0VG8322SBN8zDve9uzzMkedz48uXXR6Vg7Pz2U0Z UpYh7ETXO4myKqw0i/1wk+z1ttKtaUoChDB1xJ4ku50SjgNYQ498vHL7JrSjn5YwQM/p fA08Bzk792qxsBOvSzcoWxj+yKIt5T315B03rdmfmS38B90JyYTj9Q9vtNXtc+6H4n72 APXVwxxbIzbq5K3gak471ai8XpWcA/S0GbOeU76KEnIA1BFYeYKr+RJe6KcGPrOnTIyN gtRaAFpKm0+lAp6/NfyMtH9DW7mLNWQkmqilSIcCSR/tgur1TE9aye9Th9d4DkrA//gO KpIg== 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=ZMK8Tql7znMpnt8TO6N7PMLNd3zGROFatJ2w8wPKfhk=; b=SF3/1JWemD0gMCS+NZgC8VOXkAEWxYnClk9OUyXligdwMQ+ImsqV0WIlQDygCmUaHV GK3TESdgzFEGmHkriSBat3yG1HqUuhT93ihyhty9Ho60IehjWy20/eNAuV8vsce0dLmd lrFgNn48x9uO1tQVN4cXQMCg9hDlbQcyjNfIIPLBu6GSOD43YyKyJtsYnBFGIZvqYVxK AVF/itUXQ69BvL/yb7fp3YobwThNS3az8Frlrou47oqduyvWjo5637sIobQ9Z8g5zXpm BETwEjOA6/yCrEb1wumIueZnZPHKKd+3lEOpbk+kPuK7RSvm8O2Wgg/EknoYsqnPN5F9 VllA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MXpYUPYU; 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 n18si1252200ejk.69.2021.03.05.04.39.37; Fri, 05 Mar 2021 04:40:01 -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=MXpYUPYU; 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 S233058AbhCEMid (ORCPT + 99 others); Fri, 5 Mar 2021 07:38:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:51006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232307AbhCEMhs (ORCPT ); Fri, 5 Mar 2021 07:37:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5BD264FF0; Fri, 5 Mar 2021 12:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614947867; bh=gfJsEOLFlhOFuevab/YlfiMZUugZsd9zOztP2+2HySk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MXpYUPYUBWq6wu7BLBdsQ96c3i7SRzWalCAx7p3o61UX33z2PWuBU+N/tFeh8O4da 85M/AFOqfczhcKiolCEgROKrdnpwXVxhEUEoL77dd7F0Io32SMukzcWjN02ZIUeyUC LqcUkxs22D427TLp38xatfoNUROgkUIR+yHq4JI0= 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 4.19 41/52] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Date: Fri, 5 Mar 2021 13:22:12 +0100 Message-Id: <20210305120855.672299015@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305120853.659441428@linuxfoundation.org> References: <20210305120853.659441428@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 c58947af08aedbdee0fce5ea6e6bf3e488ae0e2c ] The Acer One S1002 tablet is using an analog mic on IN1 and has its jack-detect connected to JD2_IN4N, instead of using the default IN3 for its internal mic and JD1_IN4P for jack-detect. Note it is also using AIF2 instead of AIF1 which is somewhat unusual, this is correctly advertised in the ACPI CHAN package, so the speakers do work without the quirk. Add a quirk for the mic and jack-detect settings. Signed-off-by: Hans de Goede Acked-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20210216213555.36555-5-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5640.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 910214ab140e..8a943de1e5b5 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -409,6 +409,19 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { BYT_RT5640_SSP0_AIF1 | BYT_RT5640_MCLK_EN), }, + { /* Acer One 10 S1002 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "One S1002"), + }, + .driver_data = (void *)(BYT_RT5640_IN1_MAP | + BYT_RT5640_JD_SRC_JD2_IN4N | + BYT_RT5640_OVCD_TH_2000UA | + BYT_RT5640_OVCD_SF_0P75 | + BYT_RT5640_DIFF_MIC | + BYT_RT5640_SSP0_AIF2 | + BYT_RT5640_MCLK_EN), + }, { .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Acer"), -- 2.30.1