Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp246509pxf; Wed, 10 Mar 2021 05:35:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI9tq31FjV92XaO5xj8pb8F7YHmNAtCgeVQf3lhUCRgtGDB8imuTKF2p2T0YOknjq/pDGQ X-Received: by 2002:aa7:d316:: with SMTP id p22mr3197229edq.107.1615383320574; Wed, 10 Mar 2021 05:35:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383320; cv=none; d=google.com; s=arc-20160816; b=ilCJuqI7XXrYhYTaxT0ycSz4pTw/rFxnlfzcDfkN/RmJNopjUpI45f0+qx8juIVImK WlgRClji9+LUrqs9rVB2G3ltHXLCKTtT8AauckWctK/3FARlQWo7d7jgUc7whoUcM+6v fAq2zPppYR52S+RrrggVmAAd2Hz4yAf6fpN1eOYtl2GSwhjBTkIVYbgoViK/YGqk7SJL S6RoUW4XFjXuBmuFIgZMutKd5EA6Gh0mjL9b5xiNWyOxYAmpyZ+U0hgsGHCZMF6NPSv0 qhCGQcdgD4WJZXv3zlGLPf9ieF7Cjw46x861aypeKNDodeAxO2Pi3KL+uZ2wvSQcRx2z ZfVA== 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=PhbkRYv1VDvLW8lyrRpJlsDLWdYcPAmdvXlz87XTnbw=; b=Plmb7sa+CUdtgvQjiorw/x1JyHaH80EOiRyXvkxUUulxUGHWArq5yay34fCOXBRGoK GvNWeqUcjynQsrYL5xGcVSNZbpTwi33S85FCLH/o7hS15rK3/9Czgkgkb+1yDpB1cksK XlzJgs1WnljPDTTiUI4V0evhfYHG0ki/3PRTfneyR3gtKCTL5q0vCTZou7r9aiOnQ1+C h3Qi21P32caZM4acJEhU813VTJWhR9S/mqpziavxYdSxTVf845pA+ZCbjrV3APHeSc/A HW6X64mUCXzKN1WtvM/UfLPXzjrVl9b2xyqOTsxIWSYTl04/9r1/FT3s8g06Fjm3+vKX fYEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jgYb/gcP"; 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 hr14si12086390ejc.394.2021.03.10.05.34.57; Wed, 10 Mar 2021 05:35:20 -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="jgYb/gcP"; 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 S233374AbhCJNbb (ORCPT + 99 others); Wed, 10 Mar 2021 08:31:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:49434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233560AbhCJNZy (ORCPT ); Wed, 10 Mar 2021 08:25:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 67A1E6500E; Wed, 10 Mar 2021 13:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382753; bh=3AZ9d/fbSmvE0R2+KG9wloFbQ1JQTBEvQ4q6XW2yVuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jgYb/gcPrqajIE4vbkXL66oJwgkWglKfP0Y7JNIlcw7Mo1QmEqcOfK4VfBmm1coCa fzDwSUFUeMNXm483wq2x5mUKx0DLPNbHysMhbwbIJGcZSNxzRlvJu4RAK0GUrmKClK jJ0Qwe0pMupySZRZgwNwTXYg4yaAwo3sxSZDoogA= 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 4.19 35/39] ASoC: Intel: bytcr_rt5640: Add quirk for ARCHOS Cesium 140 Date: Wed, 10 Mar 2021 14:24:43 +0100 Message-Id: <20210310132320.807898522@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132319.708237392@linuxfoundation.org> References: <20210310132319.708237392@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 8a943de1e5b5..d63d99776384 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -444,6 +444,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