[linux-dvb] [PATCH] Add driver specific module option to choose dvb adapter numbers, second try
Eduard Huguet
eduardhc at gmail.com
Sun Mar 30 10:50:03 CEST 2008
Great idea. I have myself a Nova-T 500 and an Avermedia A700 and I've
finally had to blacklist both modules for udev and manually loading later
the drivers in the desired order. This is the only way I get always the same
nunbering schema.
If not, I was getting the following crazy situation:
- dvb0: A700, dvb1/2 for the Nova T-500 when cold booting
- dvb0 Nova-T 500, dvb1 A700 and dvb2 Nova T-500 again when rebooting
Best regards,
Eduard
PS and OT: by the way, any progress out there on the Avermedia A700 (please,
Matthias, tell me something positive :D ...?
---------- Missatge reenviat ----------
> From: Janne Grunau <janne-dvb at grunau.be>
> To: linux-dvb at linuxtv.org
> Date: Sat, 29 Mar 2008 22:40:25 +0100
> Subject: [linux-dvb] [PATCH] Add driver specific module option to choose
> dvb adapter numbers, second try
> Hi,
>
> I resubmit this patch since I still think it is a good idea to the this
> driver option. There is still no udev recipe to guaranty stable dvb
> adapter numbers. I've tried to come up with some rules but it's tricky
> due to the multiple device nodes in a subdirectory. I won't claim that
> it is impossible to get udev to assign driver or hardware specific
> stable dvb adapter numbers but I think this patch is easier and more
> clean than a udev based solution.
>
> I'll drop this patch if a simple udev solution is found in a reasonable
> amount of time. But if there is no I would like to see the attached
> patch merged.
>
> Quoting myself for a short desciprtion for the patch:
>
> > V4L drivers have the {radio|vbi|video}_nr module options to allocate
> > static minor numbers per driver.
> >
> > Attached patch adds a similiar mechanism to the dvb subsystem. To
> > avoid problems with device unplugging and repluging each driver holds
> > a DVB_MAX_ADAPTER long array of the preffered order of adapter
> > numbers.
> >
> > options dvb-usb-dib0700 adapter_nr=7,6,5,4,3,2,1,0 would result in a
> > reversed allocation of adapter numbers.
> >
> > With adapter_nr=2,5 it tries first to get adapter number 2 and 5. If
> > both are already in use it will allocate the lowest free adapter
> > number.
>
> Janne
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080330/de8d52b8/attachment.htm
More information about the linux-dvb
mailing list