From: Steven Toth Date: Fri, 6 Jan 2012 14:55:32 +0000 (-0300) Subject: [media] cx23885: Query the CX25840 during enum_input for status X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c147f61083e3e4a9c2aaecaaed976502defc3b7d;p=~shefty%2Frdma-dev.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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) if (INPUT(n)->type != CX23885_VMUX_TELEVISION) i->audioset = 0x3; + if (dev->input == n) { + /* enum'd input matches our configured input. + * Ask the video decoder to process the call + * and give it an oppertunity to update the + * status field. + */ + call_all(dev, video, g_input_status, &i->status); + } + return 0; }