[media] dvb_usb_v2: change USB stream config logic
authorAntti Palosaari <crope@iki.fi>
Sat, 16 Jun 2012 19:02:57 +0000 (16:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:34 +0000 (07:56 -0300)
commit6400a8c5afb54a1018c4d01b7f1ad28c4e0ef659
tree52e52fd37e8c2b14cda64099631818376d226be3
parent12077a3aa4bfc1fb5ca779dcc6b3a1f45a475736
[media] dvb_usb_v2: change USB stream config logic

Initial / default USB stream configuration is now set always as a
dvb_usb_device_properties. Dynamic configuration is done top of
that if callback .get_usb_stream_config() exists. Default values
are set when callback is called so callback needs only change
values that are different than default.

In addition of that define two macros DVB_USB_STREAM_BULK() and
DVB_USB_STREAM_ISOC() for filling struct usb_data_stream_properties

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb_common.h
drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
drivers/media/dvb/dvb-usb/usb_urb.c