diff options
author | Steven Toth <stoth@kernellabs.com> | 2012-01-06 09:55:32 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-10 20:38:21 -0500 |
commit | c147f61083e3e4a9c2aaecaaed976502defc3b7d (patch) | |
tree | 2be9bbc0bf84178b357a5124795a27f4335e2500 /drivers/media | |
parent | a21df45df0c41f3eb7d0ec6676c7d14b20842bc2 (diff) |
[media] cx23885: Query the CX25840 during enum_input for status
We can pass a NO_SIGNAL video decoder state back to applications
if it's available.
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index a01cd11da40..4bbf9bb97bd 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -1303,6 +1303,15 @@ int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i) | |||
1303 | if (INPUT(n)->type != CX23885_VMUX_TELEVISION) | 1303 | if (INPUT(n)->type != CX23885_VMUX_TELEVISION) |
1304 | i->audioset = 0x3; | 1304 | i->audioset = 0x3; |
1305 | 1305 | ||
1306 | if (dev->input == n) { | ||
1307 | /* enum'd input matches our configured input. | ||
1308 | * Ask the video decoder to process the call | ||
1309 | * and give it an oppertunity to update the | ||
1310 | * status field. | ||
1311 | */ | ||
1312 | call_all(dev, video, g_input_status, &i->status); | ||
1313 | } | ||
1314 | |||
1306 | return 0; | 1315 | return 0; |
1307 | } | 1316 | } |
1308 | 1317 | ||