From patchwork Thu Apr 3 11:56:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3932501 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 2DD1ABF540 for ; Thu, 3 Apr 2014 11:57:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61BB7202EA for ; Thu, 3 Apr 2014 11:57:04 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3B114202E5 for ; Thu, 3 Apr 2014 11:57:03 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5017F2655F5; Thu, 3 Apr 2014 13:57:01 +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,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id CF61C26556F; Thu, 3 Apr 2014 13:56:52 +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 C498826556F; Thu, 3 Apr 2014 13:56:48 +0200 (CEST) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by alsa0.perex.cz (Postfix) with ESMTP id DB5F2265593 for ; Thu, 3 Apr 2014 13:56:38 +0200 (CEST) Received: by mail-pb0-f49.google.com with SMTP id jt11so1731223pbb.22 for ; Thu, 03 Apr 2014 04:56:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=D3Bn7qxXfB4Joau2hNBsoxn7MHX4UHzjxAW864SF5Io=; b=j1DZgZ6Lk2XJ7r+rT0JhodN/W727donNnNedVzd8yLYTc/o9jQltX47sTLfxMnz/5E YFDbd2n+WgikpsuGrQVyEFYU2w94P78ESA/aR6VO47Z9X6jxnJuPA/s3j7nyj6nEkyWp /XqB9T2vW74/oArC9Fxx08NswbB1Uylx22p8Qbgny2UFUqqTwRACXFYTcvdxMR6m1jeg eqYVBkKfp4uES8ZEbWyNfCESaQbhfFZybEUChe61ecfHwAVXVWcm2iWdYgUUav2hFfeh mTnCaiHR96G8ojQei6OiYVY6iaiAWbZu3MN+LJAuu1c2YwKrgDZWhDZ4Em25yQm8rrSo wpPQ== X-Gm-Message-State: ALoCoQk6XSnU4YA8Vn/OuOnTi8eBqnLE0fj3k+NM5VzNfuEAQOf377Jkb8byB/xPE3bmet8N+F9/ X-Received: by 10.66.150.169 with SMTP id uj9mr6887271pab.148.1396526197312; Thu, 03 Apr 2014 04:56:37 -0700 (PDT) Received: from [192.168.0.102] (36-237-254-66.dynamic-ip.hinet.net. [36.237.254.66]) by mx.google.com with ESMTPSA id gj9sm10789139pbc.7.2014.04.03.04.56.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 04:56:36 -0700 (PDT) Message-ID: <1396526192.12814.1.camel@phoenix> From: Axel Lin To: Mark Brown Date: Thu, 03 Apr 2014 19:56:32 +0800 X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Cc: Liam Girdwood , alsa-devel@alsa-project.org, Michal Hajduk , Support Opensource Subject: [alsa-devel] [PATCH] ASoC: da732x: Print correct major id 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP DA732X_ID_MAJOR_MASK is 0xF0, so the major id is (reg & DA732X_ID_MAJOR_MASK) >> 4. Signed-off-by: Axel Lin Acked-by: Adam Thomson --- sound/soc/codecs/da732x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c index 7d168ec..48f3fef 100644 --- a/sound/soc/codecs/da732x.c +++ b/sound/soc/codecs/da732x.c @@ -1571,7 +1571,8 @@ static int da732x_i2c_probe(struct i2c_client *i2c, } dev_info(&i2c->dev, "Revision: %d.%d\n", - (reg & DA732X_ID_MAJOR_MASK), (reg & DA732X_ID_MINOR_MASK)); + (reg & DA732X_ID_MAJOR_MASK) >> 4, + (reg & DA732X_ID_MINOR_MASK)); ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_da732x, da732x_dai, ARRAY_SIZE(da732x_dai));