From patchwork Fri Jun 20 08:03:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 4401321 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 270AF9F1D6 for ; Mon, 23 Jun 2014 10:49:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FD9420211 for ; Mon, 23 Jun 2014 10:49:50 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A927820225 for ; Mon, 23 Jun 2014 10:49:48 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F0BAB261A64; Mon, 23 Jun 2014 12:49:46 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 4C4172602F3; Mon, 23 Jun 2014 12:49:41 +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 1420B2619E6; Fri, 20 Jun 2014 10:06:46 +0200 (CEST) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by alsa0.perex.cz (Postfix) with ESMTP id 887AC2619D7 for ; Fri, 20 Jun 2014 10:06:39 +0200 (CEST) Received: by mail-pb0-f43.google.com with SMTP id um1so2599774pbc.2 for ; Fri, 20 Jun 2014 01:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=O5ukqXJ6Xn+k2cbF1Wv3dmePsljWKSqfG3AeGZPiUZY=; b=PUl2fkUUdsUyU3c55Ld0TBQJhV7BmDK0P0bJ//zE1a6FyVtxdPWxNqF+OxHPqaeKr9 vUTejd7MgM4OC/3IsIQVp2Qwr3ReGHM6gistJq/QmNo/g3SXvog6BTJDtFY21+bzBgX7 GmPe9NUzYrHCirKZOHk5Vv69AaeNZEeovfyUwPjN39iiknizdqvBCqn7Lr8dNLNqwNyn ii6apZnw/wVC8tA/8+gK68ax5eR31Qx6cJEicw7wA1obiSsvcmm0rjyNE885zFJgirWh dzBi2jTuTNvBSioV2wOP+lE6OoIzPLr1kmhTxpVRi8dU6qPD8d83yo5g9nMBjoYX8fOO MZdw== X-Received: by 10.68.166.36 with SMTP id zd4mr167423pbb.54.1403251595603; Fri, 20 Jun 2014 01:06:35 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id rc3sm12188937pbc.5.2014.06.20.01.06.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 01:06:35 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Date: Fri, 20 Jun 2014 13:33:15 +0530 Message-Id: <1403251396-17487-1-git-send-email-tushar.b@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Mailman-Approved-At: Mon, 23 Jun 2014 12:49:40 +0200 Cc: mark.rutland@arm.com, kgene.kim@samsung.com, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, tiwai@suse.de, dianders@chromium.org, robh+dt@kernel.org, lgirdwood@gmail.com, trblinux@gmail.com, broonie@kernel.org, galak@codeaurora.org, Wonjoon Lee Subject: [alsa-devel] [PATCH 1/2] ASoC: max98090: Add max98091 compatible string 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 From: Wonjoon Lee The MAX98091 CODEC is the same as MAX98090 CODEC, but with an extra microphone. Existing driver for MAX98090 CODEC already has support for MAX98091 CODEC. Adding proper compatible string so that MAX98091 CODEC can be specified from device tree. Signed-off-by: Wonjoon Lee Signed-off-by: Doug Anderson Signed-off-by: Tushar Behera --- Picked from https://chromium-review.googlesource.com/#/c/184091/ .../devicetree/bindings/sound/max98090.txt | 2 +- sound/soc/codecs/max98090.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/max98090.txt b/Documentation/devicetree/bindings/sound/max98090.txt index a5e63fa..c454e67 100644 --- a/Documentation/devicetree/bindings/sound/max98090.txt +++ b/Documentation/devicetree/bindings/sound/max98090.txt @@ -4,7 +4,7 @@ This device supports I2C only. Required properties: -- compatible : "maxim,max98090". +- compatible : "maxim,max98090" or "maxim,max98091". - reg : The I2C address of the device. diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index f5fccc7..4f5534d 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2460,12 +2460,14 @@ static const struct dev_pm_ops max98090_pm = { static const struct i2c_device_id max98090_i2c_id[] = { { "max98090", MAX98090 }, + { "max98091", MAX98091 }, { } }; MODULE_DEVICE_TABLE(i2c, max98090_i2c_id); static const struct of_device_id max98090_of_match[] = { { .compatible = "maxim,max98090", }, + { .compatible = "maxim,max98091", }, { } }; MODULE_DEVICE_TABLE(of, max98090_of_match);