From owner-freebsd-usb@FreeBSD.ORG Sun Oct 4 16:26:14 2009 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 C7F2E106566B; Sun, 4 Oct 2009 16:26:14 +0000 (UTC) (envelope-from vinnix.bsd@gmail.com) Received: from mail-px0-f192.google.com (mail-px0-f192.google.com [209.85.216.192]) by mx1.freebsd.org (Postfix) with ESMTP id 8BD598FC18; Sun, 4 Oct 2009 16:26:14 +0000 (UTC) Received: by pxi30 with SMTP id 30so3492734pxi.7 for ; Sun, 04 Oct 2009 09:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zW2Ad4nKDwC6og3v6NiaeLeVJyHjHG+7kccTlqLcnOo=; b=qqMGjlxf934gUCE64Wh4EgOBs/ntMTwZ23ntbAKwPZLwQSrpD5+wlJo+D5nmsilmW7 U7S0KT40fgsHCKRjM14ZPemKDHahyEWGIzYrzGuxpJryJJiYEu6y2chIVIiHWy+Df3So Dxq/K1ugdcXj91bWf1+JMx2OTsFNqjDgtoPcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=FUPCt75p5eAjXnuCBtIJv+PlXSgNJy2IB6srPJJmoCxV37RXfSauVBjk0LgeFA5vXx SoGz0fqxVyAJWtAPMw3EbQ3w9UlL79c5SQxqp3oMBWqhq5AvQjqHvYDVJ/gR6n8H5YpX FeBRPNP9+iEd5VURDaj6tlv6YdWpVLs11Eh6M= MIME-Version: 1.0 Received: by 10.140.136.5 with SMTP id j5mr136238rvd.0.1254673573286; Sun, 04 Oct 2009 09:26:13 -0700 (PDT) In-Reply-To: <1e31c7980910040814o48a1a57bgde86571fa3265c4c@mail.gmail.com> References: <20090908201713.GD41185@e.0x20.net> <1e31c7980909130516g1b3cb9fn5df77c23ec072413@mail.gmail.com> <200909131508.05025.hselasky@c2i.net> <1e31c7980910040814o48a1a57bgde86571fa3265c4c@mail.gmail.com> Date: Sun, 4 Oct 2009 13:26:13 -0300 Message-ID: <1e31c7980910040926s35b01c5dn3e31d6b1509d1c76@mail.gmail.com> From: Vinicius Abrahao To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: luigi@freebsd.org, freebsd-current , lars.engels@0x20.net, freebsd-usb@freebsd.org, Florent Thoumie Subject: Re: CFH: fix multimedia/pwcbsd with usb2 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: Sun, 04 Oct 2009 16:26:15 -0000 Trying multimedia/pwcbwd-1.4.1_6 I added a line at multimedia/pwcbsd/work/pwcbsd/pwc.c # diff pwc.c /root/pwc.c --normal 94a95 > {USB_VPI(0x093a, 0x2603, 720)}, /* Philips SPC500NC */ But the problem now is that pwcview don't recognize and "operation" mode for this camera. I try setting 720, but I'll try with others. # /usr/local/bin/pwcview Failed to access webcam: Not a directory *********************************************************** Make sure you have connected your webcam to the root hub or to a USB 1.1 hub, also check your dmesg for any errors. *********************************************************** At /var/log/messages: vinnix kernel: pwc0: Failed to set video mode to SIF@10 fps; return code = =3D 20 vinnix kernel: pwc0: Failed to set video mode to QSIF@10 fps; return code = =3D 20 Thanks, Vin=EDcius On 10/4/09, Vinicius Abrahao wrote: > Hi Hans, > > Thanks for your help! I try to do exactly what you say, but without > success. > When I attach my camera I see at dmesg: > ugen2.3: at usbus2 > > Trying pwcview: > > #./pwcview -d /dev/ugen2.3 > Failed to access webcam: Operation not supported by device > *********************************************************** > Make sure you have connected your webcam to the root hub > or to a USB 1.1 hub, also check your dmesg for any errors. > *********************************************************** > > > What I'm doing wrong? > > Thanks again, > Best regards, > Vin=EDcius > > On 9/13/09, Hans Petter Selasky wrote: >> On Sunday 13 September 2009 14:16:10 Vinicius Abrahao wrote: >>> Thanks Florent, >>> >>> That's it for sure. I recompile my kernel yesterday and now pwcbsd is >>> loading normally. >>> Therefore, now I see that pwc is the wrong driver for me. My webcam is >>> a Philips SPC500NC. >>> ID 093a:2603 Pixart Imaging, Inc. >>> >>> At Google I found that linux-gspca-kmod is the right driver for me. >>> But this seen broken as >>> pwcbsd was in the past. >> >> Hi, >> >> The closes you will currently get is: >> >> svn --username anonsvn --password anonsvn \ >> checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux >> >> As root: >> >> make fetch >> make patch >> make >> >> You manually have to patch: >> >> ee libv4l/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c >> >> control/libv4lcontrol.c: In function 'v4lcontrol_vidioc_queryctrl': >> control/libv4lcontrol.c:586: error: '__u32' undeclared (first use in thi= s >> function) >> control/libv4lcontrol.c:586: error: (Each undeclared identifier is >> reported >> only once >> control/libv4lcontrol.c:586: error: for each function it appears in.) >> control/libv4lcontrol.c:586: error: expected ';' before 'orig_id' >> control/libv4lcontrol.c:600: error: 'orig_id' undeclared (first use in >> this >> function) >> >> __u32 to uint32_t >> >> In the end: >> >> cd pwcview >> >> ./pwcview >> >> >> Should bring your webcam right up in userland though. >> >> --HPS >> >> >