{"action":"created","issue":{"url":"https://api.github.com/repos/hughsie/fwupd/issues/50","repository_url":"https://api.github.com/repos/hughsie/fwupd","labels_url":"https://api.github.com/repos/hughsie/fwupd/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/hughsie/fwupd/issues/50/comments","events_url":"https://api.github.com/repos/hughsie/fwupd/issues/50/events","html_url":"https://github.com/hughsie/fwupd/issues/50","id":157387534,"number":50,"title":"Reports of USB Audio failing when fwupd running","user":{"login":"superm1","id":494526,"avatar_url":"https://avatars.githubusercontent.com/u/494526?v=3","gravatar_id":"","url":"https://api.github.com/users/superm1","html_url":"https://github.com/superm1","followers_url":"https://api.github.com/users/superm1/followers","following_url":"https://api.github.com/users/superm1/following{/other_user}","gists_url":"https://api.github.com/users/superm1/gists{/gist_id}","starred_url":"https://api.github.com/users/superm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superm1/subscriptions","organizations_url":"https://api.github.com/users/superm1/orgs","repos_url":"https://api.github.com/users/superm1/repos","events_url":"https://api.github.com/users/superm1/events{/privacy}","received_events_url":"https://api.github.com/users/superm1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"hughsie","id":151380,"avatar_url":"https://avatars.githubusercontent.com/u/151380?v=3","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2016-05-29T13:58:59Z","updated_at":"2016-06-05T10:53:38Z","closed_at":null,"body":"There have been a variety of reports of USB audio failing to work properly when booted with it plugged in.  fwupd has a spin lock on the CPU in these situations, and replugging the device seems to resolve the issue.\r\n\r\nAdditional details are in the bug report link https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1574079.  Unfortunately they're pretty scattered with everyone giving varying amounts of information.  Something that did seem potentially common (and interesting?)  was that there is a DFU end point on some of these devices.  furthermore one person noted in their debug log that there was a DFU device emitted.\r\n```\r\n...\r\n21:26:16\t15\tcom.hughski.ColorHugALS.firmware\tColorHugALS\r\n21:26:30\twaiting a small time for other providers\r\n21:26:30\tusing b69159f2-3778-5728-80d0-01be18b2ea30 for USB\\VID_1397&PID_0501\r\n21:26:30\temit added from DFU: usb:00:01:03\r\n21:26:31\tno product string descriptor\r\n21:26:33\tCalled GetUpdates()\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hughsie/fwupd/issues/comments/223806466","html_url":"https://github.com/hughsie/fwupd/issues/50#issuecomment-223806466","issue_url":"https://api.github.com/repos/hughsie/fwupd/issues/50","id":223806466,"user":{"login":"TarasZakus","id":6502484,"avatar_url":"https://avatars.githubusercontent.com/u/6502484?v=3","gravatar_id":"","url":"https://api.github.com/users/TarasZakus","html_url":"https://github.com/TarasZakus","followers_url":"https://api.github.com/users/TarasZakus/followers","following_url":"https://api.github.com/users/TarasZakus/following{/other_user}","gists_url":"https://api.github.com/users/TarasZakus/gists{/gist_id}","starred_url":"https://api.github.com/users/TarasZakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TarasZakus/subscriptions","organizations_url":"https://api.github.com/users/TarasZakus/orgs","repos_url":"https://api.github.com/users/TarasZakus/repos","events_url":"https://api.github.com/users/TarasZakus/events{/privacy}","received_events_url":"https://api.github.com/users/TarasZakus/received_events","type":"User","site_admin":false},"created_at":"2016-06-05T10:53:38Z","updated_at":"2016-06-05T10:53:38Z","body":"I just did some investigation. It turns out that problem lays a little deeper, than I was expecting. Here is some kinda call-stack:\r\n\r\n_github.com:hughsie/fwupd.git_\r\nstarting from `dfu_device_open` function [here](https://github.com/hughsie/fwupd/blob/wip/hughsie/dfu-no-interface/libdfu/dfu-device.c#L1232)\r\n-> calls `dfu_device_refresh` [here](https://github.com/hughsie/fwupd/blob/wip/hughsie/dfu-no-interface/libdfu/dfu-device.c#L1308)\r\n-> calls `g_usb_device_control_transfer` [here](https://github.com/hughsie/fwupd/blob/wip/hughsie/dfu-no-interface/libdfu/dfu-device.c#L947)\r\n\r\nuses _github.com:hughsie/libgusb_\r\nstarting from `g_usb_device_control_transfer` [here](https://github.com/hughsie/libgusb/blob/gusb_0_2_9/gusb/gusb-device.c#L935)\r\n-> calls `g_usb_device_control_transfer_async` [here](https://github.com/hughsie/libgusb/blob/gusb_0_2_9/gusb/gusb-device.c#L957)\r\n-> calls `libusb_submit_transfer` [here](https://github.com/hughsie/libgusb/blob/gusb_0_2_9/gusb/gusb-device.c#L1301)\r\n\r\nuses _github.com:libusb/libusb_\r\nstarting from `libusb_submit_transfer` [here](https://github.com/libusb/libusb/blob/v1.0.20/libusb/io.c#L1459)\r\n\r\nI assume that the bug might be somewhere between calling `g_usb_device_control_transfer` and `libusb_submit_transfer`.\r\nMaybe some inappropriate argument passed or so.\r\n"}}
{"actor":{"display_login":"TarasZakus"}}