From owner-freebsd-multimedia@FreeBSD.ORG Sun May 25 03:34:42 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E071106567B for ; Sun, 25 May 2008 03:34:42 +0000 (UTC) (envelope-from yongjhen@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id 7C39F8FC1A for ; Sun, 25 May 2008 03:34:42 +0000 (UTC) (envelope-from yongjhen@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1104794wfg.7 for ; Sat, 24 May 2008 20:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=q1KisMAhQEXpOgnUuDLkLPDfqdtwkaH1H+JbuKAzL94=; b=pTYFu/bttlM0LlhDqFfdpIdTaYyXui6rHBEUwSY77rXIaiWrQeXwFehCQyavTdysUQt7nOSAx1DESclZMxzsQgAxgD5A3KMlEkbjQcMZP8lcTp6fDDnk0URNPkrh30OVgoNWRynoVdQB6nZCAAB+mYsv2e8llskVEJbz1YwV/Xs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=L5Wm8JBh/8LJy9AqQQ+H7fAcodehmr0XZBUBKEHWLnQEin8OHm1cOskAxzpU1A9RHGCNwJtiXAK1LPly/ECFpI9UsXcH0r6G/cOgNabwAbCjy2HY8PbtKNkMm239QsfJ8ijDlH8fQlYsdQ/fVeUEBWQdKC4VkHMQhZl3LpUgGsI= Received: by 10.142.212.19 with SMTP id k19mr492999wfg.13.1211686481911; Sat, 24 May 2008 20:34:41 -0700 (PDT) Received: from ?10.0.0.8? ( [219.84.64.174]) by mx.google.com with ESMTPS id 30sm14103462wfd.1.2008.05.24.20.34.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 May 2008 20:34:40 -0700 (PDT) Message-ID: <4838DE48.3040106@gmail.com> Date: Sun, 25 May 2008 11:34:32 +0800 From: Yong-Jhen Hong User-Agent: Thunderbird 2.0.0.14 (X11/20080511) MIME-Version: 1.0 To: Luigi Rizzo References: <48367933.8030600@gmail.com> <20080523085045.GB77439@onelab2.iet.unipi.it> In-Reply-To: <20080523085045.GB77439@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Webcam and linux-gspca-kmod X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2008 03:34:42 -0000 Luigi Rizzo wrote: > > ok thanks for the patch, i will try to fix this in the next release. > Thank you for this and your work on the emulation layer! > > in order to test the driver, the best option is to use > the 'pwcview' program in the linux-kmod-compat directory. Unfortunately, pwcview yields the same error as Cheese: 40406394 [1081] video_devdata: not complete but ok for now spca5xx_set_light_freq: [spca5xx_set_light_freq:1920] Sensor currently not support light frequency banding filters. gspca_set_isoc_ep: [gspca_set_isoc_ep:936] ISO EndPoint found 0x82 AlternateSet 7 40406914 [ 876] usb_submit_urb: openpipe error 4 init isoc: usb_submit_urb(0) ret -440406914 [ 959] usb_kill_urb: not complete but try something 40406914 [ 959] usb_kill_urb: not complete but try something 40406914 [ 959] usb_kill_urb: not complete but try something 40406914 [ 959] usb_kill_urb: not complete but try something spca5xx_open: [spca5xx_open:1987] DEALLOC error on init_Isoc > > Re. other applications, one thing to remember is that the freebsd > port of gspca does not support mmap, which seems to be the preferred > access method for Linux apps. So you need to rewrite a small piece > of the client using read() to a locally allocated buffer to access > the video. > > A patch of this kind for linphone is at > > http://info.iet.unipi.it/~luigi/patch-msv4l.c > > see if you can do something similar with your program. > > cheers > luigi Thanks, I will try the patch and the idea later. Cheers, yongjhen