diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-09-19 12:51:43 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-10-03 15:12:40 -0300 |
commit | 0540c4961fcc6d69b8a3314c330c376890715eee (patch) | |
tree | 8babf9a7a6d10f4ebc5990009ad64328daf044a5 /drivers/media/dvb/dvb-usb/dvb-usb-urb.c | |
parent | 6958effedb0dc709966c22e7fd0e8210b5401b84 (diff) | |
download | talos-op-linux-0540c4961fcc6d69b8a3314c330c376890715eee.tar.gz talos-op-linux-0540c4961fcc6d69b8a3314c330c376890715eee.zip |
V4L/DVB (4649): Merged VP702x support to dvb-usb multi input
The fixed support for the VP70x (supports only StarBox2) is now in sync with
latest changes in the dvb-usb framework.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb-urb.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb-urb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-urb.c b/drivers/media/dvb/dvb-usb/dvb-usb-urb.c index 0aed7fd60623..5cef12a07f72 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb-urb.c +++ b/drivers/media/dvb/dvb-usb/dvb-usb-urb.c @@ -71,9 +71,19 @@ static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buffer, si dvb_dmx_swfilter(&adap->demux, buffer, length); } +static void dvb_usb_data_complete_204(struct usb_data_stream *stream, u8 *buffer, size_t length) +{ + struct dvb_usb_adapter *adap = stream->user_priv; + if (adap->feedcount > 0 && adap->state & DVB_USB_ADAP_STATE_DVB) + dvb_dmx_swfilter_204(&adap->demux, buffer, length); +} + int dvb_usb_adapter_stream_init(struct dvb_usb_adapter *adap) { adap->stream.udev = adap->dev->udev; + if (adap->props.caps & DVB_USB_ADAP_RECEIVES_204_BYTE_TS) + adap->stream.complete = dvb_usb_data_complete_204; + else adap->stream.complete = dvb_usb_data_complete; adap->stream.user_priv = adap; return usb_urb_init(&adap->stream, &adap->props.stream); |