Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243676pxf; Wed, 10 Mar 2021 05:31:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6Wb7kQPGkAiBsMXB2dSwPl+uubH+lBnEVJk1w+LI0Tf8oK8hU7wD4nO2fVtAAUNMZQK/3 X-Received: by 2002:a05:6402:35cd:: with SMTP id z13mr3312742edc.21.1615383076345; Wed, 10 Mar 2021 05:31:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383076; cv=none; d=google.com; s=arc-20160816; b=j4QwJTashFFWuv/XOa6pw7h0aT1kyLJozoj7Kg70ZBB0jqNGtjyNj/F2hTc6Yq03xB ZUOWGN0z7rdvkXihS5WdHlsn6oJXpeFYRDuosCll8IhyQljc0+cZBvaYVgTagE5CO92/ W730AVIfoMUDaZeOcdmOh05uSdxGEZMrXwCLuvV5emNxjwyZEiigfNzuSQFODIafGatj HWZMr1rOWcTav23/gQ1x2dNgK70ZAblEsBOOPjvtxfQ+Y4leftgWQnV1Ek/9Ur9zS17O b9z0Oz4PSbbb4iPHsHGjhRksRZnyVWxvnPor0JQjv39gImCWVbpr5bNC+mnxMxHGQ7Jd Vx3A== 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=gyqh1oeQ8DZzDnsQu5cwy7uhcjURrK7GRR5xBp0jLUE=; b=uxfxz6D8nTju8F5utzhWIAuf0h+5S6W2QWrz0HKn3ha71UxDzuFtI3QaqUecA90KPr Iiyx57PXV4XMAWQnaQ4y+40UYMA7+Skixb0u0D1lTLY8YQudoq5NZHpBVfLoAwJ0cuWd vX8F+D7rfsiCcjlMgVf1IEph1s7b6Xdpsch1rkA/1753bDBAvEYRr0LMcKFcwWP9F+NL 6dutPdI0vbswOSwAYIJ66ZTxIDC6Z8cI2HgllswJA5/bKtF9N7qRaSCzTjtGbBfrwM0j hgFlblmfpNMcGUQaWwhHKzrt6HctKzbNm1uz8zMSod2zNVlwycn1DVj5WyVdAdkkmTlp 3clQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v2bfOV+H; 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 g3si11526671edp.527.2021.03.10.05.30.52; Wed, 10 Mar 2021 05:31:16 -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=v2bfOV+H; 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 S234066AbhCJN2D (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:46766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232950AbhCJNZK (ORCPT ); Wed, 10 Mar 2021 08:25:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 715B464FE0; Wed, 10 Mar 2021 13:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382709; bh=KdCT76QiVLJzUWD0rj2dbnAIGH1XGWGiiy0yBdD0XNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v2bfOV+H8viaRQfe2dWm5Il4s2MkA32kp2aJr8trxXWkxXHheg/IB5OC8QONwo01M uMZ3KYyMf+fPOdbbW+Olbir3Ahz1hJPPulPv0bNSRhmwqEykVsvbrnssOVBfb65pkD 2KTd8qahTLyFXEJXkElYiJe9UiZGcUFYdtLTBrXw= 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.4 17/24] ASoC: Intel: bytcr_rt5640: Add quirk for ARCHOS Cesium 140 Date: Wed, 10 Mar 2021 14:24:29 +0100 Message-Id: <20210310132321.073017675@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.550932445@linuxfoundation.org> References: <20210310132320.550932445@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 9ee610504bac..cfd307717473 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -435,6 +435,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