aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/af9015.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-06-16 15:25:22 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 06:56:34 -0400
commit1a590010a262b0797a4a42287959107d2c41c8ca (patch)
tree1916bb861e5f7055330b884cf18198d9aa6c5d34 /drivers/media/dvb/dvb-usb/af9015.c
parent6400a8c5afb54a1018c4d01b7f1ad28c4e0ef659 (diff)
[media] af9015: update USB streaming configuration logic
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/af9015.c')
-rw-r--r--drivers/media/dvb/dvb-usb/af9015.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index a9d9f9a23450..a429c24d8b30 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -602,22 +602,8 @@ error:
602static int af9015_get_usb_stream_config(struct dvb_frontend *fe, 602static int af9015_get_usb_stream_config(struct dvb_frontend *fe,
603 struct usb_data_stream_properties *stream) 603 struct usb_data_stream_properties *stream)
604{ 604{
605 struct dvb_usb_adapter *adap; 605 struct dvb_usb_adapter *adap = fe->dvb->priv;
606 606 deb_info("%s: adap=%d\n", __func__, adap->id);
607 deb_info("%s: fe=%p\n", __func__, fe);
608
609 stream->type = USB_BULK;
610 stream->count = 8;
611 stream->endpoint = 0x84;
612 stream->u.bulk.buffersize = TS_USB20_FRAME_SIZE;
613
614 if (fe == NULL)
615 return 0;
616
617 adap = fe->dvb->priv;
618
619 if (adap->id == 1)
620 stream->endpoint = 0x85;
621 607
622 if (adap->dev->udev->speed == USB_SPEED_FULL) 608 if (adap->dev->udev->speed == USB_SPEED_FULL)
623 stream->u.bulk.buffersize = TS_USB11_FRAME_SIZE; 609 stream->u.bulk.buffersize = TS_USB11_FRAME_SIZE;
@@ -1335,6 +1321,10 @@ static struct dvb_usb_device_properties af9015_props = {
1335 .pid_filter_count = 32, 1321 .pid_filter_count = 32,
1336 .pid_filter = af9015_pid_filter, 1322 .pid_filter = af9015_pid_filter,
1337 .pid_filter_ctrl = af9015_pid_filter_ctrl, 1323 .pid_filter_ctrl = af9015_pid_filter_ctrl,
1324
1325 .stream = DVB_USB_STREAM_BULK(0x84, 8, TS_USB20_FRAME_SIZE),
1326 }, {
1327 .stream = DVB_USB_STREAM_BULK(0x85, 8, TS_USB20_FRAME_SIZE),
1338 }, 1328 },
1339 }, 1329 },
1340}; 1330};