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
|