Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2965759pxj; Mon, 17 May 2021 14:19:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZlUTmJBo44VcIQOP2hxE4csheRWA2ii6GpDJdnMlOYPvD1irlApoPdFuo1KkXAXbQID8+ X-Received: by 2002:a17:906:4e8c:: with SMTP id v12mr1949899eju.365.1621286367186; Mon, 17 May 2021 14:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621286367; cv=none; d=google.com; s=arc-20160816; b=raMJySP3nb/2M/UkBAeWfXisVnqSMA7BWwimI4OvPKeN7ode7eAkByS4BkxM9QOXQg 7RevdDFJtqeUF4aZKAFF64bhEBkAhLDmhjnejF+sqkKAtC+XAWvyvNyixSJn1Jutv0vl jewd7c4kMOndPkmlnXg8yHaKXtd5dyv7GOCa2q7XwJNcTz4mB2Y+P3sy5quqiG3Z6DXR DTzFP0yI7GuVrXsJiBmVwVKltVVspJDA1OSf+UxaDMgUQsxdrenIZRnoirwl/tzi+rsP flj/qrBF/bEd4w/yJTNpBfb+r9uds2C5dydlQerHp7T7ekA5Ah+mMgxblip6zb6AQzkW /VbQ== 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=npOCeK4ajVXs50GykaR5O8F/uP4l6d5q6Lh3K8mYf1M=; b=mN5zbah6A0xS6G7CVufRFh0hFY/od2pE/+hmkmRCa7OLwocawP6t8DdEktj+MbnaiA G+ZZ3PYtyzz8zTFcQOLNl+VMukT29top5P+YCMwF6Nw1+8KLoJDI+seLPebXVQxMjjn/ bpUZZPsgJZJauOyk5m/3hP69PlRHV/FC4jnkWXbYNPn8UdNIsSzs3u5WhifahD41TOi4 vcMcMssviGNCU8+3168Qxyv3lagYnUjQ5zzzFJXeOU8+t7isreGcSLLe7yXBe/osGcQR iCvVxITM3aRZQyBca2u84HReFzcUuzsrd8NhxucnuTTFBGn+FIh5byr3T345xi1PRvq8 ahdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B0g1lcre; 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 d4si6932177edv.465.2021.05.17.14.19.02; Mon, 17 May 2021 14:19:27 -0700 (PDT) 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=B0g1lcre; 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 S236244AbhEQOKC (ORCPT + 99 others); Mon, 17 May 2021 10:10:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:59640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238076AbhEQOHd (ORCPT ); Mon, 17 May 2021 10:07:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C3FD2613C8; Mon, 17 May 2021 14:06:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260361; bh=CpMLuKEHmCPFgmTnqBs9Eca2QVcKDVmDMdrnazBcf/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B0g1lcre/5eF05+iZ0pZ433pu0QbmdVd0vPeB0blQQI8XuwmUzkv6d4eP9yG7/TxV HAPCAOOSTuoxXJo9sz7cHrYuatu8wjzwVFvHCeozt5kZuo1w0uRsKKb/tIEhY5KFve MMq//eKjLdPwqhk/ykvus0Nd2ljx+bVaSRCGNMU8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Mark Brown , Sasha Levin Subject: [PATCH 5.12 046/363] ASoC: Intel: bytcr_rt5640: Add quirk for the Chuwi Hi8 tablet Date: Mon, 17 May 2021 15:58:32 +0200 Message-Id: <20210517140304.162710663@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 875c40eadf6ac6644c0f71842a4f30dd9968d281 ] The Chuwi Hi8 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. It also only has 1 speaker. Add a quirk applying the correct settings for this configuration. Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20210325221054.22714-1-hdegoede@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5640.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 19faababb78d..22912cab5e63 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -518,6 +518,23 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { BYT_RT5640_SSP0_AIF1 | BYT_RT5640_MCLK_EN), }, + { + /* Chuwi Hi8 (CWI509) */ + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), + DMI_MATCH(DMI_BOARD_NAME, "BYT-PA03C"), + DMI_MATCH(DMI_SYS_VENDOR, "ilife"), + DMI_MATCH(DMI_PRODUCT_NAME, "S806"), + }, + .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_MONO_SPEAKER | + BYT_RT5640_DIFF_MIC | + BYT_RT5640_SSP0_AIF1 | + BYT_RT5640_MCLK_EN), + }, { .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Circuitco"), -- 2.30.2