]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7303): pvrusb2: Ensure that default input selection is actually valid
authorMike Isely <isely@pobox.com>
Tue, 22 Apr 2008 17:45:39 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:47 +0000 (14:07 -0300)
commite65385840d9851c6f66afce31e42e629ce24703f
treec914495caa3cf85c6487188ecc05a1aa3acfc0ed
parent2f83cbff163c0650b59f7f661528e2c7846498e3
V4L/DVB (7303): pvrusb2: Ensure that default input selection is actually valid

Previously the pvrusb2 driver just started with the default input to
be "television".  But if the device doesn't support an analog tuner
then this default must be different.  New logic here selects a
reasonable default based on the actual valid set of available inputs.

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