pwc
[Top] [All Lists]

Re: [pwc] Load pwc into a given slot

To: Nicolas Boulay <>,
Subject: Re: [pwc] Load pwc into a given slot
From: Levente Novák <>
Date: Tue, 20 May 2008 19:55:08 +0200
On Tue, 2008-05-20 at 09:44 +0200, Nicolas Boulay wrote:
> The /dev/* file are created inside scripts. Those script create the
> specific files that link drivers and the dev files (using major/minor
> numbers).
> 
> So your problem should be solve by configuring udev,
> hotplug, /etc/modules or what ever starting script you use.
> 
> Nicolas Boulay
> 
> 2008/5/17 Levente NovÃk <>:
>         Is it possible to specify a module option to pwc in order to
>         load it
>         into a given slot instead of the slot being assigned
>         automatically?
>         Specifically, I would like to load it always as /dev/video1.
>         Beside the
>         webcam, I have a Hauppauge card which is normally
>         under /dev/video0 but
>         sometimes (after a reboot from a Win XP session) it gets
>         assigned /dev/video1 and pwc grabs /dev/video0. It is a major
>         pain then,
>         as my recording scripts expect the Hauppauge card
>         being /dev/video0. The
>         same problem happens to the motherboard sound card and pwc's
>         usb audio,
>         but ALSA has a module parameter index=n (where n is the slot
>         number)
>         which permits to always assign the second slot to the usb
>         audio. Is
>         there something similar for the v4l2 part of the pwc module?

Thanks, but in the meantime I discovered exactly what I was looking for:
the 'dev_hint' module option. In fact you don't need to configure
anything, just make ïunder /etc/modprobe.d a file named e.g. 'pwc' which
contains 'option pwc dev_hint=1'  which makes pwc to load as /dev/video1
if this slot is still free.

Levente





_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU