I'm not sure exactly what you want to do, but the IR commands are handled first in the kernel, in arch/arm/special/empeg_input.c .. in there, you can translate them to mean anything you want, before they are passed to userland (the player).