]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7300): pvrusb2: v4l2 implementation fixes for input selection
authorMike Isely <isely@pobox.com>
Tue, 22 Apr 2008 17:45:38 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:47 +0000 (14:07 -0300)
commitc3fb9ce3b32be382ad67277ae46cd791b4f63747
tree1250df5e4104d21da6fa3a5e71442defea805e1b
parentc5a16ca6da0d21e7ea8433da5e1fc10434d73c3a
V4L/DVB (7300): pvrusb2: v4l2 implementation fixes for input selection

Now that the pvrusb2 driver can dynamically choose which inputs to
make available depending on the hardware, the enumeration of input
choices is no longer a contiguous range of integers.  Unfortunately
this causes a problem in the v4l2 implementation since the input
enumeration requires continuity in the API.  This change implements a
mapping in order to preserve the v4l2 interface requirement.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-v4l2.c