From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 09:39:08 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4715B1CB for ; Fri, 16 Nov 2012 09:39:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id C41CC8FC13 for ; Fri, 16 Nov 2012 09:39:07 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 348155430; Fri, 16 Nov 2012 10:38:59 +0100 From: Hans Petter Selasky To: Jan Beich Subject: Re: linux joystick Date: Fri, 16 Nov 2012 10:40:39 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211160844.18798.hselasky@c2i.net> <1TZIDy-000OLa-S8@internal.tormail.org> In-Reply-To: <1TZIDy-000OLa-S8@internal.tormail.org> 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-15" Content-Transfer-Encoding: 7bit Message-Id: <201211161040.39454.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 09:39:08 -0000 On Friday 16 November 2012 10:29:12 Jan Beich wrote: > Hans Petter Selasky writes: > >> And my patch for do-configure + build fix should follow > > > > Hi, > > > > I think you need to add: > > > > -i media_tree/drivers/input/joystick > > > > to the linux_make arguments. > > This doesn't affect checksum of the produced binary. > > > Because that Makefile is not linked with the parent one I think. > > > > Then re-run the commands. > > I'm building only > > media_tree/drivers/input/joydev.c > media_tree/drivers/input/joystick/xpad.c > > and they're both present in the resulting binary. > > I think my gamepad is generic enough to not need any driver from > media_tree/drivers/input/joystick/. On linux joydev works with usbhid. > So, webcamd probably needs to attach to /dev/uhidN, not /dev/ugenN.M. > > > --HPS Hi, Can you check that your device is present in the ID-table in xpad.c: static struct usb_device_id xpad_table [] = { And add some prints in the probe section in xpad.c? Also, sometimes you need to specify the interface number to webcamd. It should not matter if uhid is attached or not. --HPS