From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 23 05:55:53 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E30E1106566B for ; Mon, 23 Apr 2012 05:55:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 710978FC20 for ; Mon, 23 Apr 2012 05:55:53 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 265715873; Mon, 23 Apr 2012 07:55:50 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Mon, 23 Apr 2012 07:54:49 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4F94A7A4.5080203@rawbw.com> In-Reply-To: <4F94A7A4.5080203@rawbw.com> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204230754.49422.hselasky@c2i.net> Cc: Yuri Subject: Re: Can't unload snd_uaudio: it hangs in D+ state X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 05:55:54 -0000 On Monday 23 April 2012 02:51:48 Yuri wrote: > I was debugging Logitech C910 webcam. > 1. 'kldload snd_uaudio' while camera was attached > 2. ran webcamd, which worked > 3. stopped webcamd > 4. 'kldunload snd_uaudio' while the camera is still attached => hanged in > D+ 5. 'kldstat' also hangs in D+ > I didn't really use usound, just loaded the module. > > What is wrong with snd_uaudio? Hi, If it says in dmesg that an application is using a device, that is a problem with the PCM layer, that doesn't support detach of devices if they are in use. --HPS