From patchwork Fri Oct 3 21:37:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Zhang X-Patchwork-Id: 5025201 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 649C0C11AB for ; Fri, 3 Oct 2014 21:39:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A22BA20222 for ; Fri, 3 Oct 2014 21:39:47 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6FA0A201FE for ; Fri, 3 Oct 2014 21:39:46 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8A17826050B; Fri, 3 Oct 2014 23:39:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id A1371260541; Fri, 3 Oct 2014 23:39:11 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id E7F0526053E; Fri, 3 Oct 2014 23:39:09 +0200 (CEST) Received: from mail-yh0-f74.google.com (mail-yh0-f74.google.com [209.85.213.74]) by alsa0.perex.cz (Postfix) with ESMTP id 24ECE26050B for ; Fri, 3 Oct 2014 23:38:36 +0200 (CEST) Received: by mail-yh0-f74.google.com with SMTP id f73so55968yha.3 for ; Fri, 03 Oct 2014 14:38:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6bmxMEi/PcFQB4impAUAkdnPrNbsiKSP+V5sFE/SmBY=; b=CT97YOMGfRoxpHKoxd0SxqNbMOcl/aCsX+PaIpqgofR0P0gZrJ02Iu2Uhw7QR2ywQR RmLhfs15GNNbnDSJJSTes6eDSye0utlPs9KxlPdGOoUmRCPPS5gd1DzAGgvvWgq66rDH U4F7YwD0yODfYnGBBjiYFzkJy4f1GxAJhnWzHMmBBL3RypMjVgkZzFT//DHa6kl1oeNF CBYZxXCPzL2150WaeZYOys8uG6tISGeSG/XGUKLjSPk96P1+G1kfo0udqtMPrkR6HzQJ OnuUENPS4jLuMZEF3rFcUHvBFvKXKJvUV7/HwCk4OM4AA0A3d+DIC2d5QnEtmG+zIeg+ PAsQ== X-Gm-Message-State: ALoCoQlc82D+Of4nHaNtZVCfMID7VpGQ5FevD10mj1Iw7oJRcOSRTDdqY7qZ/nnkxEQk6+nbPcTpn6Lv1OgFP3048yhc0WhyTUb6UQuq6PoLnO/33nWk7dXgdMj0s/Yr5UqTlTcvOB1+xqdBrHKjOiCsse8Ba29sYY5lSmNZJcwREtHyE2PuY7U= X-Received: by 10.236.90.79 with SMTP id d55mr782846yhf.35.1412372314682; Fri, 03 Oct 2014 14:38:34 -0700 (PDT) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id j25si398742yhb.0.2014.10.03.14.38.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Oct 2014 14:38:34 -0700 (PDT) Received: from benzh.mtv.corp.google.com ([172.22.65.67]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id q4KkGmy3.1; Fri, 03 Oct 2014 14:38:34 -0700 Received: by benzh.mtv.corp.google.com (Postfix, from userid 215530) id DF946E0A4B; Fri, 3 Oct 2014 14:38:33 -0700 (PDT) From: Ben Zhang To: alsa-devel@alsa-project.org Date: Fri, 3 Oct 2014 14:37:25 -0700 Message-Id: <1412372246-10489-2-git-send-email-benzh@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1412372246-10489-1-git-send-email-benzh@chromium.org> References: <1412372246-10489-1-git-send-email-benzh@chromium.org> Cc: Oder Chiou , Bard Liao , Mark Brown , linux-kernel@vger.kernel.org, Ben Zhang Subject: [alsa-devel] [PATCH 2/3] ASoC: rt5677: Add ACPI device probing X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The rt5677 codec driver looks for ACPI device ID "RT5677CE", which is specified in coreboot. Signed-off-by: Ben Zhang Reviewed-on: https://chromium-review.googlesource.com/207622 Reviewed-by: Dylan Reid Reviewed-by: AndyX C Huang --- sound/soc/codecs/rt5677.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c index cecbdb1..19dbb8a 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -3680,10 +3681,21 @@ static int rt5677_i2c_remove(struct i2c_client *i2c) return 0; } +#ifdef CONFIG_ACPI +static const struct acpi_device_id rt5677_acpi_id[] = { + { "RT5677CE", 0 }, + { } +}; +MODULE_DEVICE_TABLE(acpi, rt5677_acpi_id); +#endif + static struct i2c_driver rt5677_i2c_driver = { .driver = { .name = "rt5677", .owner = THIS_MODULE, +#ifdef CONFIG_ACPI + .acpi_match_table = ACPI_PTR(rt5677_acpi_id), +#endif }, .probe = rt5677_i2c_probe, .remove = rt5677_i2c_remove,