diff options
author | Antti Palosaari <crope@iki.fi> | 2009-01-13 18:08:29 +0200 |
---|---|---|
committer | Antti Palosaari <crope@iki.fi> | 2009-01-13 18:08:29 +0200 |
commit | 35aac7250adaa130140a59e5681f0ee72bb706c2 (patch) | |
tree | 91311f5b3edb923a9075948e2ed291ea6b9101b2 /linux/drivers/media/dvb/dvb-usb | |
parent | 9b44f8cd38f922cc8ca126138dcdf4b9f9f187c4 (diff) | |
download | mediapointer-dvb-s2-35aac7250adaa130140a59e5681f0ee72bb706c2.tar.gz mediapointer-dvb-s2-35aac7250adaa130140a59e5681f0ee72bb706c2.tar.bz2 |
af9015: fix second FE
From: Antti Palosaari <crope@iki.fi>
Bug causes 2nd FE MPEG TS buffer size to be zero and therefore no picture
when 2nd FE was enabled. Configure correct buffer size also for 2nd FE.
Priority: high
Signed-off-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/af9015.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/af9015.c b/linux/drivers/media/dvb/dvb-usb/af9015.c index 00d0b7583..af3e66a60 100644 --- a/linux/drivers/media/dvb/dvb-usb/af9015.c +++ b/linux/drivers/media/dvb/dvb-usb/af9015.c @@ -838,18 +838,19 @@ static int af9015_read_config(struct usb_device *udev) if (!dvb_usb_af9015_dual_mode) af9015_config.dual_mode = 0; - /* set buffer size according to USB port speed */ + /* Set adapter0 buffer size according to USB port speed, adapter1 buffer + size can be static because it is enabled only USB2.0 */ for (i = 0; i < af9015_properties_count; i++) { /* USB1.1 set smaller buffersize and disable 2nd adapter */ if (udev->speed == USB_SPEED_FULL) { - af9015_properties[i].adapter->stream.u.bulk.buffersize = - TS_USB11_MAX_PACKET_SIZE; + af9015_properties[i].adapter[0].stream.u.bulk.buffersize + = TS_USB11_MAX_PACKET_SIZE; /* disable 2nd adapter because we don't have PID-filters */ af9015_config.dual_mode = 0; } else { - af9015_properties[i].adapter->stream.u.bulk.buffersize = - TS_USB20_MAX_PACKET_SIZE; + af9015_properties[i].adapter[0].stream.u.bulk.buffersize + = TS_USB20_MAX_PACKET_SIZE; } } @@ -1258,6 +1259,12 @@ static struct dvb_usb_device_properties af9015_properties[] = { .type = USB_BULK, .count = 6, .endpoint = 0x85, + .u = { + .bulk = { + .buffersize = + TS_USB20_MAX_PACKET_SIZE, + } + } }, } }, @@ -1357,6 +1364,12 @@ static struct dvb_usb_device_properties af9015_properties[] = { .type = USB_BULK, .count = 6, .endpoint = 0x85, + .u = { + .bulk = { + .buffersize = + TS_USB20_MAX_PACKET_SIZE, + } + } }, } }, |