Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp262801pxj; Tue, 18 May 2021 02:49:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysezuYNt4vGWqflGkhvlt/da3Bhji8k00ADVx+qIfTRlBrYIZ1ylAGfRQkcLYdjq5mPRB9 X-Received: by 2002:a5d:87c4:: with SMTP id q4mr3300073ios.141.1621331368944; Tue, 18 May 2021 02:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621331368; cv=none; d=google.com; s=arc-20160816; b=aeNG0QJoqEFAtElif7febihm+yn7C+E4b8t7rBq1kaOt6YVXaGdGJk70j1E7mMojwm dhkai3opSWUmykcMHjicc05onKwOuRAadupZypT1mPlU2eaFpwvRoi5BT/ljcDDa5+ha RumjsHhHSpfI5UeRPigq9NQDRIl4T2FRllgmw2H7BIaHrnNTl977TWpEuXHYjtu6TdAH gspF7rJ7kRtdwemHZfvKvCA97VC1nLDdbrTfAiY9eMut9yBC3fvSGYuTJ0IvXyC77rtP WqoMM8n1lVOg0AoThbQigAf5oK7CbsI36hXcsjqtUQShEAhQrA7le9PrTF1ik0ClN2MK N2Lg== 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=85gYLZGHYhCxgC3m+xd98U8l9QkADXCLOtqdH+cBOro=; b=jXaDh6Gux160KqVggHGPcZ4mVzkIiblQza0zSCqDqBi14SxXPDSgayLUF5PH38kYg3 +wlzMBkfcQgVvmnvJtAj/OD5e63Wx3twVlSdgurdl1+jmxbvgFLNn4Ls4VIaw9aulrYt 3j86FiXHhnYm9055fG0bqDkFQnG3mG1kCH/UusRCRRv+Nrx4e7EGIqEmw1qCiv3s5ho9 FJUOIIUX0/+b6IIYwhrh8Qptv15GBE+xUwS5Y570zwJZeesmQ7tvn/LjdPRJSV1d2G3Z 3pml4JNYQf6AFdKcNI/5WROKBwNxvqu+dbB9+N3uR1wVYB7z22IY2F86+1240NtbHa+d 04Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WFQpUKQ+; 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 x99si2601680jah.122.2021.05.18.02.49.15; Tue, 18 May 2021 02:49:28 -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=WFQpUKQ+; 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 S243194AbhEQPJY (ORCPT + 99 others); Mon, 17 May 2021 11:09:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242539AbhEQO7s (ORCPT ); Mon, 17 May 2021 10:59:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4FA92619D1; Mon, 17 May 2021 14:26:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261591; bh=PVSiF54oj7LY3pnmZHYQ/o+FLdtwep2wBxiXVLjTfJc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WFQpUKQ+O05da4dpAHX6vYCe3solpkn8aogMEFc7oQbvKGEf5uqMMTJ7hLhSLydfW JeSccDhTJtufRH674cTnoCpz10eH+RrhJxRQhFUX4hRRprGK5rptL92iRDaxNk+0cq yESiMEmYAh7VGZfWvwpdQPvouDZHL3BiOBit27XI= 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.10 037/289] ASoC: Intel: bytcr_rt5640: Add quirk for the Chuwi Hi8 tablet Date: Mon, 17 May 2021 15:59:22 +0200 Message-Id: <20210517140306.445791038@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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 2d887406ca85..1ef0464249d1 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -514,6 +514,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