Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mauro Carvalho Chehab
Date: Saturday, May 17, 2008 - 3:58 am

On Fri, 16 May 2008, Adrian Bunk wrote:


I suspect you're maning depends on !S390. This is not needed, since 
Multimedia devices is already dependent on HAS_IOMEM.


There are several embedded V4L/DVB devices: Cellular phones, Set Top 
Boxes, surveillance systems, etc. I'm not sure if forcing the need for 
INPUT would be nice. Also, from time to time, people ask for a feature of 
allowing to disable the IR.

Maybe the better would be to allow the user to explicitly select/unselect 
IR (for advanced users, and if INPUT). If IR is disabled, we may disable 
the corresponding <board>-input.c compilation. It doesn't seem hard to do 
this way, but it will require more time to bake a patch.


Yes, but the committed patch is adding "depends on HOTPLUG" to all devices 
that selects FW_LOADER.

If you want, feel free to change this to select, although I can't see any 
real gain.


The open issue I see is to check the "depends on" for all symbols that are 
selected.


I would remove the select inside VIDEO_IR, adding a separate select for 
VIDEO_IR_I2C. There's a problem on saa7134-input: It uses some symbols 
defined on ir-kbd-i2c:

$ grep EXPORT ir-kbd-i2c.c
EXPORT_SYMBOL_GPL(get_key_pinnacle_grey);
EXPORT_SYMBOL_GPL(get_key_pinnacle_color);

This breaks saa7134 compilation, if IR-I2C is not selected (or if it is a 
module, and saa7134 is 'Y).

The proper fix here is to move those symbols to ir-keymaps.c, where the 
shared IR tables should be.

Except for this, it is safe to allow the user to not compile VIDEO_IR_I2C, 
even for devices that has i2c IR's. If the module is not compiled, 
request_module() will fail, but everything else will work properly.


True.


Yes, but in is, in fact, 10K * lots of modules.

The point is that the I2C modules behave very well if they aren't 
compiled.

I can, for example, compile bttv with just tuner-simple, and nothing else. 
This will work with all bttv functionalities for two devices I have here. 
A third analog-only device will require TVAUDIO, otherwise, the audio chip 
won't be loaded, and audio decoder won't happen. So, the device will work 
only with video.

I don't see much troubles with most of those I2C helper modules, since the 
vast majority depends only on I2C (only a few also depends on FW_LOADER).

Cheers,
Mauro
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PATCHES] V4L/DVB fixes for 2.6.26, Mauro Carvalho Chehab, (Wed May 14, 7:49 am)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Adrian Bunk, (Wed May 14, 9:54 am)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Mauro Carvalho Chehab, (Wed May 14, 10:55 am)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Adrian Bunk, (Wed May 14, 12:38 pm)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Mauro Carvalho Chehab, (Wed May 14, 1:04 pm)
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB fixes for 2 ..., Mauro Carvalho Chehab, (Wed May 14, 7:10 pm)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Adrian Bunk, (Thu May 15, 9:02 am)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Mauro Carvalho Chehab, (Thu May 15, 6:50 pm)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Adrian Bunk, (Fri May 16, 4:25 am)
Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26, Mauro Carvalho Chehab, (Sat May 17, 3:58 am)