Re: Af9005 driver: remote control not initialised on driver load

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

 



En/na Stanislav Nikolov ha escrit:
Hello,

I think there is a small problem in the af9005 driver implementation. When the driver is initialised, it is registered with the fields for the remote control empty. This doesn't allow for the remote control driver to be initialised. So, in order to use the remote, one has to manually remove and reinsert the stick, then the remote control works. It also doesn't work if one boots the system with the usb stick in.

That's strange, since the remote decoding functions are loaded with symbol_request in module_init, so what you're seeing shouldn't happen. I think a kernel guru could tell me if the initialization is wrong and suggest how to correct it in that case:

static int __init af9005_usb_module_init(void)
{
        int result;
        if ((result = usb_register(&af9005_usb_driver))) {
                err("usb_register failed. (%d)", result);
                return result;
        }
        rc_decode = symbol_request(af9005_rc_decode);
        rc_keys = symbol_request(af9005_rc_keys);
        rc_keys_size = symbol_request(af9005_rc_keys_size);
        if (rc_decode == NULL || rc_keys == NULL || rc_keys_size == NULL) {
err("af9005_rc_decode function not found, disabling remote");
                af9005_properties.rc_query = NULL;
        } else {
                af9005_properties.rc_key_map = rc_keys;
                af9005_properties.rc_key_map_size = *rc_keys_size;
        }

        return 0;
}


Bye
--
Luca


_______________________________________________
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