projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71d67f7
)
V4L/DVB: tm6000: set variable dev_mode in function tm6000_start_stream
author
Stefan Ringel
<stefan.ringel@arcor.de>
Sun, 23 May 2010 18:29:26 +0000
(15:29 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 1 Jun 2010 04:22:06 +0000
(
01:22
-0300)
set variable dev_mode in function tm6000_start_stream and check mode
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-dvb.c
patch
|
blob
|
history
diff --git
a/drivers/staging/tm6000/tm6000-dvb.c
b/drivers/staging/tm6000/tm6000-dvb.c
index eafc89c22b6bec9982902b6584266bcd72c325e6..e6a802e9c48ad667da561c4c0365c3500187e64c 100644
(file)
--- a/
drivers/staging/tm6000/tm6000-dvb.c
+++ b/
drivers/staging/tm6000/tm6000-dvb.c
@@
-100,7
+100,10
@@
int tm6000_start_stream(struct tm6000_core *dev)
printk(KERN_INFO "tm6000: got start stream request %s\n",__FUNCTION__);
- tm6000_init_digital_mode(dev);
+ if (dev->mode != TM6000_MODE_DIGITAL) {
+ tm6000_init_digital_mode(dev);
+ dev->mode = TM6000_MODE_DIGITAL;
+ }
dvb->bulk_urb = usb_alloc_urb(0, GFP_KERNEL);
if(dvb->bulk_urb == NULL) {