Mailing List archive

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

[linux-dvb] Re: Weird problem



Johannes Stezenbach writes:
 > Michael Hunold wrote:
 > > 
 > > Because we only allocate one major number and have 256 minor numbers, 
 > > there can be 4 adapters with each 4*8 devices (audio0, ..., audio3, 
 > > demux0, ..., demux3, ... => same for frontend, osd, ca, dvr, net, video)
 > 
 > Actually 4*16 as has been pointed out in another mail.
 > 
 > > There are two solutions:
 > > 
 > > 1) Dynamically allocate multiple major numbers, ie. 251, 252, 253, ...
 > > for further devices. Some drivers have done this for ages.
 > 
 > The "sec" device minor is actually unused, so we could just change the
 > minor number allocation scheme and support 8 adapters with 4*8 devices,
 > instead of 4 adapters with 4*16 devices.
 > 
 > Downside: It makes up/down-grading the drivers error prone for non-devfs
 > users because they have to re-run makedev.napi every time.

If you move "osd" to "sec", users with one budget card would 
not have to do anything. Users with one big card will only have problems
if they use OSD. 

For the next API, the "dvr" slot also is free and we will
use it for general card control calls like firmware uploads.


Ralph


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index