Skip to content

Commit

Permalink
Fix TBS6922 support - I2C-bus num, LNB pwr ctl.
Browse files Browse the repository at this point in the history
Technotrend budget S2-4100 is ODM TBS 6922.
  • Loading branch information
crazycat69 committed Feb 25, 2014
1 parent c6d9865 commit 99cfa63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/media/pci/saa716x/saa716x_budget.c
Expand Up @@ -919,12 +919,12 @@ static void tbs6922_lnb_power(struct dvb_frontend *fe, int onoff)
struct saa716x_dev *dev = i2c->saa716x;
int enpwr_pin = 17;

/* lnb power, active low */
/* lnb power, active high */
saa716x_gpio_set_output(dev, enpwr_pin);
if (onoff)
saa716x_gpio_write(dev, enpwr_pin, 0);
else
saa716x_gpio_write(dev, enpwr_pin, 1);
else
saa716x_gpio_write(dev, enpwr_pin, 0);
}


Expand Down Expand Up @@ -958,7 +958,7 @@ static int saa716x_tbs6922_frontend_attach(
msleep(120);

adapter->fe = dvb_attach(tas2101_attach, &tbs6922_cfg,
&dev->i2c[0].i2c_adapter);
&dev->i2c[SAA716x_I2C_BUS_A].i2c_adapter);
if (adapter->fe == NULL)
goto err;

Expand Down Expand Up @@ -1766,6 +1766,7 @@ static struct pci_device_id saa716x_budget_pci_table[] = {
MAKE_ENTRY(TURBOSIGHT_TBS6984, TBS6984, SAA7160, &saa716x_tbs6984_config),
MAKE_ENTRY(TURBOSIGHT_TBS6985, TBS6985, SAA7160, &saa716x_tbs6985_config),
MAKE_ENTRY(TURBOSIGHT_TBS6985, TBS6985+1, SAA7160, &saa716x_tbs6985_config),
MAKE_ENTRY(TECHNOTREND, TT4100, SAA7160, &saa716x_tbs6922_config),
{ }
};
MODULE_DEVICE_TABLE(pci, saa716x_budget_pci_table);
Expand Down
3 changes: 3 additions & 0 deletions drivers/media/pci/saa716x/saa716x_budget.h
Expand Up @@ -37,4 +37,7 @@
#define TURBOSIGHT_TBS6985 0x6985
#define TBS6985 0x0001

#define TECHNOTREND 0x13c2
#define TT4100 0x3010

#endif /* __SAA716x_BUDGET_H */

0 comments on commit 99cfa63

Please sign in to comment.