diff options
author | Mike Isely <isely@pobox.com> | 2008-04-22 13:45:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:47 -0400 |
commit | dbc40a0e582a88d2561d13d1fea4f3496bff9650 (patch) | |
tree | c914495caa3cf85c6487188ecc05a1aa3acfc0ed /drivers/media/video/pvrusb2/pvrusb2-hdw.h | |
parent | fdf256f3374d5060e3714651b45b8450b7dc4349 (diff) |
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>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/drivers/media/video/pvrusb2/pvrusb2-hdw.h index 59f385878ef2..2919a1d9ed0f 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.h | |||
@@ -41,8 +41,8 @@ | |||
41 | /* Legal values for the INPUT state variable */ | 41 | /* Legal values for the INPUT state variable */ |
42 | #define PVR2_CVAL_INPUT_TV 0 | 42 | #define PVR2_CVAL_INPUT_TV 0 |
43 | #define PVR2_CVAL_INPUT_DTV 1 | 43 | #define PVR2_CVAL_INPUT_DTV 1 |
44 | #define PVR2_CVAL_INPUT_SVIDEO 2 | 44 | #define PVR2_CVAL_INPUT_COMPOSITE 2 |
45 | #define PVR2_CVAL_INPUT_COMPOSITE 3 | 45 | #define PVR2_CVAL_INPUT_SVIDEO 3 |
46 | #define PVR2_CVAL_INPUT_RADIO 4 | 46 | #define PVR2_CVAL_INPUT_RADIO 4 |
47 | 47 | ||
48 | enum pvr2_config { | 48 | enum pvr2_config { |