Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp32329ybi; Tue, 18 Jun 2019 16:46:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzETUDVyHA+4+Wrr1VsZv0ptp1Gy+1fHu1m7D29Ma6PF+ptucyiltQv55+AK2Mbf/27Cntn X-Received: by 2002:a63:5211:: with SMTP id g17mr4642731pgb.405.1560901594836; Tue, 18 Jun 2019 16:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560901594; cv=none; d=google.com; s=arc-20160816; b=j2BVj8BBMTlneMOR2DHQx4PpSEsxAMg6QyquHs2OvOkV9eDR3RnkgtqODBvJ1Vr2eL r0AOfqjTx29C05XCf2AANA49XQ7UGalseJRMZb8aAsm1bl3jws3BgKJYUudszhGNm+Lm wewR/IJjhwdvoYgWHOOEub3aMQa2JMUbBjBhdVN6wNb8P3j6fgHJd0xf6sJdu8YA85Fr bAKW0YonFnZIx+YLPKf1uBnitoKJo/8Xole3I5u/U5Nte22u9/6XesMtHIQ84EVz9MjF yFox9XxQe3ZD+47uEqD2nGfI4lkf5YQQhzDQVeq4U7qkevG9SSIOBhnavn+K7qa0pEN9 ryxw== 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=P6OiHApPpuHFcXqpPL0yqvZnshiOzXZvGcLbs7dM2ic=; b=fHeMrRd6fAZmu5fOkNEW4L4cLTmxQXYqW9kvVZzINdj/Xhw4KlIbytGDl9Sxal5YnY Tr6fjbrjdf6Y1kbxnEfVnT6lclOLntCrE5WZdGQJ1Obl4811F9kZH7PV5uUkl1Y73Qzx crNrXG9PFMOdieWJlNHheRxKfhIQrgWUg98Hq67sg8Au+wmI2Tmeh5PULPysSIVd3IJ+ ZHvDyRu5OxtWvXFUrLJWeKiV+Eo1slxur/oWn7EOLLOhSZEd1mUv0XXOccCDhm8errQD fPNfdKZTcQn7EWSJfOaYxJeUHfL4xI6ac+8e0vi/owA3vLEnaWfDJ6/NfovCEIaQ2tju qS7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Fw5Pyth5; 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 t21si3520599pjq.62.2019.06.18.16.46.15; Tue, 18 Jun 2019 16:46:34 -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=Fw5Pyth5; 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 S1726446AbfFRXqL (ORCPT + 99 others); Tue, 18 Jun 2019 19:46:11 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:38178 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfFRXqK (ORCPT ); Tue, 18 Jun 2019 19:46:10 -0400 Received: by mail-io1-f68.google.com with SMTP id j6so4296039ioa.5 for ; Tue, 18 Jun 2019 16:46:10 -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=P6OiHApPpuHFcXqpPL0yqvZnshiOzXZvGcLbs7dM2ic=; b=Fw5Pyth5dnuVNp0vDCXr26K5dYvEdk35TgTo4Kp3aiX5j8Icz85fstmHGai3mKRtb3 8jR57qQM62+JFhSKNzwtWC5BN59Evz5Hr4HHXePpBZUIp7icD/N6vFwbKN96uYLhCRbu jcjA5hmiE3S/1RzV2Jhl0fyk5yRgUyeP26RrM= 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=P6OiHApPpuHFcXqpPL0yqvZnshiOzXZvGcLbs7dM2ic=; b=uCCIrLxQ75RcoSnzmZyHHTVEnlQhb9ILpnzBmHLMarMLdzEmQgFwlDczkMY4QasiUH 3C4VZ1PkyCV9Z3rHjXkGmg3giaYxuWgBNMSpXEJ5nqUNNJArc/RKneoZyCQzw7TuMN/U hrtf+gAZNV4RDYEnW/lLCVFb0iuh4q5h+6pcPwkqTowRszaM2dSPafIYAveNWhDffoy9 GdksdsRerxUobLXaCSIOpYI4mO6C9FYjefoHT8t5q20SFCqH4ETQr+nGkqkgCe9iE/Dd GestNDTDqnHN3FNh/aLBxPz3zCvoWVmRz4Ma2wtAbr9G+g7VEG3b3Av4Q6Te2AfGkDLN iQWg== X-Gm-Message-State: APjAAAUb41+bR2HNEK9uN1QjW66qb3xCg14Ev5RkzRxs0fdCceZfgDUg UJfl0nZ4DpferJgISsA0p+o7oPXER8lxAA== X-Received: by 2002:a5d:94d7:: with SMTP id y23mr5967649ior.296.1560901569308; Tue, 18 Jun 2019 16:46:09 -0700 (PDT) Received: from localhost ([2620:15c:183:200:33ce:f5cf:f863:d3a6]) by smtp.gmail.com with ESMTPSA id y20sm15562673iol.34.2019.06.18.16.46.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 16:46:08 -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 v8 0/2] Fix jack detection for Chromebook Pixel Date: Tue, 18 Jun 2019 17:45:53 -0600 Message-Id: <20190618234555.188955-1-fletcherw@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-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. These patches change the irq implementation to support polarity flipping. With this series, plugging and unplugging the headphone jack switches between headphones and speakers automatically, and headset microphones are also detected. v8: - Remove first two patches since they've been merged - Add pointer to i2c->dev in rt5677_priv for use in dev_err functions - Convert pr_err to dev_err in irq function v7: - Rebase onto for-next branch of broonie/sound.git v6: - Move refactoring into its own patch - Reorder patches so that DT property names patch is first - Clarify commit message for patch which implements irq handler - Remove unused work struct - Make IRQ function return IRQ_HANDLED only if IRQs actually fire v5: - Fix void* parameter to devm_request_threaded_irq 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: clear interrupts by polarity flip ASoC: rt5677: handle concurrent interrupts sound/soc/codecs/rt5677.c | 192 +++++++++++++++++++++++++++++++------- sound/soc/codecs/rt5677.h | 8 +- 2 files changed, 164 insertions(+), 36 deletions(-) -- 2.22.0.410.gd8fdbe21b5-goog