Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7497pxb; Wed, 24 Feb 2021 16:30:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzB2Pd93gOdDL2PBITocjn+cU5O1RNYLYB57typjU/A8gn409D+uu2gCVpXL+rfHoRS75Dc X-Received: by 2002:a17:906:2803:: with SMTP id r3mr245064ejc.50.1614213005382; Wed, 24 Feb 2021 16:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614213005; cv=none; d=google.com; s=arc-20160816; b=FQAnvptVTaxA919AA5151M0f7H63MNRzaY30JUE6JKWVHYqAZNc9ZgK80mzxmZXCUE WKXeykyZX75xpi0n1idiTEqdXo3cPRPx+XXGQoAOhQ8YSrBi7irfZzUbQZ3PRskIsNxe 9CM4VtSAOMbjLXXiAmGNJhwzoJmbJC5iQejAUcRT8C0+tmu6hBeTj+f/ZIACVwpovfaR U7puabrXXabnozo6EcUUY1ZhYZ2kvLk4e/Uu2ZqqDYXcJDRscjZb94Xvt07YWeeRoLVh i9GSCYKcbYHZlONf8In4lxpYag6jMGX7XkBbI8LSJT5nHVFCKzjHn7usU+WUxnB/foxV lvWA== 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=d5YvJfzCMBIOdS73h8kOMno0sLtbbu9CGBFnoj0/luc=; b=umgiNLN3zC9VJRu4u5z3HRuvlFwGAI6hzCLd/aUcpcQhtnLZ7FKqd28m5XUSB2zoyW dLwXVYVV771KkqhF/tzPPjaxw+pMb0qYMjERx5dIxvUJmyDySqEqL+GwQ4YyZyjwa3dR OxhZTOyhl2xwZLtDnKU0AlpE/F/wW+WwSu3JlWz7jFgXNWRVzMrtAqXnV5qcuqih5gWd d67hZmpUFfegzNCGvq2AL9gd1FbGAeZzh16oabhVzQ6U8+s/7/JmFuOkytZxB/eHxC1A O3Y3sOZfgG/hanll9Qr5jj6pviJ+fhRTm4s1AJJXAeQrX5z5YApT1jGzguhAFu6m1kna VeDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s9VsyQp7; 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 v24si2164584edy.357.2021.02.24.16.29.40; Wed, 24 Feb 2021 16:30:05 -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=s9VsyQp7; 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 S238289AbhBXN7y (ORCPT + 99 others); Wed, 24 Feb 2021 08:59:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:58448 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235850AbhBXNHp (ORCPT ); Wed, 24 Feb 2021 08:07:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6B7D164F77; Wed, 24 Feb 2021 12:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614171273; bh=MXfxw/LtL7kawGXDTIYr26sljJBdOjN0jhx4Vf2uGj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s9VsyQp7SiUcGerBqtCRysIelb7gcuRQHfKeGVa58XQUPLeQBytfUmW5UcFKxqm4C vp02+ZiXIpNibGdVhzxHxpjF4sKFLTwN/F3ESx/SHIjAWB6PKDZ4txAZ+3zdQLyozK HYuIN5BAx5ixCVHE6xlfvymqJPB6ddldy6lCI2M1jL9jzBCML5BQ6O3v+Qt8m3/AuJ jX/1q7Md1CNuKtE/x/p7NeLii/eO0bfRPNOEoDgSd1ZZsrMlkHZBj2NM5hRqJVebY1 +6Vz/GmwiaY8/9/QAiDlg5IfY5zdoJSFxN40Hm6D/jj1Hs/BUGwMzWGg4zaYifQ7BH NQ4Ima+0a8rrw== 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 40/40] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Date: Wed, 24 Feb 2021 07:53:40 -0500 Message-Id: <20210224125340.483162-40-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 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 00e8d589a7246..9ee610504bac9 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -400,6 +400,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