From patchwork Thu Nov 16 19:55:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10062071 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6EED66023A for ; Thu, 16 Nov 2017 19:55:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F2CA2ABE0 for ; Thu, 16 Nov 2017 19:55:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52CAE2ABE4; Thu, 16 Nov 2017 19:55:18 +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=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84BE12ABE0 for ; Thu, 16 Nov 2017 19:55:17 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 32B372671C3; Thu, 16 Nov 2017 20:55:13 +0100 (CET) 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 860C22671C5; Thu, 16 Nov 2017 20:55:12 +0100 (CET) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by alsa0.perex.cz (Postfix) with ESMTP id 5AD78266EE4 for ; Thu, 16 Nov 2017 20:55:10 +0100 (CET) Received: by mail-pf0-f193.google.com with SMTP id 17so114153pfn.12 for ; Thu, 16 Nov 2017 11:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=zrZAOX43xkTzpGp1o/QvpcXV+x82mfz5uErxOR8nkU4=; b=mXgZyrkwhW7Lrb20w9BXNM3JIiGBpO2256AS9gIYdSQnnLFZlAC1rON8o5QRakLFX1 u6yHw9qC1Eyq95YsWqBke5i3cuKKHVHXj28qf3WEXreK/y5MVg2xfP4wn/0ipw8/0qDN jrSVAwQKY5coq4M/1C+zlGbxNydr9NxHfh7d4Q4VkFAXblDyzZMJ8/XNf4vg8hMeviTX zwiWmLYx9nyqmtwrBehc7W4RG9jYD/FnRiBMP+mtmRJJi8OhnGWe4Rw0xUkh+tKoZ1AT S2PVTQFNBBQQrAVU4H+HahoZp53j5yKobwjsnB2YcpOcnD8z5LMbMx+15HrXA7dMZznj RJRQ== 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; bh=zrZAOX43xkTzpGp1o/QvpcXV+x82mfz5uErxOR8nkU4=; b=fmmKcKat/B65h4Q7R2F+5UsoX5UNdSnexzYPjZqFcNLYWZykgiyPbbEJgZ+0dgzZfj vjyjLDLcbyfWNvDGzhcFQmtwFsLSrdQa97sLPItIhY5zck7Zx8ACUinL9Az+kUVZQnH/ IJxB1vdisOcbyR/ogesg/X+0THEC7tU1PhovBCbR9vu2q0HMiJG5yAFUG5fwE06Sk1Od 4QqkgQa7nbW+bPDrb6oADTInK58TJN9UInMk9sIPhOPZjkN0BKqaEZuX/A6G10qBKgFq XR1FnrEikHBXR+SVw8xRRWyZAaL+bOrrponcLRTPUS5fbsDfu2NWjIwsshGFWmxwTPyN JUuQ== X-Gm-Message-State: AJaThX6db0vgEhvKyTrcTqz+31v+U5iS8y0J0ZiG8rGeafRHB4wUZxco 1SyCaUZKsF58fdUs+Puqe9o= X-Google-Smtp-Source: AGs4zMZGEkikJbN8mBu/VjXdsRuNbj+GHLjmkv7ElJu/0fPZ/tialkfAxflixtliXDT1xYAsYQrBmQ== X-Received: by 10.99.172.25 with SMTP id v25mr2675349pge.182.1510862108794; Thu, 16 Nov 2017 11:55:08 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id h185sm4452459pfe.171.2017.11.16.11.55.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Nov 2017 11:55:08 -0800 (PST) From: Nicolin Chen To: broonie@kernel.org Date: Thu, 16 Nov 2017 11:55:18 -0800 Message-Id: <1510862118-16104-1-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.1.4 Cc: fabio.estevam@nxp.com, alsa-devel@alsa-project.org, laurent.charpentier@nxp.com, linux-kernel@vger.kernel.org, lgirdwood@gmail.com Subject: [alsa-devel] [PATCH] ASoC: fsl_asrc: Fix typo in a field define 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 ASRFSTi_IAEi has an 11-bit offset as its _SHIFT macro defines. So this patch just fixes that. Reported-by: Laurent Charpentier Signed-off-by: Nicolin Chen Reviewed-by: Fabio Estevam --- sound/soc/fsl/fsl_asrc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h index 0f163ab..52c27a35 100644 --- a/sound/soc/fsl/fsl_asrc.h +++ b/sound/soc/fsl/fsl_asrc.h @@ -260,8 +260,8 @@ #define ASRFSTi_OUTPUT_FIFO_SHIFT 12 #define ASRFSTi_OUTPUT_FIFO_MASK (((1 << ASRFSTi_OUTPUT_FIFO_WIDTH) - 1) << ASRFSTi_OUTPUT_FIFO_SHIFT) #define ASRFSTi_IAEi_SHIFT 11 -#define ASRFSTi_IAEi_MASK (1 << ASRFSTi_OAFi_SHIFT) -#define ASRFSTi_IAEi (1 << ASRFSTi_OAFi_SHIFT) +#define ASRFSTi_IAEi_MASK (1 << ASRFSTi_IAEi_SHIFT) +#define ASRFSTi_IAEi (1 << ASRFSTi_IAEi_SHIFT) #define ASRFSTi_INPUT_FIFO_WIDTH 7 #define ASRFSTi_INPUT_FIFO_SHIFT 0 #define ASRFSTi_INPUT_FIFO_MASK ((1 << ASRFSTi_INPUT_FIFO_WIDTH) - 1)