Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367132
b: refs/heads/master
c: 84ddc33
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Apr 17, 2013
1 parent 50543ad commit 61f6697
Show file tree
Hide file tree
Showing 3 changed files with 14 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: 6b8c2308761029868f36d9037377806c63cf06e9
refs/heads/master: 84ddc33c20cd026871eb3585ed77badacb0fc113
12 changes: 12 additions & 0 deletions trunk/drivers/media/tuners/r820t.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ struct r820t_freq_range {
};

#define VCO_POWER_REF 0x02
#define DIP_FREQ 32000000

/*
* Static constants
Expand Down Expand Up @@ -751,6 +752,17 @@ static int r820t_sysfreq_sel(struct r820t_priv *priv, u32 freq,
break;
}

if (priv->cfg->use_diplexer &&
((priv->cfg->rafael_chip == CHIP_R820T) ||
(priv->cfg->rafael_chip == CHIP_R828S) ||
(priv->cfg->rafael_chip == CHIP_R820C))) {
if (freq > DIP_FREQ)
air_cable1_in = 0x00;
else
air_cable1_in = 0x60;
cable2_in = 0x00;
}

rc = r820t_write_reg_mask(priv, 0x1d, lna_top, 0xc7);
if (rc < 0)
return rc;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/tuners/r820t.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ enum r820t_chip {

struct r820t_config {
u8 i2c_addr; /* 0x34 */

u32 xtal;
enum r820t_chip rafael_chip;
unsigned max_i2c_msg_len;
bool use_diplexer;
};

#if IS_ENABLED(CONFIG_MEDIA_TUNER_R820T)
Expand Down

0 comments on commit 61f6697

Please sign in to comment.