diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-02-07 03:49:12 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-02-07 03:49:12 -0500 |
commit | 21d06544a745a09cc1e9ce5376a61b074bfce379 (patch) | |
tree | 3b10a671baf997e74ce9b92709feefdebfd58bb0 /drivers/media/dvb | |
parent | 123aab28608ac81938865b31db188c985aeb4424 (diff) |
V4L/DVB (3313): FIX: Check if FW was downloaded or not + new firmware file
- When a firmware was downloaded dvb_usb_device_init returns NULL for the
dvb_usb_device, then nothing should be done with that pointer and device,
because it will re-enumerate.
- A new firmware should be used with digitv devices.
- It should make "slave"-devices work and others, too.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/digitv.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index e6c55c9c9417..caa1346e3063 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c | |||
@@ -175,11 +175,13 @@ static int digitv_probe(struct usb_interface *intf, | |||
175 | if ((ret = dvb_usb_device_init(intf,&digitv_properties,THIS_MODULE,&d)) == 0) { | 175 | if ((ret = dvb_usb_device_init(intf,&digitv_properties,THIS_MODULE,&d)) == 0) { |
176 | u8 b[4] = { 0 }; | 176 | u8 b[4] = { 0 }; |
177 | 177 | ||
178 | b[0] = 1; | 178 | if (d != NULL) { /* do that only when the firmware is loaded */ |
179 | digitv_ctrl_msg(d,USB_WRITE_REMOTE_TYPE,0,b,4,NULL,0); | 179 | b[0] = 1; |
180 | digitv_ctrl_msg(d,USB_WRITE_REMOTE_TYPE,0,b,4,NULL,0); | ||
180 | 181 | ||
181 | b[0] = 0; | 182 | b[0] = 0; |
182 | digitv_ctrl_msg(d,USB_WRITE_REMOTE,0,b,4,NULL,0); | 183 | digitv_ctrl_msg(d,USB_WRITE_REMOTE,0,b,4,NULL,0); |
184 | } | ||
183 | } | 185 | } |
184 | return ret; | 186 | return ret; |
185 | } | 187 | } |
@@ -194,7 +196,7 @@ static struct dvb_usb_properties digitv_properties = { | |||
194 | .caps = DVB_USB_IS_AN_I2C_ADAPTER, | 196 | .caps = DVB_USB_IS_AN_I2C_ADAPTER, |
195 | 197 | ||
196 | .usb_ctrl = CYPRESS_FX2, | 198 | .usb_ctrl = CYPRESS_FX2, |
197 | .firmware = "dvb-usb-digitv-01.fw", | 199 | .firmware = "dvb-usb-digitv-02.fw", |
198 | 200 | ||
199 | .size_of_priv = 0, | 201 | .size_of_priv = 0, |
200 | 202 | ||
@@ -229,6 +231,7 @@ static struct dvb_usb_properties digitv_properties = { | |||
229 | { &digitv_table[0], NULL }, | 231 | { &digitv_table[0], NULL }, |
230 | { NULL }, | 232 | { NULL }, |
231 | }, | 233 | }, |
234 | { NULL }, | ||
232 | } | 235 | } |
233 | }; | 236 | }; |
234 | 237 | ||