diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-08-31 14:12:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-08-31 14:16:00 -0400 |
commit | fd34cb08babcd898c6b0e30cd7d507ffa62685a1 (patch) | |
tree | d4156da1751207bc73cf14e6b5b144b79545af11 /drivers/media/common | |
parent | 4d37ece757a83c2858de9e40b9fa3da511f9ce38 (diff) |
[media] tuner/xc2028: Fix frequency offset for radio mode
In radio mode, no frequency offset should be used.
Instead of taking Thierry's patch that creates a separate function
to calculate the digital offset, it seemed better to just keep
everything at the same place.
Reported-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/tuner-xc2028.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c index b6b2868cb3f0..3acbaa04e1b3 100644 --- a/drivers/media/common/tuners/tuner-xc2028.c +++ b/drivers/media/common/tuners/tuner-xc2028.c | |||
@@ -940,11 +940,16 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */, | |||
940 | * that xc2028 will be in a safe state. | 940 | * that xc2028 will be in a safe state. |
941 | * Maybe this might also be needed for DTV. | 941 | * Maybe this might also be needed for DTV. |
942 | */ | 942 | */ |
943 | if (new_type == V4L2_TUNER_ANALOG_TV) { | 943 | switch (new_type) { |
944 | case V4L2_TUNER_ANALOG_TV: | ||
944 | rc = send_seq(priv, {0x00, 0x00}); | 945 | rc = send_seq(priv, {0x00, 0x00}); |
945 | 946 | ||
946 | /* Analog modes require offset = 0 */ | 947 | /* Analog mode requires offset = 0 */ |
947 | } else { | 948 | break; |
949 | case V4L2_TUNER_RADIO: | ||
950 | /* Radio mode requires offset = 0 */ | ||
951 | break; | ||
952 | case V4L2_TUNER_DIGITAL_TV: | ||
948 | /* | 953 | /* |
949 | * Digital modes require an offset to adjust to the | 954 | * Digital modes require an offset to adjust to the |
950 | * proper frequency. The offset depends on what | 955 | * proper frequency. The offset depends on what |