From patchwork Sat Oct 24 06:28:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 7479891 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 4DEDABEEA4 for ; Sat, 24 Oct 2015 06:28:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 804F0208EF for ; Sat, 24 Oct 2015 06:28:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5375A208C1 for ; Sat, 24 Oct 2015 06:28:57 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9EC4C2657D8; Sat, 24 Oct 2015 08:28:55 +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=-2.6 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9C656265713; Sat, 24 Oct 2015 08:28:47 +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 9FC56265715; Sat, 24 Oct 2015 08:28:46 +0200 (CEST) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by alsa0.perex.cz (Postfix) with ESMTP id 6D12D2656FB for ; Sat, 24 Oct 2015 08:28:39 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so143120156pac.3 for ; Fri, 23 Oct 2015 23:28: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=AxpTLfrzmz4UK2ru6GZLsE5P5t5+R9Lb6to067NZGhc=; b=inH+B0e8GIUxMmBLTSNe2TaqBI8+O8hWIaLdwUHQL+yaKisYcqjw3ZQ2Ajg/iVKD8s GGlG3rU0X8N1xZnd39R22GDnRIE5Ydri66lbIVDA2b780yUbAgsFWvB7AtiB3mVK55F0 rN+012n4nEVSGUKXaE/U137ioFCvF748sHSWOdDVb6fax8f0wGeq3r79VdAyQdrb+scr PRyhR2Nd782Kua3bGHFtdFu9CEBtxvrinRcmQ8eHvLZSOL6V6BqbqZtMI4yC/Gwh1U3w Ly4mMSXuQ6ajHbAlygMUQQUYjorlfp77MMXd9pfahfbW8yAxQei9yCCFwy1c3abSSjy7 bfTQ== X-Gm-Message-State: ALoCoQkoJpNGZXZT6SGxCZ8zn/Ff11fQamonRN7l7HW/KKweflF/qPYL9BfzOe43ldg4ypuzg2d1 X-Received: by 10.66.236.37 with SMTP id ur5mr9495865pac.66.1445668117697; Fri, 23 Oct 2015 23:28:37 -0700 (PDT) Received: from phoenix (218-164-26-132.dynamic.hinet.net. [218.164.26.132]) by smtp.gmail.com with ESMTPSA id ch3sm22280655pbb.18.2015.10.23.23.28.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 23:28:36 -0700 (PDT) Message-ID: <1445668113.26836.0.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Sat, 24 Oct 2015 14:28:33 +0800 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Cc: Adam Thomson , Support Opensource , alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: da7219: Use logical instead of bitwise OR for boolean expression 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 Signed-off-by: Axel Lin Acked-by: Adam Thomson --- sound/soc/codecs/da7219.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index abba4b3..86c528a 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -1306,7 +1306,7 @@ static int da7219_hw_params(struct snd_pcm_substream *substream, } channels = params_channels(params); - if ((channels < 1) | (channels > DA7219_DAI_CH_NUM_MAX)) { + if ((channels < 1) || (channels > DA7219_DAI_CH_NUM_MAX)) { dev_err(codec->dev, "Invalid number of channels, only 1 to %d supported\n", DA7219_DAI_CH_NUM_MAX);