aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-09 15:21:54 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:29 -0500
commit864a6b813ab6cb69f3552553899ae443329ecfa9 (patch)
tree7d1c655d6e60f5a0fd50a3f5d733e9169fe3518e /drivers/media/video
parenta55db8cd7f8a107f3abcb4c803b1873b2be63663 (diff)
V4L/DVB (6787): tuner: bug-fix: default mode was set to bogus value
Fix type inconsistency in t->mode value, causing the following: tuner' 1-0043: freq set: unknown mode: 0x0004! (only visible with tuner debug enabled) Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/tuner-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 59e67c925758..355f9810facf 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1138,11 +1138,11 @@ register_client:
1138 1138
1139 /* Sets a default mode */ 1139 /* Sets a default mode */
1140 if (t->mode_mask & T_ANALOG_TV) { 1140 if (t->mode_mask & T_ANALOG_TV) {
1141 t->mode = T_ANALOG_TV; 1141 t->mode = V4L2_TUNER_ANALOG_TV;
1142 } else if (t->mode_mask & T_RADIO) { 1142 } else if (t->mode_mask & T_RADIO) {
1143 t->mode = T_RADIO; 1143 t->mode = V4L2_TUNER_RADIO;
1144 } else { 1144 } else {
1145 t->mode = T_DIGITAL_TV; 1145 t->mode = V4L2_TUNER_DIGITAL_TV;
1146 } 1146 }
1147 set_type(client, t->type, t->mode_mask, t->config, t->tuner_callback); 1147 set_type(client, t->type, t->mode_mask, t->config, t->tuner_callback);
1148 list_add_tail(&t->list, &tuner_list); 1148 list_add_tail(&t->list, &tuner_list);