All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauricio Henriquez <buhochileno@gmail.com>
To: linux-media@vger.kernel.org, Jean-Francois Moine <moinejf@free.fr>
Subject: Re: spca1528 device (Device 015: ID 04fc:1528 Sunplus Technology)..libv4l2: error turning on	stream: Timer expired issue
Date: Mon, 05 Sep 2011 11:33:49 -0400	[thread overview]
Message-ID: <4E64EBDD.9050807@gmail.com> (raw)
In-Reply-To: <20110905091959.727346d5@tele>

[-- Attachment #1: Type: text/plain, Size: 3150 bytes --]

On 09/05/2011 03:19 AM, Jean-Francois Moine wrote:
> On Sun, 04 Sep 2011 15:39:30 -0400
> Mauricio Henriquez<buhochileno@gmail.com>  wrote:
>
>    
>> Recently I'm trying to make work a Sunplus crappy mini HD USB camera, lsusb
>> list this info related to the device:
>>
>> Picture Transfer Protocol (PIMA 15470)
>> Bus 001 Device 015: ID 04fc:1528 Sunplus Technology Co., Ltd
>>
>>    idVendor           0x04fc Sunplus Technology Co., Ltd
>>     idProduct          0x1528
>>     bcdDevice            1.00
>>     iManufacturer           1 Sunplus Co Ltd
>>     iProduct                2 General Image Devic
>>     iSerial                 0
>> ...
>>
>> Using the gspca-2.13.6 on my Fed12 (2.6.31.6-166.fc12.i686.PAE kernel), the
>> device is listed as /dev/video1 and no error doing a dmesg...but trying to
>> make it work, let say with xawtv, I get:
>>      
> 	[snip]
>
> Hi Mauricio,
>
> The problem seems tied to the alternate setting. It must be the #3
> while the lastest versions of gspca compute a "best" one. May you apply
> the following patch to gspca-2.13.6?
>    
Thanks Jean, yeap I apply the patch, but still the same kind of messages 
about timeout sing xawtv or svv:

xawtv:
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
libv4l2: error turning on stream: Timer expired
libv4l2: error reading: Invalid argument
v4l2: read: Invalid argument
libv4l2: error turning on stream: Timer expired
ioctl: VIDIOC_STREAMON(int=1): Timer expired
v4l2: oops: select timeout
ioctl: VIDIOC_REQBUFS(count=0;type=VIDEO_CAPTURE;memory=MMAP): Device or 
resource busy
libv4l2: error reading: Invalid argument
v4l2: read: Invalid argument

svv:
raw pixfmt: JPEG 640x480
pixfmt: RGB3 640x480
mmap method
VIDIOC_STREAMON error 62, Timer expired

this camera in mass storage mode works ok...

Cheers

Mauricio

> ----------------------8<----------------------
> --- build/spca1528.c.orig	2011-09-05 08:41:54.000000000 +0200
> +++ build/spca1528.c	2011-09-05 08:53:51.000000000 +0200
> @@ -307,8 +307,6 @@
>   	sd->color = COLOR_DEF;
>   	sd->sharpness = SHARPNESS_DEF;
>
> -	gspca_dev->nbalt = 4;		/* use alternate setting 3 */
> -
>   	return 0;
>   }
>
> @@ -349,6 +347,9 @@
>   	reg_r(gspca_dev, 0x25, 0x0004, 1);
>   	reg_wb(gspca_dev, 0x27, 0x0000, 0x0000, 0x06);
>   	reg_r(gspca_dev, 0x27, 0x0000, 1);
> +
> +	gspca_dev->alt = 4;		/* use alternate setting 3 */
> +
>   	return gspca_dev->usb_err;
>   }
>
> ----------------------8<----------------------
>
> (Theodore, this webcam may work in mass storage mode with ID 04fc:0171.
> In webcam mode with ID 04fc:1528, it offers 3 interfaces: interface 0
> contains only an interrupt endpoint, interface 1 is the webcam with
> only isochronous endpoints and interface 2 contains bulk in, bulk out
> and interrupt in endpoints - I don't know how to use the interfaces 0
> and 2, but sure the interface 2 could be used to access the camera
> images)
>
>    


-- 
Mauricio R. Henriquez Schott
Escuela de Ingeniería en Computación
Universidad Austral de Chile - Sede Puerto Montt
Los Pinos S/N, Balneario de Pelluco, Puerto Montt - Chile
Tel: 65-487440
Fax: 65-277156
mail: mauriciohenriquez@uach.cl


[-- Attachment #2: buhochileno.vcf --]
[-- Type: text/x-vcard, Size: 397 bytes --]

begin:vcard
fn:Mauricio Henriquez
n:Henriquez;Mauricio
org;quoted-printable:Universidad Austral de Chile - Sede Puerto Montt;Escuela de Computaci=C3=B3n
adr:;;Los Pinos S/N Balneario de Pelluco;Puerto Montt;Llanquihue;5480000;Chile
email;internet:mauriciohenriquez@uach.cl
title:Docente
tel;work:65-487440
tel;fax:65-277156
url:http://www.monobotics.ic.uach.cl
version:2.1
end:vcard


  reply	other threads:[~2011-09-05 14:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-04 19:39 spca1528 device (Device 015: ID 04fc:1528 Sunplus Technology)..libv4l2: error turning on stream: Timer expired issue Mauricio Henriquez
2011-09-05  2:07 ` Theodore Kilgore
2011-09-05 15:20   ` Mauricio Henriquez
2011-09-05  7:19 ` Jean-Francois Moine
2011-09-05 15:33   ` Mauricio Henriquez [this message]
2011-09-05 17:15     ` Jean-Francois Moine
2011-09-05 20:10       ` Mauricio Henriquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E64EBDD.9050807@gmail.com \
    --to=buhochileno@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=moinejf@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.