Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1979777pxb; Fri, 5 Mar 2021 04:40:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJymiSNgvEeg4h7SW9EM0OotlYOXbXjGhXR8BbEsg59vYrWrCyEnOAQWz5SW2xrXchX2G4r1 X-Received: by 2002:a05:6402:1d19:: with SMTP id dg25mr8931213edb.218.1614948024365; Fri, 05 Mar 2021 04:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614948024; cv=none; d=google.com; s=arc-20160816; b=WnBVYcKApNZ1qudB1JijGBY5Ak7IQVFVbyQQjX7W+wxhsTPxAkfS85TPXbAhEUWogl WIKd1DMt0C5lYLQpryOtCECr3BRpDUjzATx45d3x+BbaCIC5CK+gCzqA7CQueKstjEyP 7PlG62wJWwNP8U3O3SwX2BXANDOoRKGiiorKc6F81W8YYzZcpvcuvze+N+XpPdlLK2wC rQU+MbmAlkyoRDEWqDDHKpWouk3GquMhVWFFrPJA8kK3PUXxnRF1vk/UiKckiHLV2iAI E4DnxJyWhfxZ0oI19+jxibv/4DWaeMo3l465L49SUCkKmnZxOYKXuJTtax/BHiRRshMO G6kQ== 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=JYRcvCN0U+ZHBWCd1oiMXIyaf7+pFViJynze95BAb+Q=; b=SqSJJA0aYoVpYd5cOS+F1VfM0jJFGs5I+310blU/DQazaBJqc3PBndp4d9F7X4YwyI 6dYk0j+OOUODqhFBnQPV61Ke6jKFyF07F8LGAp6BSA5GZj15M9ecSGCkO3IWbfAjtV/R y+MPKFVcNDcTE9XLZPNUbq6yJzcOzF40QPgBBr8hH1twfGC2gITg6ZT7U598q03EKcLJ haxl58v8EdPfzq4CGNdtfekdYGQoT++GMHaX3ivu4DI2h4ogrUok+fDzncFdHDN+JzvB Rl1Nm9IQ8UOcm0GE0nIf0cwWcLaioQnWcUmw+1ilGR1/NZOw07kiT0gvqcgGGDysQZZG 5SXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LoclOSH3; 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 p5si1492554edt.50.2021.03.05.04.40.01; Fri, 05 Mar 2021 04:40:24 -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=LoclOSH3; 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 S232766AbhCEMgi (ORCPT + 99 others); Fri, 5 Mar 2021 07:36:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:48596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232262AbhCEMgE (ORCPT ); Fri, 5 Mar 2021 07:36:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 557DD65021; Fri, 5 Mar 2021 12:36:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614947763; bh=XmPN+JCJGNYpl61I9o7d+TzDSy29s8VGENB1ZPiPU9k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LoclOSH3wIWUKjU5ddMurcfSocwMdFrk/Ha+t4bB1JuVn5OB9L+ug+ojKd+LmD2lO ysnU/kBMOvkp4I+iK7rrx/sMQlmVG7Lj2bqC+CHfqTKPuzVKdsCpUha+Ruxt5EX1EB SNngM1sy7fBpaceQbaeA9FbJsWMLc2RwHrfFBr6g= 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 60/72] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Date: Fri, 5 Mar 2021 13:22:02 +0100 Message-Id: <20210305120900.273663013@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 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 00e8d589a724..9ee610504bac 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.30.1