V4L/DVB (5029): Ks0127 status flags
Or status flags together in DECODER_GET_STATUS instead of and-zapping them. Signed-off-by: Martin Samuelsson <sam@home.se> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
c6d704c8c4
commit
55d5440d45
1 changed files with 4 additions and 4 deletions
|
@ -712,13 +712,13 @@ static int ks0127_command(struct i2c_client *client,
|
||||||
*iarg = 0;
|
*iarg = 0;
|
||||||
status = ks0127_read(ks, KS_STAT);
|
status = ks0127_read(ks, KS_STAT);
|
||||||
if (!(status & 0x20)) /* NOVID not set */
|
if (!(status & 0x20)) /* NOVID not set */
|
||||||
*iarg = (*iarg & DECODER_STATUS_GOOD);
|
*iarg = (*iarg | DECODER_STATUS_GOOD);
|
||||||
if ((status & 0x01)) /* CLOCK set */
|
if ((status & 0x01)) /* CLOCK set */
|
||||||
*iarg = (*iarg & DECODER_STATUS_COLOR);
|
*iarg = (*iarg | DECODER_STATUS_COLOR);
|
||||||
if ((status & 0x08)) /* PALDET set */
|
if ((status & 0x08)) /* PALDET set */
|
||||||
*iarg = (*iarg & DECODER_STATUS_PAL);
|
*iarg = (*iarg | DECODER_STATUS_PAL);
|
||||||
else
|
else
|
||||||
*iarg = (*iarg & DECODER_STATUS_NTSC);
|
*iarg = (*iarg | DECODER_STATUS_NTSC);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//Catch any unknown command
|
//Catch any unknown command
|
||||||
|
|
Loading…
Add table
Reference in a new issue