]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7071): DiB0700: Start streaming the right way
authorPatrick Boettcher <pb@linuxtv.org>
Fri, 25 Jan 2008 09:37:57 +0000 (06:37 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:05:18 +0000 (19:05 -0200)
There was a mistake in the way how to start the streaming in the dib0700. This patch fixes that.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/dib0700_core.c

index 3ea294eb96bdedc4a7b6e12dfa3af42143cedb6c..c9857d5c69829e68bbc9e82af68026ebc4d4288c 100644 (file)
@@ -243,7 +243,7 @@ int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
        u8 b[4];
 
        b[0] = REQUEST_ENABLE_VIDEO;
-       b[1] = 0x00;
+       b[1] = (onoff << 4) | 0x00; /* this bit gives a kind of command, rather than enabling something or not */
        b[2] = (0x01 << 4); /* Master mode */
        b[3] = 0x00;
 
@@ -256,9 +256,6 @@ int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
 
        b[2] |= st->channel_state;
 
-       if (st->channel_state) /* if at least one channel is active */
-               b[1] = (0x01 << 4) | 0x00;
-
        deb_info("data for streaming: %x %x\n",b[1],b[2]);
 
        return dib0700_ctrl_wr(adap->dev, b, 4);