From owner-freebsd-usb@FreeBSD.ORG Sat Sep 29 15:06:46 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0353716A418 for ; Sat, 29 Sep 2007 15:06:46 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by mx1.freebsd.org (Postfix) with ESMTP id AC67513C44B for ; Sat, 29 Sep 2007 15:06:45 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so1998673nzf for ; Sat, 29 Sep 2007 08:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=S+WyEknQLlliwI7U3IQuOKiNoJNiVFSAHJHH4QkflC8=; b=TuA0BrgThXn88S2X8kBNd+Z6ACPVObXQ/BDwuR+QGad28oxj8jC4/48UTPIBaAy5vizPHlr87ebi6zZdOid5z6A4sLmn735fpGC6Bsiy8MkdlzZ11DAGkhw6luo0842nh71I+vkfZwDf4a33Yi3hAkJw14yZY9wn9kDJX06GE30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jMpFxIyhyrsstlkzQfnNsNKcQN4R0ElJ/ZpkIY8+sGtycGN03+8NFqCejizrvbxW6vs9B0sATB5fTvv34wbuZUKJbwX5PoH8tckT0M+ImVnaAa+Xt25gaxmYeO7r04SIQdIjRUQq7KIrmVgKL8xPj6okkHiXRGk00RmrTe8p5Y8= Received: by 10.115.77.1 with SMTP id e1mr1542351wal.1191078400575; Sat, 29 Sep 2007 08:06:40 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 29 Sep 2007 08:06:40 -0700 (PDT) Message-ID: Date: Sat, 29 Sep 2007 23:06:40 +0800 From: "Xiaofan Chen" To: "Chuck T." In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-usb@freebsd.org Subject: Re: snd_uaudio with libusb ? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2007 15:06:46 -0000 On 9/29/07, Chuck T. wrote: > if(dev != NULL) { > if((udev = usb_open(dev)) != NULL) { > Ret = 0; > } Hmm, you do not set USB configurations. I know this might be good for Linux but this will not work under Windows. Not so sure about FreeBSD. I have tested some codes under Linux/Windows and I will do the tests for FreeBSD. I already tested pk2 and Piklab for PICkit 2 under FreeBSD with the help from people here. I always set configurations and calim interfaces (interrupt transfer for PICKit 2 -- HID device). http://forum.microchip.com/tm.aspx?m=106426 Not so sure about control transfer. I think you do not need to claim the interface. Regards, Xiaofan