Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2524449yba; Mon, 15 Apr 2019 13:33:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC6TYCgD3rMyNg5Hx0avR4eCHtwvvI1q8ihpKwKf85Z7lpd9DvNrt7BtGO6vV5xVH6BWVA X-Received: by 2002:a17:902:4501:: with SMTP id m1mr49723561pld.290.1555360403146; Mon, 15 Apr 2019 13:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555360403; cv=none; d=google.com; s=arc-20160816; b=C9Z+ZcmwXjltR4Qmmn6s6wSxjMrZtDMvyz0OEplsAXCzTX8n5II7JA2pAMwbefkIOE uSS/bZ2FEQfnTklIGwpc5OeD3eoi7qSIx1dHVFk0xe1MlddvKU54DzaMQylJr299C3R5 XzCv943O7m0ykBjWfAQaSmSufSY0tevevfkIh5pPA7910w01l+zULvMMyuEkFVfuA6Xc ttbgIDAFmBfBlJxLeDLWqyeAg6lA9FPg4oUaTaib6lM0NKziRatsRrLGz+Xn0/4dTmRy Sm+9QUy3UIN8bD/m1HADpcweCtetdfLQbMPQc7mD04oY/kdWaH0cB5+2LV/x/IHxWh5l uF7A== 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=4iW/IfYRBaGq2VnKD56KAQLInNU4BydNaULyz/6KFMI=; b=NzAhADaMuCqBwSFE5FhfQGOniM2jsHj9tv2WK+B/Kp6JDvOcFriYn2amI7dBr3SLsy VekAnNXaEuA8VZ+8nazSbER0rF2uJU5UyxQztGf8/5MblWD2doaFOcF+WoQv5Do2SXOp h6slPr8K5v1SOx+A6QNWnCtkCKckj0qMtccyeLg8Az88PLVjIKfVfUbzJbyldq0uzA5q L7VjfCPZ0xIF4ZUii5ygnFzxB5iyz+RaQegRbf07XOdVfo9yZtOM5rhnHOAPCcuGnb5g JANBMTxZdU0mdvDQpBjFB88WeMt4+HCok2Cu3It/mVM0DcFDck9USE0kgScM9JgJxLre q5iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=A+EBWeKb; 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 q9si39759805pgv.542.2019.04.15.13.33.07; Mon, 15 Apr 2019 13:33:23 -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=A+EBWeKb; 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 S1728637AbfDOTqe (ORCPT + 99 others); Mon, 15 Apr 2019 15:46:34 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:52483 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbfDOTqe (ORCPT ); Mon, 15 Apr 2019 15:46:34 -0400 Received: by mail-it1-f196.google.com with SMTP id x132so29131338itf.2 for ; Mon, 15 Apr 2019 12:46:34 -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=4iW/IfYRBaGq2VnKD56KAQLInNU4BydNaULyz/6KFMI=; b=A+EBWeKb1lYdshJNbQ5pxM9s/kAqtGN3aTEeXIqqr5jh9eCQLYEj4RVJYWVUuNoN3I g9uG1NQe1oiuFEC7cAJese2mLP+f5I5hq5AWsA1olP1J6fn7nphNCUPg0+2a/zKbkJFx 5OTICq1zlH7lCYcppa+2ipKIp5o6plXMTBTOE= 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=4iW/IfYRBaGq2VnKD56KAQLInNU4BydNaULyz/6KFMI=; b=tTgMCiMVszTG3mDmDp/iWgfUD3hEerp01K17jVd3FKUzlebdbEteKVHWpwNRCa84Gl 3pAx9tacjXHG64Wv35OoNEcI/rcrt5bzvZ2wnkFl6nrYNjDcZIC8bBB4vpKEQ462x/4i Gj0dgknQy4+4HpKYIi+ZHXy3bWydUPM0HWgETr3DWHMQcNneiGm37Jxg/1pTJ0nIm1iS 5FtFEnkLMZzN+r98495CSw7RuABEvoAptwoZb4nyVDI9OZPzW9BvbpHg+uwmPL6Tqq9I +wCLfAP4A/1i1m4i7mf2CtNcJ+3GB3oWdPiF/kRqgXX12EjL1YlvYCkjxBXQuesWJS6p DJhQ== X-Gm-Message-State: APjAAAVH9QK6qtc9crw3dVOiwHmaXFMtLNz4Y4HjKj7sLrlj2Md+h3fI J1il06jw61Ds+a/lN1wi1FYS519BmJM= X-Received: by 2002:a24:6c84:: with SMTP id w126mr22286717itb.35.1555357593532; Mon, 15 Apr 2019 12:46:33 -0700 (PDT) Received: from localhost ([2620:15c:183:200:70a8:812a:cdeb:6e0]) by smtp.gmail.com with ESMTPSA id u13sm18517329iog.80.2019.04.15.12.46.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 12:46:32 -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 v3 0/3] Fix jack detection for Chromebook Pixel Date: Mon, 15 Apr 2019 13:45:56 -0600 Message-Id: <20190415194557.9182-1-fletcherw@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190405204257.87095-4-fletcherw@chromium.org> References: <20190405204257.87095-4-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. 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 | 347 +++++++++++++++++++++++++++----------- sound/soc/codecs/rt5677.h | 14 +- 2 files changed, 257 insertions(+), 104 deletions(-) -- 2.21.0.392.gf8f6787159e-goog