Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286430
b: refs/heads/master
c: 52fd5b2
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Mauro Carvalho Chehab committed Jan 18, 2012
1 parent 31ba31a commit 483f118
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 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: 9b6ba57bd45da30173f37d5099805d687440e5c0
refs/heads/master: 52fd5b2ea72863c53c8ab2e839983004ce33e559
22 changes: 14 additions & 8 deletions trunk/drivers/media/dvb/dvb-usb/dib0700_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -3066,19 +3066,25 @@ static struct dib7000p_config stk7070pd_dib7000p_config[2] = {
}
};

static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap)
static void stk7070pd_init(struct dvb_usb_device *dev)
{
dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 1);
dib0700_set_gpio(dev, GPIO6, GPIO_OUT, 1);
msleep(10);
dib0700_set_gpio(adap->dev, GPIO9, GPIO_OUT, 1);
dib0700_set_gpio(adap->dev, GPIO4, GPIO_OUT, 1);
dib0700_set_gpio(adap->dev, GPIO7, GPIO_OUT, 1);
dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0);
dib0700_set_gpio(dev, GPIO9, GPIO_OUT, 1);
dib0700_set_gpio(dev, GPIO4, GPIO_OUT, 1);
dib0700_set_gpio(dev, GPIO7, GPIO_OUT, 1);
dib0700_set_gpio(dev, GPIO10, GPIO_OUT, 0);

dib0700_ctrl_clock(adap->dev, 72, 1);
dib0700_ctrl_clock(dev, 72, 1);

msleep(10);
dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 1);
dib0700_set_gpio(dev, GPIO10, GPIO_OUT, 1);
}

static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap)
{
stk7070pd_init(adap->dev);

msleep(10);
dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1);

Expand Down

0 comments on commit 483f118

Please sign in to comment.