On Sun, Oct 04, 2009 at 10:44:52AM +0200, Jean Delvare wrote:
> On Sun, 4 Oct 2009 11:31:39 +0300, Aleksandr V. Piskunov wrote:
> > Tested on 2.6.30.8, one of Ubuntu mainline kernel builds.
> > 
> > ivtv-i2c part works, ivtv_i2c_new_ir() gets called, according to 
> > /sys/bus/i2c
> > device @ 0x40 gets a name ir_rx_em78p153s_ave.
> > 
> > Now according to my (very) limited understanding of new binding model, 
> > ir-kbd-i2c
> > should attach to this device by its name. Somehow it doesn't, ir-kbd-i2c 
> > gets loaded
> > silently without doing anything.
> 
> Change the device name to a shorter string (e.g. "ir_rx_em78p153s").
> You're hitting the i2c client name length limit. More details about
> this in the details reply I'm writing right now.

Thanks, it works now. ir-kbd-i2c picks up the short name, input device is 
created, remote
works.

Another place where truncation occurs is name field in 
em78p153s_aver_ir_init_data 
("ivtv-CX23416 EM78P153S AVerMedia"). Actual input device ends up with a name
"i2c IR (ivtv-CX23416 EM78P153S ", limited by char name[32] in IR_i2c struct.

IMHO actual name of resulting input device should be readable by end-user. 
Perhaps it should
include the short name of the card itself, or model/color of remote control 
itself if several
revisions exist, etc.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to