Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp469351ybj; Wed, 6 May 2020 23:35:37 -0700 (PDT) X-Google-Smtp-Source: APiQypK0nh8iDko0skRhbMpcljs4YnSRZ0PfHMvAIB94glzZtpI7Gmd0Cn4qA9WXOsdnsnqHCWfY X-Received: by 2002:aa7:cd01:: with SMTP id b1mr10607933edw.163.1588833337404; Wed, 06 May 2020 23:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588833337; cv=none; d=google.com; s=arc-20160816; b=jiIB2Xah3QPghnUNElEjXfI0WnR73ke/PSg7+192YP/rOc4DWxqPqQT4InF2bBcGJc FY9beYuswndloVLhigSZDc00oqj9mC/B7ujGj6LwPqSGqDwcyu48+rNYNsFA2zE8qAx+ 1NBRGj4SpL2teOxvliuEaUGIZ90/9WD91lI8rhAWINQzUFpI2ZshfFwwNOHgcBix0bMl JpiVOIc/PBwUvociWuHmBn7BtfoGBKHniD2qXNaXxoKdt/iB8sTTcW9Iyt9cCPMCL2Y7 qB/8g5iEwLPuspaaMRUj6a9NRS/keE5wd4TpDR/uj+eRHh66bfhMewI4yRVTuOlmfEPz hTNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=JZOA5+GvMgxMSRG0QcouYBsw5g+WmCNoubFu/fl9jIs=; b=Pn9gF1Zo8dnj4Js7l3xWJOSY45oQs0fqFYmiFsmGRvXMx9h0LqjQUZhDH9Eo1wlKpg dFL5KagnV3a28aRv7/c5igP0nafThvS9CVrdmp5scIbIvdH3PEidYtrrjN2aUYKaQGyH HHwR/sRlObg0dt0s6AYW7e3jvvBXJ5opRBHCH9TjnqbmB1Z9p6kQ3+1xtkNyyjshD8Ro I99llkbDTSYk7GIs51yNL0kHtw1DTnhT03Icv3W9Jug21XpeLQjdX8itj+gLPQ+OBuAp wh64lyor6v+3PEZlGYojNCx3jXeUBUqiFDSd3nIGtkdZphT9yhP2g3w2q9SlycOSReQV xjcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si2598817edy.479.2020.05.06.23.35.13; Wed, 06 May 2020 23:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725858AbgEGGdX (ORCPT + 99 others); Thu, 7 May 2020 02:33:23 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3832 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725783AbgEGGdW (ORCPT ); Thu, 7 May 2020 02:33:22 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 4C5D4A87EB3CBC1BFCE0; Thu, 7 May 2020 14:33:21 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 7 May 2020 14:33:14 +0800 From: Samuel Zou To: , , , CC: , , Samuel Zou Subject: [PATCH -next] ASoC: amd: acp3x-pcm-dma: Use bitwise instead of arithmetic operator for flags Date: Thu, 7 May 2020 14:39:22 +0800 Message-ID: <1588833562-14417-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccinelle warnings: sound/soc/amd/raven/acp3x-pcm-dma.c:161:39-40: WARNING: sum of probable bitmasks, consider | sound/soc/amd/raven/acp3x-pcm-dma.c:172:39-40: WARNING: sum of probable bitmasks, consider | sound/soc/amd/raven/acp3x-pcm-dma.c:183:39-40: WARNING: sum of probable bitmasks, consider | sound/soc/amd/raven/acp3x-pcm-dma.c:194:39-40: WARNING: sum of probable bitmasks, consider | Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- sound/soc/amd/raven/acp3x-pcm-dma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index e362f0b..b0cc0fe 100644 --- a/sound/soc/amd/raven/acp3x-pcm-dma.c +++ b/sound/soc/amd/raven/acp3x-pcm-dma.c @@ -158,7 +158,7 @@ static void config_acp3x_dma(struct i2s_stream_instance *rtd, int direction) switch (rtd->i2s_instance) { case I2S_BT_INSTANCE: reg_dma_size = mmACP_BT_TX_DMA_SIZE; - acp_fifo_addr = ACP_SRAM_PTE_OFFSET + + acp_fifo_addr = ACP_SRAM_PTE_OFFSET | BT_PB_FIFO_ADDR_OFFSET; reg_fifo_addr = mmACP_BT_TX_FIFOADDR; reg_fifo_size = mmACP_BT_TX_FIFOSIZE; @@ -169,7 +169,7 @@ static void config_acp3x_dma(struct i2s_stream_instance *rtd, int direction) case I2S_SP_INSTANCE: default: reg_dma_size = mmACP_I2S_TX_DMA_SIZE; - acp_fifo_addr = ACP_SRAM_PTE_OFFSET + + acp_fifo_addr = ACP_SRAM_PTE_OFFSET | SP_PB_FIFO_ADDR_OFFSET; reg_fifo_addr = mmACP_I2S_TX_FIFOADDR; reg_fifo_size = mmACP_I2S_TX_FIFOSIZE; @@ -180,7 +180,7 @@ static void config_acp3x_dma(struct i2s_stream_instance *rtd, int direction) switch (rtd->i2s_instance) { case I2S_BT_INSTANCE: reg_dma_size = mmACP_BT_RX_DMA_SIZE; - acp_fifo_addr = ACP_SRAM_PTE_OFFSET + + acp_fifo_addr = ACP_SRAM_PTE_OFFSET | BT_CAPT_FIFO_ADDR_OFFSET; reg_fifo_addr = mmACP_BT_RX_FIFOADDR; reg_fifo_size = mmACP_BT_RX_FIFOSIZE; @@ -191,7 +191,7 @@ static void config_acp3x_dma(struct i2s_stream_instance *rtd, int direction) case I2S_SP_INSTANCE: default: reg_dma_size = mmACP_I2S_RX_DMA_SIZE; - acp_fifo_addr = ACP_SRAM_PTE_OFFSET + + acp_fifo_addr = ACP_SRAM_PTE_OFFSET | SP_CAPT_FIFO_ADDR_OFFSET; reg_fifo_addr = mmACP_I2S_RX_FIFOADDR; reg_fifo_size = mmACP_I2S_RX_FIFOSIZE; -- 2.6.2