Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp241158pxf; Wed, 10 Mar 2021 05:27:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwH9Ry6gDxzr22s/OL9CsDLVDmc5QI3pzT7BZWT7V8jkFg4abfyN9hovUQe1ol8vcJ0NmI9 X-Received: by 2002:a17:906:d790:: with SMTP id pj16mr3536867ejb.255.1615382858188; Wed, 10 Mar 2021 05:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382858; cv=none; d=google.com; s=arc-20160816; b=no26LzP7E7C4KkpxqJekGWYq5/+BY33FvZSZeRB3Aneg9J/5CSYQlbYtE9Vwxsp9vH +2cFLYwZAaD8jsENn4TH/HQIKYYwFPWuAQHlxxkfnffH4SQUoCd9UXTgt6vLppe3NmyT B3Tk0Zvu6olT2L5YB5F1sOARCMHPLg+t7bpxeDo4FW7lKvbpQtdO9KDLSXnC9XjQGqsq SMBbeos9cG0qUU7HnFfs6fVT6F7uYLnzoqhni5p3ngjgo0QF9eh0kKk4ejLWgdadzP/R 0U+f/BcPAc3JDSwtZs7Y5wtwEmmcHGNDuuhfArfMVbh5J1nl9cs7fwtfbcrAPnO+O8gH X7mg== 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=tYuJeZmdQWWroUt41TfWjWMNYxfBoFW/FqlC3dQVNzA=; b=TMBSLxrsVg6LnjG1U0v552xGxVrnvFex5uC1i0PkECZgURCDKgHhyOs1XM3SS2/bRk 485P/r/BRFKtJo4epsv4+6RuCT7GvpHb1vU48Dds4pCx0jGS0+JA/rwV2CnyR48vuU/J AOAmcga5bnYYG7h7+9ATSLJpS6Z4FYzrwxi8vwscFZueOuUECfUku4yZQanAMji1fg9R ncDPdP6FUpU6jqos1zxHIW5tU/LtPIH8Gytbl5rw5wlhkMkxQgYw0NHhPAq+9YuGab/r 692M9ADEG+9NZLHG6giRLIynWoQlTEZ8rkjbEUrcKVjnKqAnZa1A7TjHqhK6+hikizfc 3Tcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sFpwZt64; 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 h8si11485454ejj.71.2021.03.10.05.27.14; Wed, 10 Mar 2021 05:27:38 -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=sFpwZt64; 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 S233699AbhCJN0a (ORCPT + 99 others); Wed, 10 Mar 2021 08:26:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:46230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233052AbhCJNYt (ORCPT ); Wed, 10 Mar 2021 08:24:49 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 05F7964FFB; Wed, 10 Mar 2021 13:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382689; bh=oB/EdU1OznmpPPR6LSv/A1yp+0dkZhMb8HEvWVhuCRk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sFpwZt64WpmzcLV0tu191yEeFisv5VdV+lDh2xDLjRSE/LZD9fvBbKESUaFZMXaFF pFz8KakN/n1jCT1yCZi0gSyS/BxPPPX+NbQukszyrwX4/gtaQ5WBijci/JMbXiPgIX 2ZskOAosVxReKjKQ2rKBrvidAn/hUbcw9pTgS/0k= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Chiu , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.10 24/49] ASoC: Intel: bytcr_rt5640: Add quirk for ARCHOS Cesium 140 Date: Wed, 10 Mar 2021 14:23:35 +0100 Message-Id: <20210310132322.715325981@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@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: Greg Kroah-Hartman From: Chris Chiu [ Upstream commit 1bea2256aa96a2d7b1b576eb74e29d79edc9bea8 ] Tha ARCHOS Cesium 140 tablet has problem with the jack-sensing, thus the heaset functions are not working. Add quirk for this model to select the correct input map, jack-detect options and channel map to enable jack sensing and headset microphone. This device uses IN1 for its internal MIC and JD2 for jack-detect. Signed-off-by: Chris Chiu Acked-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20201208060414.27646-1-chiu@endlessos.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/bytcr_rt5640.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 3af4cb87032c..d56db9f34373 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -437,6 +437,18 @@ static const struct dmi_system_id byt_rt5640_quirk_table[] = { BYT_RT5640_SSP0_AIF1 | BYT_RT5640_MCLK_EN), }, + { + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ARCHOS"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ARCHOS 140 CESIUM"), + }, + .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_SSP0_AIF1 | + BYT_RT5640_MCLK_EN), + }, { .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), -- 2.30.1