]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: cx88: fix setting input when using DVB
authorIstvan Varga <istvan_v@mailbox.hu>
Sat, 27 Mar 2010 12:47:45 +0000 (09:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:27 +0000 (12:58 -0300)
commit2a33cc366b7acf758e20c2225ed2384383306ece
treef919215f4ed586647798e945e19e4906cd9b4307
parent9dc26a1c60ccec6d07a6ae63c23c8d77e5ed2927
V4L/DVB: cx88: fix setting input when using DVB

In cx88-mpeg.c, there is code that sets core->input to CX88_VMUX_DVB.
However, this may be incorrect, since core->input is actually an
index to core->board.input[], which has not enough elements to be
indexed by the value of CX88_VMUX_DVB. So, the modified code searches
core->board.input[] for an input with a type of CX88_VMUX_DVB, and if
it does not find one, the index is simply set to zero.
The change may not have much effect, though, since it appears the only
case when core->input is actually used is when the current input is
being queried.

Signed-off-by: Istvan Varga <istvanv@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-mpeg.c