From patchwork Wed Aug 23 11:24:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 110737 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3979556qge; Wed, 23 Aug 2017 04:24:35 -0700 (PDT) X-Received: by 10.28.206.136 with SMTP id e130mr1963223wmg.91.1503487475372; Wed, 23 Aug 2017 04:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503487475; cv=none; d=google.com; s=arc-20160816; b=zMQ2hMocpgNw4zegEgzt1rnY+uH564jlFBsuh1+BOdy7EgCcy/3i6OarEmlcW6uAX+ orNAm+1+UuD7NXSQxEkvOZIO06UrS/Rp8uN0lA0f59M6qhRBwoVyNz6FRWR+GUp/nRtT Sj+5N7tjFNdZYfET0lWVOpvbi44+JYFpXaq8Wf3KBHjOiQv4qtnvfi1RkdkcjQ0OZ+EB NFImMmxO4Chx3gvzF+QU0PHxmc0T7EyKIK+eLAre0iSMh+8JV++i7NrZ60iAVZDRLLfD ERmB45FQBeUxg5N11FRf2irUSAYPb6UZcM0osieclNzCEnjlQSMVg0VKmce/+v+aVk0g mZDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=b2uG5L4yv3MRqPOlT3bYbCS8cIIuyH2KU8WbUhLuW28=; b=cICn31BcuUJMf0dYFhm0FCIK3skCinDp+WTbwy+zqXfxWHotsEIv8sMQ7VxY2PiiMM zWp8igAKiP48DAuhN3dPOiHw/55cl+fk6mMjK5r3unslOZcKIRyRxJYUN8XS0WdsgshL vv8s18HPOCzt2gQ0jWoqKJ0Ukrz1ERRrx2cByZKWTjXPjkSjWTZdH70TkfbWiZLsdS9v 2QiKOm4WyGKRGIUCqYDC+dgRspolN4jh/nXIPJYaJKg7uBaYwblCKcVJdfxa+qQHA5tQ 2aaOyQ9xE+AQneUzE2Z2M4MOGAbM+G2XEaERDPOU6PFQF2zAfgpzKHi14Oeh5zm/MVnk KG3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=LuKOUao0; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id j18si1211415wmd.180.2017.08.23.04.24.35; Wed, 23 Aug 2017 04:24:35 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=LuKOUao0; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 21E8B26722D; Wed, 23 Aug 2017 13:24:34 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id CC82A267230; Wed, 23 Aug 2017 13:24:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RP_MATCHES_RCVD, SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 02E3C2664EB for ; Wed, 23 Aug 2017 13:24:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=rxVFsL90DSDB2opxsHRFYTGGsPRUQKwyeAz3yDVHQLs=; b=LuKOUao0BKoD 8PGmZ3177gQw9Rv483B3O06aDIolUpa7FoWU5MSj0d/hUUNypXhX5dfL/2utouQe5kmSB/5maVpN0 yAqIcV/t2TlCn7ekqh+j+EsEdvR3AEBD9m3irmFSDBeym82GrFpupjfaKDxh9NFp9eyLWwHgJYzV3 ZtLY0=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1dkTlr-0005p9-Jk; Wed, 23 Aug 2017 11:24:27 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1dkTlq-00075k-Qq; Wed, 23 Aug 2017 12:24:26 +0100 From: Mark Brown To: Pierre-Louis Bossart In-Reply-To: <20170822203239.19891-13-pierre-louis.bossart@linux.intel.com> Message-Id: Date: Wed, 23 Aug 2017 12:24:26 +0100 Cc: tiwai@suse.de, alsa-devel@alsa-project.org, broonie@kernel.org Subject: [alsa-devel] Applied "ASoC: codecs: rt5670: add jack detection quirk for Dell Venue 5585" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: codecs: rt5670: add jack detection quirk for Dell Venue 5585 has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From c26d8389be4dab2bb5a8ac16211a9966bf67091a Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Tue, 22 Aug 2017 15:32:37 -0500 Subject: [PATCH] ASoC: codecs: rt5670: add jack detection quirk for Dell Venue 5585 Jack is not detected by default, using jdmode=3 works fine Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- sound/soc/codecs/rt5670.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.14.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c index 0f4e5bc4476f..4ea51b487b8c 100644 --- a/sound/soc/codecs/rt5670.c +++ b/sound/soc/codecs/rt5670.c @@ -2851,6 +2851,17 @@ static const struct dmi_system_id dmi_platform_intel_bytcht_jdmode2[] = { {} }; +static const struct dmi_system_id dmi_platform_intel_bytcht_jdmode3[] = { + { + .ident = "Dell Venue 8 Pro 5855", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Venue 8 Pro 5855"), + }, + }, + {} +}; + static int rt5670_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { @@ -2880,6 +2891,11 @@ static int rt5670_i2c_probe(struct i2c_client *i2c, rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_IN2P; rt5670->pdata.dev_gpio = true; rt5670->pdata.jd_mode = 2; + } else if (dmi_check_system(dmi_platform_intel_bytcht_jdmode3)) { + rt5670->pdata.dmic_en = true; + rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_IN2P; + rt5670->pdata.dev_gpio = true; + rt5670->pdata.jd_mode = 3; } rt5670->regmap = devm_regmap_init_i2c(i2c, &rt5670_regmap);