I have headphones with three buttons on it which allow me to control my music player. I want to write a driver to make it control my music player on my pc (Ubuntu Linux).
So I think I should write a special program for my device. I have some basic knowledge about kernel programming and Linux device drivers. Who can tell me where I can find the default driver for headphones, or some ideas and suggestion are also appreciated.