Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1097692yba; Fri, 3 May 2019 16:11:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/s3hvRKCrpbZiav5hsvaLy6Ws7aGw0VF5xDxpPONzj0b/bUUN6Qm54mTD2JHTDi3gwn4N X-Received: by 2002:a63:c601:: with SMTP id w1mr14385367pgg.190.1556925074794; Fri, 03 May 2019 16:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556925074; cv=none; d=google.com; s=arc-20160816; b=ytMtv2abbjgCiasg0z5kr3pAngSQx92MoAKEIPp7gy9AKzlYs5lOMfKA2hvGgq3GAE I3u3xftwSBQ4tiHqPVj8hdhH9gIFU6QMJCUCR30NOHvWuvHOwHKqN+4bEXuUyP/kqamo ex5ajxwf1jKbz8tEsCI1V6PugD6YsyVfF3sTKglUjaRmmAhbGofuAGMsTXEeaAlZqJCz 1yMhErbRAYPaqgUmk9C7d8a0hAyE/s346cLHV45iKRkvsUB2Ye3StoO8jAjqP29/bkAo qFAjR9WsgDEaKyNXHYJd1i8HCc46xkbDZCR7vJW5UU0VCCQyTteFd5S6A06t1W5MGy2S Uzkg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vfwVmU13mIPCIYdpxEtGI/5zAfnwuEVr+axgRwt2aOs=; b=bm/lv3vs2ObwO0BiLVva+X1g3M+oTw6k8tfJOGxFe2ShOqwiaEXpBZsWHulfBdsF6J +MYvtwj5pXpdGmolEuu7Sm0HwlwJ+txh9XRTSl0A+fGMBiwnNHx5WlH/39W2n16CblHv tRPwVm3q6w9OJ3fUGKlcgIFOHHDg59qf9In7yG54znoegvaKmzkpdcLP0jIHwA8Df2EG IeWOmEAyLKtMB7S2SKIk/Fznwv8vijy8J/1xKPIIYODNVnKoWj57dM8jC1LKoSANbpbn pyhAltmukSCeejl0j6kbINP25SkqIFGDK6YWeKb818puGCIuci2DW593xkIAl7pCZQrt KC2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OZYMgYiB; 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 m2si4515620plt.429.2019.05.03.16.10.30; Fri, 03 May 2019 16:11:14 -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=OZYMgYiB; 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 S1726934AbfECXIZ (ORCPT + 99 others); Fri, 3 May 2019 19:08:25 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:36762 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfECXIY (ORCPT ); Fri, 3 May 2019 19:08:24 -0400 Received: by mail-io1-f67.google.com with SMTP id d19so6578297ioc.3 for ; Fri, 03 May 2019 16:08:24 -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:mime-version :content-transfer-encoding; bh=vfwVmU13mIPCIYdpxEtGI/5zAfnwuEVr+axgRwt2aOs=; b=OZYMgYiBy48UTf9kHTJiQosCJNjGq0fvWxH/7gnknxnJFiiXIJ5gONsdgKuPxkAVSq xPreisZwcJu4rWUvqJJOTmZ5VPIKJInSKeHDuTXYSUKKjN9LJBmR4sCXvHdldSsXYPpN QzRNFHl43M7h9J0OkjNTqOjt/LgXyKK/Po1UU= 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:mime-version :content-transfer-encoding; bh=vfwVmU13mIPCIYdpxEtGI/5zAfnwuEVr+axgRwt2aOs=; b=anCq9Pnzg9abd40wbbIBvbeQy+NmAvC8y9T5NIJYNeuSADRekUVpOFCV8eaZ5XFm5S P+VvTvZAGs+a2je+amNjy/d5iO9W9F09M+SCTSjmGsDG3T8rCE+5xcV9AhV2sjLLCj4T /g89azQIxQvx78GrPr4GjgCNPhWjT5c39aDSTMGWzahZJBpCRDKXmITUMkHnGOg3bttS kgTRNmWipmVauwNse4DsAixRMdjcR5wJUOhZUbBn/bQwCOlvQ79n+AN4CHALVkzgjT1X HERT8k5ep8OroeqCLKKW7gN+0+QAa7pleUOJKXsSTlV1v3EZrbARpA76ta2IIl1oW7Jw EMsw== X-Gm-Message-State: APjAAAVfqVk0xU/nroX8WOTjjJDNBXeHy2LwYEdq5Lr2YR8qpJx6JkrS Tqc3OcIH9HjyKkPOqp9HreWg28SWi+0= X-Received: by 2002:a5d:8cd1:: with SMTP id k17mr8580865iot.287.1556924903390; Fri, 03 May 2019 16:08:23 -0700 (PDT) Received: from localhost ([2620:15c:183:200:33ce:f5cf:f863:d3a6]) by smtp.gmail.com with ESMTPSA id 19sm1651503itm.6.2019.05.03.16.08.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 16:08:22 -0700 (PDT) From: Fletcher Woodruff To: linux-kernel@vger.kernel.org Cc: Fletcher Woodruff , Jaroslav Kysela , Liam Girdwood , Mark Brown , Oder Chiou , Takashi Iwai , alsa-devel@alsa-project.org Subject: [PATCH v4 0/3] Fix jack detection for Chromebook Pixel Date: Fri, 3 May 2019 17:07:48 -0600 Message-Id: <20190503230751.168403-1-fletcherw@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog 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. v4: - Fix incorrect void* cast in rt5677_irq() v3: - Update commit message for patch 1/3 to clarify why we implement our own irq_chip. 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 (1): ASoC: rt5677: allow multiple interrupt sources Fletcher Woodruff (2): ASoC: rt5677: handle concurrent interrupts ASoC: rt5677: fall back to DT prop names on error sound/soc/codecs/rt5677.c | 346 ++++++++++++++++++++++++++------------ sound/soc/codecs/rt5677.h | 14 +- 2 files changed, 256 insertions(+), 104 deletions(-) -- 2.21.0.1020.gf2820cf01a-goog