diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2008-01-25 10:37:57 +0100 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2008-01-25 10:37:57 +0100 |
commit | 6d642ceca1b411004b20634831721cb598055076 (patch) | |
tree | 9c27682c757b787739016e2bd5d03cd29645a452 /linux/drivers/media | |
parent | b2ca5bfaaed07747dacfcd3de5a2af6e91252e97 (diff) | |
download | mediapointer-dvb-s2-6d642ceca1b411004b20634831721cb598055076.tar.gz mediapointer-dvb-s2-6d642ceca1b411004b20634831721cb598055076.tar.bz2 |
DiB0700: Start streaming the right way
From: Patrick Boettcher <pb@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/dib0700_core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dib0700_core.c b/linux/drivers/media/dvb/dvb-usb/dib0700_core.c index cab743531..d48425f4a 100644 --- a/linux/drivers/media/dvb/dvb-usb/dib0700_core.c +++ b/linux/drivers/media/dvb/dvb-usb/dib0700_core.c @@ -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); |