[media] cx231xx: Provide signal lock status in G_INPUT
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Sun, 24 Jul 2011 20:07:07 +0000 (17:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:56:04 +0000 (17:56 -0300)
commitde99d5328c6d54694471da28711a05adec708c3b
treed05ab3d5e7a77ea9fff901108eea1b1431446cd6
parent44ecf1df9493e6684cd1bb34abb107a0ffe1078a
[media] cx231xx: Provide signal lock status in G_INPUT

Make use of the signal state registers to properly populate the signal lock
registers in the cx231xx driver.

This allows applications to know whether there is a signal present even in
devices which lack a tuner (since such apps typically won't call G_TUNER if
no tuner is present).

[mchehab@redhat.com: Fix CodingStyle: don't use {} for one-line if's]
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-video.c