Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp630236yba; Fri, 5 Apr 2019 13:45:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYc5p+bUZG8CRQc2+2uc/CC40RhZPhqndIBuUj9MKAB9TDt5GuDfCDWSE53Zj9BQEOUt0M X-Received: by 2002:a63:2aca:: with SMTP id q193mr14074825pgq.269.1554497104268; Fri, 05 Apr 2019 13:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554497104; cv=none; d=google.com; s=arc-20160816; b=geuR5d3W1cH/Ot9O194McCYORNOVbIUQaVn139/s7g14B9TubxKodyKQIDRypa904M KDJc/Sg+SFVjG0jlzN6ZeVYCBj0CHOPXOeGdP2t9FLSRNiOtSybCet63UmNP4vSkFBSo 5mYrEK9GMxQfzoPjE+Uq0D9GWJxKHoKz7bTdyrZdcnsglpNN8AbqzoTIHeUwZI12GABF /4WAy3AwTcBuXBSoGS0Bsm39+rLyrzpjcOOGOshm+l/ubXs9kgt6ViqX2/ZRGo1SAfH1 FLF3Z5LpXkbpxhJYmSnQbrinSEIIbQqG9qgRhvsyC8IrLAhtZP0I4WNMRbQJHypT/OUx SPCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Es5san3RpuuLQIOr2CbZ7NBduDkAnwJE8tKqqHDxe5c=; b=bnmRRnOtOALFZU+xi+XTSBV5XgR9KoCB4mJTZGvCWtRIYdsrOuPoikm1dXhjBLHqe2 OLgLHmYjSlSrdjt2wfZ8057YYP2LxJyi1aDMs6fqNm668VtRKDDuHzxkCjgnd105iepJ yXSKX0nCLwFQHVbuFXJfJa7mtDiYAhEXyG4AWoxE4oncz38417RXXFlcqNqHNKgZn7rN CO6M0TEstTgPLhADO8LXMjVX7BWWTiQgIGBKnuKcBjmByeaJUMbAJgVJK55PSlE8NKJQ TmAryY0GvYumXV8+iYJnQfCB1w6041IHp3Mnp89Ob2CgxTE1/CsQHi7RUjzn3/avRezV ptGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NDhr3zbq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si19912158pgj.500.2019.04.05.13.44.48; Fri, 05 Apr 2019 13:45:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NDhr3zbq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726493AbfDEUn5 (ORCPT + 99 others); Fri, 5 Apr 2019 16:43:57 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:54552 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbfDEUn4 (ORCPT ); Fri, 5 Apr 2019 16:43:56 -0400 Received: by mail-it1-f196.google.com with SMTP id a190so11626980ite.4 for ; Fri, 05 Apr 2019 13:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Es5san3RpuuLQIOr2CbZ7NBduDkAnwJE8tKqqHDxe5c=; b=NDhr3zbqz336j49ZyWmzl2vA0rsCKok+7P4R0dJvzWqpXoZbxiqE88xMxiTau2siRH dNmvFJ1MPWLwIdiNSSB4zwEcrlxDBMU4cWj3TtnC+Q+zP8gOTwWAbLNFC8jD0uyWRTdz 7q+q/7x9OwbsktrKd2d0nVHS61HQYfGbs/JUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Es5san3RpuuLQIOr2CbZ7NBduDkAnwJE8tKqqHDxe5c=; b=QIGKOyHMH10RhKKlStaeNsrKWDp3nwXZWFuCQBuNXwjsKBk2cMpDKRUEeMPC3mC1wW X1me4U0/qMteY+cDxaiENAkmE9q+hWXW2uvXdNfv5dmZ0FUppwcKwZonaeuO5iVNwAcH 9ogNqYC8koFvLh91C/Ne9aSsQYPOWHk2Sxk34pIQNhi59c3jA1B9aTDvtVfPQTBcNZyy kHfttRJMuI9E/oDtr7SUZqB4akmNJXRuJKZ0TM27iinZ/Q3DqJQQf6Q94oBcmROd05Eb ZM6kH5wA3Rat5kSX/inxYCaxEQCdp+LQkDNakZM4uTiUg9MZzaqs5L5MVFcGB9X4gE9K 9Yxw== X-Gm-Message-State: APjAAAWFXrgegiHJGFTVA4c9FsLDtdlnpzdQcp7PzPnnpeqgfP/PFrVF 23Ji4nuI4NGvPjXzkp0o7+/CHGLoah+E4Q== X-Received: by 2002:a24:68d:: with SMTP id 135mr10758423itv.53.1554497035877; Fri, 05 Apr 2019 13:43:55 -0700 (PDT) Received: from localhost ([2620:15c:183:200:70a8:812a:cdeb:6e0]) by smtp.gmail.com with ESMTPSA id o141sm1582777ito.21.2019.04.05.13.43.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2019 13:43:55 -0700 (PDT) From: Fletcher Woodruff To: linux-kernel@vger.kernel.org Cc: Fletcher Woodruff , Jaroslav Kysela , Liam Girdwood , Mark Brown , Oder Chiou , Takashi Iwai , Curtis Malainey , Ross Zwisler , alsa-devel@alsa-project.org Subject: [PATCH v2 0/3] Fix jack detection for Chromebook Pixel Date: Fri, 5 Apr 2019 14:42:54 -0600 Message-Id: <20190405204257.87095-1-fletcherw@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190401205519.34023-2-fletcherw@chromium.org> References: <20190401205519.34023-2-fletcherw@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Headphone/mic jack detection doesn't work on the Chromebook Pixel 2015. This patch changes the irq implementation to support polarity flipping and fixes the configuration code so that correct GPIO pins are read from ACPI. With this series, plugging and unplugging the headphone jack switches between headphones and speakers automatically, and headset microphones are also detected. v2: - Split IRQ change into two patches: adding and fixing potential race - Change config reading code to try both DT and ACPI style names Ben Zhang (2): ASoC: rt5677: allow multiple interrupt sources ASoC: rt5677: handle concurrent interrupts Fletcher Woodruff (1): ASoC: rt5677: fall back to DT prop names on error sound/soc/codecs/rt5677.c | 347 +++++++++++++++++++++++++++----------- sound/soc/codecs/rt5677.h | 14 +- 2 files changed, 257 insertions(+), 104 deletions(-) -- 2.21.0.392.gf8f6787159e-goog