Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93672d9b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: android: Enable streaming only during composition enable"

parents a2211564 e5e25dd7
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -3124,6 +3124,7 @@ functions_store(struct device *pdev, struct device_attribute *attr,
	strlcpy(buf, buff, sizeof(buf));
	b = strim(buf);

	dev->cdev->gadget->streaming_enabled = false;
	while (b) {
		conf_str = strsep(&b, ":");
		if (!conf_str)
@@ -3452,10 +3453,6 @@ static void android_unbind_config(struct usb_configuration *c)
{
	struct android_dev *dev = cdev_to_android_dev(c->cdev);

	if (c->cdev->gadget->streaming_enabled) {
		c->cdev->gadget->streaming_enabled = false;
		pr_debug("setting streaming_enabled to false.\n");
	}
	android_unbind_enabled_functions(dev, c);
}