Thanks, I am already reading Linux Device Drivers and I am subscribed to lkml from which I read whatever I understand :) I was asking about something more practical ... how do I know that the device is connected? Does it make sense to do it, when obviously it is already detected by the kernel?
On Thu, Aug 20, 2009 at 8:34 PM, Manish Rangankar <[email protected] > wrote: > I think you should first go through LDD book, then try running some sample > programs given in the book. Also go through pdf *lkml*. Both LDD and lkml > are available on net. After this try to get understanding of the ALSA or > OSS. > > May be try writing your own driver which will play MP3 on you PC console > speaker. > > -Manish R > > On Thu, Aug 20, 2009 at 4:29 PM, Radu <[email protected]> wrote: > >> Hi, >> >> I am trying for some time to write some kernel code, but as we all know >> that's not that easy. I want to write a driver for a no-name mp3 player, >> just for academic purposes, but I am not sure how should I tackle the >> problem - will it be a char driver ? how can I detect when it's plugged >> in/do I need to do that?. Where do I start? How do I do it? Is there any >> place where I can read about something similar? I've been reading quite a >> lot lately, but probably not enough. >> >> Thanks a lot for any hints, >> Radu. >> >> P.S: Sorry if this message has already sent to the list from another >> address of mine, but I couldn't get subscribed with it (probably I am >> greylisted). >> >> >
