[PATCH] Add driver specific module option to choose dvb adapter numbers, second try

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
To: linux-dvb@xxxxxxxxxxx
Date: Sat, 29 Mar 2008 22:40:25 +0100
Subject: [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@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux