Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285353
b: refs/heads/master
c: 5081570
h: refs/heads/master
i:
  285351: eaea0a6
v: v3
  • Loading branch information
Malcolm Priestley authored and Mauro Carvalho Chehab committed Dec 11, 2011
1 parent 5c16341 commit 5cba28b
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: c6401af6692bac94b7ae1ff04f1d32c5dd1a38e3
refs/heads/master: 50815707eebc7ce12bfd97933a6e68a482c4d7ab
8 changes: 7 additions & 1 deletion trunk/drivers/media/dvb/dvb-usb/it913x.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);

struct it913x_state {
u8 id;
struct ite_config it913x_config;
};

struct ite_config it913x_config;
Expand Down Expand Up @@ -624,6 +625,7 @@ static int it913x_name(struct dvb_usb_adapter *adap)
static int it913x_frontend_attach(struct dvb_usb_adapter *adap)
{
struct usb_device *udev = adap->dev->udev;
struct it913x_state *st = adap->dev->priv;
int ret = 0;
u8 adap_addr = I2C_BASE_ADDR + (adap->id << 5);
u16 ep_size = adap->props.fe[0].stream.u.bulk.buffersize / 4;
Expand All @@ -634,8 +636,12 @@ static int it913x_frontend_attach(struct dvb_usb_adapter *adap)

it913x_config.adf = it913x_read_reg(udev, IO_MUX_POWER_CLK);

if (adap->id == 0)
memcpy(&st->it913x_config, &it913x_config,
sizeof(struct ite_config));

adap->fe_adap[0].fe = dvb_attach(it913x_fe_attach,
&adap->dev->i2c_adap, adap_addr, &it913x_config);
&adap->dev->i2c_adap, adap_addr, &st->it913x_config);

if (adap->id == 0 && adap->fe_adap[0].fe) {
ret = it913x_wr_reg(udev, DEV_0_DMOD, MP2_SW_RST, 0x1);
Expand Down

0 comments on commit 5cba28b

Please sign in to comment.