V4L/DVB (5816): Cx88-blackbird: fix vidioc_g_tuner never ending list of tuners
authorJelle Foks <jelle@foks.8m.com>
Mon, 21 May 2007 17:56:17 +0000 (14:56 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 3 Jul 2007 18:11:16 +0000 (15:11 -0300)
commitf057131fb6eb2c45f6023e3da41ccd6e4e71aee9
tree7b01a33943d42bebc1a4fed50fa90005fe65dd26
parent333408f21590d50397f3004e3f87070fa8f52c51
V4L/DVB (5816): Cx88-blackbird: fix vidioc_g_tuner never ending list of tuners

v4l-info and other programs would loop indefinitely while querying the
tuners for cx88-blackbird cards.

The cause was that vidioc_g_tuner didn't return an error value for
qctrl->id != 0, making the application think there is a never ending
list of tuners...

This patch adds the same index check as done in vidioc_g_tuner() in
cx88-video.

Signed-off-by: Jelle Foks <jelle@foks.8m.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-blackbird.c