All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: da7219: Use logical instead of bitwise OR for boolean expression
@ 2015-10-24  6:28 Axel Lin
  2015-10-28  0:22 ` Applied "ASoC: da7219: Use logical instead of bitwise OR for boolean expression" to the asoc tree Mark Brown
  2015-11-02 11:14 ` [PATCH] ASoC: da7219: Use logical instead of bitwise OR for boolean expression Opensource [Adam Thomson]
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2015-10-24  6:28 UTC (permalink / raw)
  To: Mark Brown; +Cc: Adam Thomson, Support Opensource, alsa-devel, Liam Girdwood

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 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);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-02 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-24  6:28 [PATCH] ASoC: da7219: Use logical instead of bitwise OR for boolean expression Axel Lin
2015-10-28  0:22 ` Applied "ASoC: da7219: Use logical instead of bitwise OR for boolean expression" to the asoc tree Mark Brown
2015-11-02 11:14 ` [PATCH] ASoC: da7219: Use logical instead of bitwise OR for boolean expression Opensource [Adam Thomson]

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.