Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330634
b: refs/heads/master
c: 1a59001
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent 02e54ee commit 530c921
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 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: 6400a8c5afb54a1018c4d01b7f1ad28c4e0ef659
refs/heads/master: 1a590010a262b0797a4a42287959107d2c41c8ca
22 changes: 6 additions & 16 deletions trunk/drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,22 +602,8 @@ static int af9015_read_config(struct dvb_usb_device *d)
static int af9015_get_usb_stream_config(struct dvb_frontend *fe,
struct usb_data_stream_properties *stream)
{
struct dvb_usb_adapter *adap;

deb_info("%s: fe=%p\n", __func__, fe);

stream->type = USB_BULK;
stream->count = 8;
stream->endpoint = 0x84;
stream->u.bulk.buffersize = TS_USB20_FRAME_SIZE;

if (fe == NULL)
return 0;

adap = fe->dvb->priv;

if (adap->id == 1)
stream->endpoint = 0x85;
struct dvb_usb_adapter *adap = fe->dvb->priv;
deb_info("%s: adap=%d\n", __func__, adap->id);

if (adap->dev->udev->speed == USB_SPEED_FULL)
stream->u.bulk.buffersize = TS_USB11_FRAME_SIZE;
Expand Down Expand Up @@ -1335,6 +1321,10 @@ static struct dvb_usb_device_properties af9015_props = {
.pid_filter_count = 32,
.pid_filter = af9015_pid_filter,
.pid_filter_ctrl = af9015_pid_filter_ctrl,

.stream = DVB_USB_STREAM_BULK(0x84, 8, TS_USB20_FRAME_SIZE),
}, {
.stream = DVB_USB_STREAM_BULK(0x85, 8, TS_USB20_FRAME_SIZE),
},
},
};
Expand Down

0 comments on commit 530c921

Please sign in to comment.