From patchwork Fri Apr 5 20:42:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fletcher Woodruff X-Patchwork-Id: 10887821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6496417E9 for ; Fri, 5 Apr 2019 20:44:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 494B028A6C for ; Fri, 5 Apr 2019 20:44:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CD2128B2D; Fri, 5 Apr 2019 20:44:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 182E528A6C for ; Fri, 5 Apr 2019 20:44:57 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9B19E1625; Fri, 5 Apr 2019 22:44:05 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9B19E1625 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1554497095; bh=vSNdWtSl4CUGCQT7TYzlj8gE7mxaO5XKbilDeOT8gig=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=qntOzu1KUzemjljctq8JYzP/bg3EvJfJ64cWqp5EHvGMnpVA+8VXStfaqLm39L6sP LSmi+AksOYK0XmPjfzFG3W4sh/BZwyu5XjzVYfieW1TmQum3ensDQP/9/8pFs+41Xy 6RsVixfT+kep729yVTI7NoldvRVaiFMzSWfLqccQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D968EF80C1B; Fri, 5 Apr 2019 22:44:04 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 48C90F80C1B; Fri, 5 Apr 2019 22:44:00 +0200 (CEST) Received: from mail-it1-x144.google.com (mail-it1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A8F8EF80C1B for ; Fri, 5 Apr 2019 22:43:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A8F8EF80C1B Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NDhr3zbq" Received: by mail-it1-x144.google.com with SMTP id u65so11778112itc.2 for ; Fri, 05 Apr 2019 13:43:57 -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=ewQNTwRlJo8MlC+l3Hz2/LGrXLm3eT7oj4uEv/y5TfH/o037J8eF+TUaDTRK39R4K4 WZlErNYseSoyMr8sxdfXN5OTRRxTyNTKIO6TOWFCoPcYTzME9w1mmK+Q3PJMO/7zPXNB WoyCy8R4P0Ea1/xyVMRGuBS0WXwFf0Z3jnZKkJmN1dS82pOKPhVtJTkq3SaP6h9TMYyN SfU52JCbwcBQrwWx6NWa+1/9ta4pEUL62cGl1NJocgT3NO+314gqgkywLSK4JHV3rE3g 7oqKIFF9bqEtt6c/SRowJHmRlEQ+9HKhZzlu/hRFI9fd559tvVFIROQ3T4UQ04A6KH0p R/2w== X-Gm-Message-State: APjAAAUB5aHEmHZ6bvlXgVnb+eI2EMOGl9ffNv4R3+Iy1cPEQ5QKAqJj LbsVEzEIouCZQU981Rc9fdgt8Q== X-Google-Smtp-Source: APXvYqyiPxFo6ehU9+aWqpGtsXLXTtjWidpsMYD3XfInHQsyYcCdaK0vLyriASnoqik6L5bIztmN0Q== 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 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 Cc: Oder Chiou , alsa-devel@alsa-project.org, Ross Zwisler , Takashi Iwai , Liam Girdwood , Mark Brown , Fletcher Woodruff , Curtis Malainey Subject: [alsa-devel] [PATCH v2 0/3] Fix jack detection for Chromebook Pixel X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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(-)