Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4253342yba; Tue, 7 May 2019 15:02:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQqfWmnSDuZsZILHJKuxLM/j/IlADwd+0QI/mIGPAPRgQ7xmiTnJVOw6++QIRTOlIWycG4 X-Received: by 2002:a65:5184:: with SMTP id h4mr42918458pgq.109.1557266562415; Tue, 07 May 2019 15:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557266562; cv=none; d=google.com; s=arc-20160816; b=gRpyLO+zJO0joz8i7lhBiqrsmPirvAsZSE7XWzx9Ykzggz4QNuJJl6Mzs8yq3NhJ8S 5HFGv9021v/2SkqVuDvFPaoQoOCmNU66CGu+CIA90oFKCxdUH13hUWHUQIqFVATCYheG irKkvPUGZzEHE/LPHCSMn9LmuIcR88AhN9UwsGIgdf0qgyCULjyLu+H8q0kCo7F2JT8h Pxp+zhBsvfhm3h3/VArWqoI0hK4DA1PsBLyFGN45ryEO7zFrHK90WVQOoMZ80rD7U9wb wN0KS6Q23zMcoOS7OCmbhWBsn3sqgaUvaOuXg/d0zcgtfY2R1TVNVJ3t49qpeLLPU78y DFow== 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=xYc0JESinzI2iwWzUMb1V/Hdw0SX6rpr4LLne8uyVks=; b=tNZvp1Rq75/LXqD70UYQbZNHUbOlQsy1T762tujjCyQf2WZ6F+DjyVusvCEytMGUpf mN+Invrx+2weeD4HbDxTUD8kaRSSrCnSe/AcOGqWDadV1K4RqcVcLeNmvEnuyGmPMdeA 0p3tYLz9iBM95hTUsO7mlDXEsqK9IE0UI5B6XzyKrE1qn7DfdQFopv5F7P/w0rYmFfgV aXBikZDa1P4deK09p7Cbv5+ZergbAgsQQDDwwx0kXkNeGRaiSCuH/A3G3PMLrNcEhpkj KYz3ds7S5oC1OCBFA7QaznfIGoP9eHg+k64nxhTqUBexw0ma7+SNhnexzSUP7cmxWm0l a25Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MtLFGoue; 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 d5si1673699pla.352.2019.05.07.15.02.25; Tue, 07 May 2019 15:02:42 -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=MtLFGoue; 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 S1726362AbfEGWBV (ORCPT + 99 others); Tue, 7 May 2019 18:01:21 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:39965 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbfEGWBV (ORCPT ); Tue, 7 May 2019 18:01:21 -0400 Received: by mail-it1-f193.google.com with SMTP id g71so703277ita.5 for ; Tue, 07 May 2019 15:01:20 -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=xYc0JESinzI2iwWzUMb1V/Hdw0SX6rpr4LLne8uyVks=; b=MtLFGoueRtD3/ObzBu30iA+pfZ50NmYRCiskzTCJNKhaklKx3iHSqVK0qkMPJ3jipg Z9VgV7dUp1+EmERR6VdzS88+gxm4TQG0p2L+lJo9HHp+yqjBLwtdRRivXgDLEoz6xDca bNl4jFRZCGJThqHpA6eoohDPBXxuic3g7XCvU= 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=xYc0JESinzI2iwWzUMb1V/Hdw0SX6rpr4LLne8uyVks=; b=k16tqEPOtw8MMduuP1g0Mbmi738q+kuzjJ3GI5LHCYAEYQ76ffMgNqJ2lfOH6T7Siu 7vF4RFRkFFQZu+WFNAaY5MJaAlTAsviJPRqcjyhbZ8kjg2NhJ0exxJJW/KNUhzv/41su Xbc+qa1qcSfkvcXN1Rnyo4qOh/d92GjZCjFG4b23wkb6rWxkw7ACfdqAqMxy8JhL6y1L GUVAdyWIkAst4o/PtHszGcowgd11ExRJIa29QTT+iVoHsdn40dKWlI2YYixIvGKct6Uy yRA25in0z40jc2BBFdJvCJ6MVmgmduHduMCF16Mi8PeeQmUudEWDkRhGGuWGACTqOGwc Gl1g== X-Gm-Message-State: APjAAAWQ4goBOXKl/fPXlRJdGwe6UHPG5aBfig7RSjRwJna6IMvlEDgi Yt8dsyC19QchjVhoxXLfC4u2rQgRgH0= X-Received: by 2002:a24:398d:: with SMTP id l135mr624053ita.79.1557266480307; Tue, 07 May 2019 15:01:20 -0700 (PDT) Received: from localhost ([2620:15c:183:200:33ce:f5cf:f863:d3a6]) by smtp.gmail.com with ESMTPSA id u13sm3028527iof.22.2019.05.07.15.01.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 15:01:19 -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 , alsa-devel@alsa-project.org Subject: [PATCH v5 0/3] Fix jack detection for Chromebook Pixel Date: Tue, 7 May 2019 16:01:12 -0600 Message-Id: <20190507220115.90395-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. v5: - Fix void* parameter to devm_request_threaded_irq - Correct authorship for patch 2/3 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 (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 | 346 ++++++++++++++++++++++++++------------ sound/soc/codecs/rt5677.h | 14 +- 2 files changed, 256 insertions(+), 104 deletions(-) -- 2.21.0.1020.gf2820cf01a-goog