Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76463
b: refs/heads/master
c: c6e62a3
h: refs/heads/master
i:
  76461: 71a99d8
  76459: ac30c2e
  76455: 219d5e3
  76447: 2604eb5
v: v3
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent b3d8633 commit 14ba83f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ccaf905015c83a9b28e8496b4504b9b8dc25a80
refs/heads/master: c6e62a3a398d62e8ae366ac1465911db0ac7fc0b
8 changes: 7 additions & 1 deletion trunk/drivers/media/dvb/frontends/mt352.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ static void mt352_calc_input_freq(struct mt352_state* state,
if (state->config.if2)
if2 = state->config.if2;

ife = (2*adc_clock - if2);
if (adc_clock >= if2 * 2)
ife = if2;
else {
ife = adc_clock - (if2 % adc_clock);
if (ife > adc_clock / 2)
ife = adc_clock - ife;
}
value = -16374 * ife / adc_clock;
dprintk("%s: if2 %d, ife %d, adc_clock %d => %d / 0x%x\n",
__FUNCTION__, if2, ife, adc_clock, value, value & 0x3fff);
Expand Down

0 comments on commit 14ba83f

Please sign in to comment.