diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 15:21:54 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 15:21:54 -0500 |
commit | 84cad69d9ea1d0b5f0ea9d3983f8b7d0f068a0f0 (patch) | |
tree | a3c2d212c60cd7ad9e008f6dac9aac94d366107c | |
parent | 446475ffbe175d4c8c7cd071681b0c2ea1385650 (diff) | |
download | mediapointer-dvb-s2-84cad69d9ea1d0b5f0ea9d3983f8b7d0f068a0f0.tar.gz mediapointer-dvb-s2-84cad69d9ea1d0b5f0ea9d3983f8b7d0f068a0f0.tar.bz2 |
tuner: bug-fix: default mode was set to bogus value
From: Michael Krufky <mkrufky@linuxtv.org>
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>
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 3cbf47a7a..479afb1f6 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -1182,11 +1182,11 @@ register_client: /* Sets a default mode */ if (t->mode_mask & T_ANALOG_TV) { - t->mode = T_ANALOG_TV; + t->mode = V4L2_TUNER_ANALOG_TV; } else if (t->mode_mask & T_RADIO) { - t->mode = T_RADIO; + t->mode = V4L2_TUNER_RADIO; } else { - t->mode = T_DIGITAL_TV; + t->mode = V4L2_TUNER_DIGITAL_TV; } set_type(client, t->type, t->mode_mask, t->config, t->tuner_callback); list_add_tail(&t->list, &tuner_list); |