diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2008-01-25 04:37:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:05:18 -0500 |
commit | a162abb06bda3f38750a208e85e27f419798aa79 (patch) | |
tree | ae3ea1d545dc1980696650e11828dbd98d83aefc /drivers | |
parent | 853ea132c75ff2c4e3c3aaf61bf3ef5779774dbc (diff) |
V4L/DVB (7071): DiB0700: Start streaming the right way
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700_core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_core.c b/drivers/media/dvb/dvb-usb/dib0700_core.c index 3ea294eb96bd..c9857d5c6982 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_core.c +++ b/drivers/media/dvb/dvb-usb/dib0700_core.c | |||
@@ -243,7 +243,7 @@ int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) | |||
243 | u8 b[4]; | 243 | u8 b[4]; |
244 | 244 | ||
245 | b[0] = REQUEST_ENABLE_VIDEO; | 245 | b[0] = REQUEST_ENABLE_VIDEO; |
246 | b[1] = 0x00; | 246 | b[1] = (onoff << 4) | 0x00; /* this bit gives a kind of command, rather than enabling something or not */ |
247 | b[2] = (0x01 << 4); /* Master mode */ | 247 | b[2] = (0x01 << 4); /* Master mode */ |
248 | b[3] = 0x00; | 248 | b[3] = 0x00; |
249 | 249 | ||
@@ -256,9 +256,6 @@ int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) | |||
256 | 256 | ||
257 | b[2] |= st->channel_state; | 257 | b[2] |= st->channel_state; |
258 | 258 | ||
259 | if (st->channel_state) /* if at least one channel is active */ | ||
260 | b[1] = (0x01 << 4) | 0x00; | ||
261 | |||
262 | deb_info("data for streaming: %x %x\n",b[1],b[2]); | 259 | deb_info("data for streaming: %x %x\n",b[1],b[2]); |
263 | 260 | ||
264 | return dib0700_ctrl_wr(adap->dev, b, 4); | 261 | return dib0700_ctrl_wr(adap->dev, b, 4); |