From owner-freebsd-multimedia@freebsd.org Mon Aug 29 15:16:57 2016 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24459BC7987 for ; Mon, 29 Aug 2016 15:16:57 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE8B42702 for ; Mon, 29 Aug 2016 15:16:56 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 822301FE022; Mon, 29 Aug 2016 17:16:54 +0200 (CEST) Subject: Re: [CFT] New version of webcamd, now v4.8.0.2 To: Miguel C References: <050b048b-b73d-0823-885a-e8ab88f070e8@selasky.org> Cc: Oleg Nauman , "freebsd-multimedia@freebsd.org" From: Hans Petter Selasky Message-ID: <1a91839a-9026-16bd-7430-2f40cf742a81@selasky.org> Date: Mon, 29 Aug 2016 17:21:30 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 15:16:57 -0000 On 08/29/16 16:42, Miguel C wrote: >> >> >>>> 631 urb->status = -EINPROGRESS; >>>> >>> >>> This submit looks successful. Just enter "continue" after you see >>> "-EINPROGRESS". I need to figure out the failing case. >>> >>> Also do: >>> >>> print *uhe >>> >>> once while you are in this function. >>> >>> It might also be you can enter a breakpoint on the line number for >>> "return -EPIPE" in urb_submit() via GDB and catch that. >> >> >> How would I do that? something like "break linux_usb.c:613" >> >> btw I always kill webcamd, but even if not it seems smart enough to detect >> if other instances are running :) >> ie: "Webcamd is already running for ugen0.4.0" >> > > Assuming I did this the correct way :P > > 631 urb->status = -EINPROGRESS; > (gdb) print *uhe > $2 = {desc = {bLength = 7 '\a', bDescriptorType = 5 '\005', > bEndpointAddress = 135 '\207', bmAttributes = 3 '\003', > wMaxPacketSize = 16, bInterval = 8 '\b', bRefresh = 0 '\0', > bSynchAddress = 0 '\0'}, ss_ep_comp = { > bLength = 0 '\0', bDescriptorType = 0 '\0', bMaxBurst = 0 '\0', > bmAttributes = 0 '\0', wBytesPerInterval = 0}, > bsd_urb_list = {tqh_first = 0x802092070, tqh_last = 0x802092070}, > bsd_xfer = 0x8020764c0, > extra = 0x80206cfe6 "\005%\003\020", extralen = 5, bsd_iface_index = 0 > '\0', align = 0x8020764e0} > Can you type "continue" and see if you get more hits? wMaxPacketSize should be greater than 16. This seems like some kind of status endpoint. --HPS