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)
commitdbc40a0e582a88d2561d13d1fea4f3496bff9650
treec914495caa3cf85c6487188ecc05a1aa3acfc0ed
parentfdf256f3374d5060e3714651b45b8450b7dc4349
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