Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330647
b: refs/heads/master
c: 5cd9832
h: refs/heads/master
i:
  330645: 246dd90
  330643: 470f4f1
  330639: ca1c8a5
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent 9c3dfb5 commit 26c3638
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0921af7eb2eced1639fc1e1befdf703e7bec95a
refs/heads/master: 5cd983200ae8cba06d6ff5f515f741a654b62cf1
1 change: 0 additions & 1 deletion trunk/drivers/media/dvb/dvb-usb/dvb_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ struct dvb_usb_device {
struct mutex i2c_mutex;
struct i2c_adapter i2c_adap;

int num_adapters_initialized;
struct dvb_usb_adapter adapter[MAX_NO_OF_ADAPTER_PER_DEVICE];

/* remote control */
Expand Down
14 changes: 6 additions & 8 deletions trunk/drivers/media/dvb/dvb-usb/dvb_usb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ static int dvb_usbv2_adapter_init(struct dvb_usb_device *d)
adap->dvb_adap.mfe_shared = 1;

adap->dvb_adap.fe_ioctl_override = d->props->fe_ioctl_override;

d->num_adapters_initialized++;
}

return 0;
Expand All @@ -292,8 +290,6 @@ static int dvb_usbv2_adapter_exit(struct dvb_usb_device *d)
dvb_usbv2_adapter_stream_exit(&d->adapter[i]);
}

d->num_adapters_initialized = 0;

return 0;
}

Expand Down Expand Up @@ -551,8 +547,9 @@ int dvb_usbv2_suspend(struct usb_interface *intf, pm_message_t msg)
cancel_delayed_work_sync(&d->rc_query_work);

/* stop streaming */
for (i = d->num_adapters_initialized - 1; i >= 0; i--) {
if (d->adapter[i].active_fe != -1)
for (i = MAX_NO_OF_ADAPTER_PER_DEVICE - 1; i >= 0; i--) {
if (d->adapter[i].dvb_adap.priv &&
d->adapter[i].active_fe != -1)
usb_urb_killv2(&d->adapter[i].stream);
}

Expand All @@ -568,8 +565,9 @@ int dvb_usbv2_resume(struct usb_interface *intf)
pr_debug("%s:\n", __func__);

/* start streaming */
for (i = 0; i < d->num_adapters_initialized; i++) {
if (d->adapter[i].active_fe != -1)
for (i = 0; i < MAX_NO_OF_ADAPTER_PER_DEVICE; i++) {
if (d->adapter[i].dvb_adap.priv &&
d->adapter[i].active_fe != -1)
usb_urb_submitv2(&d->adapter[i].stream, NULL);
}

Expand Down

0 comments on commit 26c3638

Please sign in to comment.