[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20070104165315.7899e82a.sam@home.se>
Date: Thu, 4 Jan 2007 16:53:15 +0100
From: Martin Samuelsson <sam@...e.se>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@...radead.org>
Subject: [PATCH] ks0127 status flags
Or status flags together in DECODER_GET_STATUS instead of and-zapping them.
Signed-off-by: Martin Samuelsson <sam@...e.se>
---
ks0127.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff -ruN linux-2.6.20-rc3/drivers/media/video/ks0127.c linux-2.6.20-rc3-sam/drivers/media/video/ks0127.c
--- linux-2.6.20-rc3/drivers/media/video/ks0127.c 2006-11-29 22:57:37.000000000 +0100
+++ linux-2.6.20-rc3-sam/drivers/media/video/ks0127.c 2006-12-31 17:01:35.000000000 +0100
@@ -712,13 +712,13 @@
*iarg = 0;
status = ks0127_read(ks, KS_STAT);
if (!(status & 0x20)) /* NOVID not set */
- *iarg = (*iarg & DECODER_STATUS_GOOD);
+ *iarg = (*iarg | DECODER_STATUS_GOOD);
if ((status & 0x01)) /* CLOCK set */
- *iarg = (*iarg & DECODER_STATUS_COLOR);
+ *iarg = (*iarg | DECODER_STATUS_COLOR);
if ((status & 0x08)) /* PALDET set */
- *iarg = (*iarg & DECODER_STATUS_PAL);
+ *iarg = (*iarg | DECODER_STATUS_PAL);
else
- *iarg = (*iarg & DECODER_STATUS_NTSC);
+ *iarg = (*iarg | DECODER_STATUS_NTSC);
break;
//Catch any unknown command
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists