Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366968
b: refs/heads/master
c: 5b0e535
h: refs/heads/master
v: v3
  • Loading branch information
Ondrej Zary authored and Mauro Carvalho Chehab committed Apr 8, 2013
1 parent 1349fb4 commit 1893bc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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: 2f719f7a9aa599bc9e1516190336a4ac5c59b18a
refs/heads/master: 5b0e5350cecb5a370ecdaa71ac113728e36e1d55
8 changes: 6 additions & 2 deletions trunk/drivers/media/tuners/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct tda8290_priv {
#define TDA18271 16

struct tda827x_config cfg;
struct tda18271_std_map *tda18271_std_map;
};

/*---------------------------------------------------------------------*/
Expand Down Expand Up @@ -635,6 +636,7 @@ static int tda829x_find_tuner(struct dvb_frontend *fe)
if ((data == 0x83) || (data == 0x84)) {
priv->ver |= TDA18271;
tda829x_tda18271_config.config = priv->cfg.config;
tda829x_tda18271_config.std_map = priv->tda18271_std_map;
dvb_attach(tda18271_attach, fe, priv->tda827x_addr,
priv->i2c_props.adap, &tda829x_tda18271_config);
} else {
Expand Down Expand Up @@ -746,8 +748,10 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
priv->i2c_props.addr = i2c_addr;
priv->i2c_props.adap = i2c_adap;
priv->i2c_props.name = "tda829x";
if (cfg)
priv->cfg.config = cfg->lna_cfg;
if (cfg) {
priv->cfg.config = cfg->lna_cfg;
priv->tda18271_std_map = cfg->tda18271_std_map;
}

if (tda8290_probe(&priv->i2c_props) == 0) {
priv->ver = TDA8290;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/tuners/tda8290.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <linux/i2c.h>
#include "dvb_frontend.h"
#include "tda18271.h"

struct tda829x_config {
unsigned int lna_cfg;
Expand All @@ -27,6 +28,7 @@ struct tda829x_config {
#define TDA829X_PROBE_TUNER 0
#define TDA829X_DONT_PROBE 1
unsigned int no_i2c_gate:1;
struct tda18271_std_map *tda18271_std_map;
};

#if IS_ENABLED(CONFIG_MEDIA_TUNER_TDA8290)
Expand Down

0 comments on commit 1893bc7

Please sign in to comment.