From patchwork Thu Jul 23 19:11:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harsha Priya X-Patchwork-Id: 6855811 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 18A45C05AC for ; Thu, 23 Jul 2015 19:13:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A6882060C for ; Thu, 23 Jul 2015 19:13:12 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 09D6520601 for ; Thu, 23 Jul 2015 19:13:11 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 175C926588A; Thu, 23 Jul 2015 21:13:09 +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, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id D6475261586; Thu, 23 Jul 2015 21:13:06 +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 D7181265798; Thu, 23 Jul 2015 21:13:05 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id 70F6A26128B for ; Thu, 23 Jul 2015 21:12:58 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 23 Jul 2015 12:12:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,532,1432623600"; d="scan'208";a="611696984" Received: from pharsha-ubuntu.sc.intel.com ([143.183.245.170]) by orsmga003.jf.intel.com with ESMTP; 23 Jul 2015 12:12:57 -0700 From: Harsha Priya To: broonie@kernel.org Date: Thu, 23 Jul 2015 19:11:54 +0000 Message-Id: <1437678714-5911-1-git-send-email-harshapriya.n@intel.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, lars@metafoo.de, Harsha Priya , benzh@chromium.org, anatol@google.com, M R Sathya Prakash , M Naveen Subject: [alsa-devel] [PATCH] ASoC: ssm4567: Added ACPI entry for SSM4567 codec 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 Added INT343B ACPI ID for the SSM4567 codec Signed-off-by: Harsha Priya Signed-off-by: M Naveen Signed-off-by: M R Sathya Prakash Acked-by: Anatol Pomozov Acked-by: Lars-Peter Clausen --- sound/soc/codecs/ssm4567.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/soc/codecs/ssm4567.c b/sound/soc/codecs/ssm4567.c index 938d2cb..af536ae 100644 --- a/sound/soc/codecs/ssm4567.c +++ b/sound/soc/codecs/ssm4567.c @@ -10,6 +10,7 @@ * Licensed under the GPL-2. */ +#include #include #include #include @@ -450,10 +451,21 @@ static const struct i2c_device_id ssm4567_i2c_ids[] = { }; MODULE_DEVICE_TABLE(i2c, ssm4567_i2c_ids); +#ifdef CONFIG_ACPI + +static const struct acpi_device_id ssm4567_acpi_match[] = { + { "INT343B", 0 }, + {}, +}; +MODULE_DEVICE_TABLE(acpi, ssm4567_acpi_match); + +#endif + static struct i2c_driver ssm4567_driver = { .driver = { .name = "ssm4567", .owner = THIS_MODULE, + .acpi_match_table = ACPI_PTR(ssm4567_acpi_match), }, .probe = ssm4567_i2c_probe, .remove = ssm4567_i2c_remove,