Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp439976pxb; Wed, 24 Feb 2021 06:20:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLMZXCpeFObzdIyRIFkD6jEvlsOSny3Lpuk6jDsrH9kMw+gh4mpyN1OumB7yiU18isaPxF X-Received: by 2002:a17:906:380c:: with SMTP id v12mr30918035ejc.65.1614176454256; Wed, 24 Feb 2021 06:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614176454; cv=none; d=google.com; s=arc-20160816; b=ed4gzvF4Mrme8SQulSZwFLnOJpBabQkhcJ4HQqkgpdGLYKqm5/NYw9d7essOtNj7JK LCJ99DYM2OAWvVxvRAQfWbNZZRWkS4i9nds+QM/mXhtjGJJq9wxoCAXPpVwHwD8dkjuc c0vuLrgqpWMHO0wZe6TgLyzxcY2P2KRvMPKwfXznyu5keBFI9TLAkw07wMUqtnTX2g8z 8rSvSCpcPEr3uQGC0LiDdCx5JH6zXPD5g0EwrkZcxAZu88xCL544ag+43cqlUOr5U/Q4 +eknoW6sWH6AAzXsmTSqw9qmCx57KixK9MMCQC/EfkYaRJNDu3ew3A6lt1hre0t3qhZb eixA== 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=g4NPpYTSyhljur5pyMKQNJ1ocqleaSBgHcjzxVE0r3k=; b=JEnc3GvoKj54yLCPn6FLKA26NUhGv3xXtufsylAFcspm1Vl3LP2SeV3GKf+OvQQ/RY +j9qieXP7OvhhmeRh2XYADZ1zWJpmooEDisce3WEq1qtpyimBxEJKY5/TKsmMCEaPi8j nud6U5YM4ie0MBsodG8Dr/y8iW44jtR7fsht3cJl0tsEexhD/WEoSpOdIg0m+MV8OQII sPghaPRbQOz6Cg2QvsVR30Wt76qaNGdwfYV+ywBRiSVuxtWgfbh0OS/esdfymPZ/e8VP 0YqNq345ziDy1yBaoVzcWekBdSzH/KdK+f4q2f8X7s48+rO9SNKQNaEF91ORAwNZoCnW LMkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rODnQXsA; 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 p32si1218057edd.89.2021.02.24.06.20.11; Wed, 24 Feb 2021 06:20:54 -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=rODnQXsA; 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 S236219AbhBXOPy (ORCPT + 99 others); Wed, 24 Feb 2021 09:15:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:59342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234516AbhBXNKf (ORCPT ); Wed, 24 Feb 2021 08:10:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1554464F94; Wed, 24 Feb 2021 12:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614171308; bh=SreHj1v1+j1+8Ef1SthpCnlcga9XVWYo/NuZlFVKo3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rODnQXsApPlqDkf/Dio8GKkm4+ygLstW0iLWqYOP62KLGFgQlW6MhXkFVjDMdMo7w +GjLZ2CLTyWdY8z2V867GdcLrfD7uDU0m3UUq1So5adyLdDngQlUCHmdYoKPRh0pEH FC8LtpqmV58rVUko2Us55wemAqM/1Q2zYuIg8tSprJeOckNYMWJQrLizSZVoXLhXfK G2JjcTXbizrpNlZcPZIdsB4cKUyPGC0AoOrdQgcId0b+1asWIbvEYm+gDpc4jFNkpq pjxmdjq4L1sFgWf51Wkn3MlvN6gItud8LCV09f6lKRhY9xQxhIWL86gDWEhHDVWVrg jpn4baRnCboXg== 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 4.19 26/26] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Date: Wed, 24 Feb 2021 07:54:34 -0500 Message-Id: <20210224125435.483539-26-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210224125435.483539-1-sashal@kernel.org> References: <20210224125435.483539-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 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 910214ab140e5..8a943de1e5b55 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.27.0