Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp350037pxj; Thu, 20 May 2021 10:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwea7u2os9xxTCR1J0B8krw+0VVtpcxKhODDuUAh2jrzDnQxDARqiMBYVk+FOHJx5YuRswQ X-Received: by 2002:a17:906:c1ca:: with SMTP id bw10mr5938405ejb.512.1621532612842; Thu, 20 May 2021 10:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621532612; cv=none; d=google.com; s=arc-20160816; b=K49iW94F+Z2Q+MezJPhpJLupWKk/w/vHRk12+aYQDvZjo8902pNjKq68WHp5y31aem ZCABMwKyaSyyOy75ZSNvOtzhQA5b0kaGwVnG1ulCOZfohl3Qj19cQ7GzRJv9nb6abP7F vMu4/Rd5Xl28tr9LiNPYUyTNkvXiumWIfHoBbLFXADAeKJ8ecV6H+VdS3sT5ivXNy4Hl ul/5aXe9BL/skXdxy8bf4FGZnc8G+bEPTeLsUIehSeZGQ9IrxpOYsHrsqMso1mkvVC/S Tz9ROyHdlxoIW2LPd8M2gB/FHWbAiNY59oMvoncBinPuKCPLfdZqcevwrSxAAWH3SLU+ 5h4w== 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=b3nh57eJULvRfqWD277BjHn+o1CwUTp+Zg+sOmO8ILM=; b=xCbnvmJn1WueJ0ixlnlcCQbDTbt+WXTwvTyihdg9e0ZAmoVQEUuOGPd1vzO4POOL05 4N9ItyyDdZVDZVIHMDvNLpuxqaMqL6QK0RrTvp5SjDCBs1vPw0gEhrtk67OYkTHnYleg ZEIg7OGClP5FB6PrcpR+rx+MCWM5wmFOvn5YfMcvvJtnYyJmgVqUj5ey54V7cmybTVt+ HjhzhcTLpDV8U6Ae12aPePbYbllzLPFyl0RScZkJyhbiQBaoLleBIJ0RC1PPkEfY5lDR 2As6AenS7QiRW0B7gRHM/G04H431RF5KhU3qkeUb6Se1z7Hxjka01caXcgLtPeffp+S2 zmWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eewubKKU; 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 q2si2639079edw.144.2021.05.20.10.43.08; Thu, 20 May 2021 10:43:32 -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=eewubKKU; 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 S235575AbhETKMD (ORCPT + 99 others); Thu, 20 May 2021 06:12:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:36316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235341AbhETKEt (ORCPT ); Thu, 20 May 2021 06:04:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 35E3261930; Thu, 20 May 2021 09:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503645; bh=k/90kEdCiWPI+kgNODS6pMTMTooSc/4T+UyyVYBtYA8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eewubKKUirIxSvuaSqsibH4v+RDgaghFyjboBnPf1av9x+fvWawrz7hz1kY6PdfLk 3LqWdfjNNiTGvOmK/xByLCdP7VrYGYV+aCKwUkp79LPvf5N1MfDe0Lj83Ehv6UgNTR 8U1ki9IEjlYMATwQWeEB6aEX2hfE6GstjI/92c9Y= 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 4.19 315/425] ASoC: Intel: bytcr_rt5640: Add quirk for the Chuwi Hi8 tablet Date: Thu, 20 May 2021 11:21:24 +0200 Message-Id: <20210520092141.787455770@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 62b4187e9f44..4ebc023f1507 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -509,6 +509,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