How to understand the following CDROM driver codes?

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

 



Hi:
I read the following CDROM codes ,and have some difficulties to understand them completely. I am really new to the interface between hardware and software, and hope to learn from all of
you.
From system call ioctl , I track to cdrom_ioctl, and have some problem to understand it:
      case CDROMPLAYMSF: {
2533                 struct cdrom_msf msf;
2534                 if (!CDROM_CAN(CDC_PLAY_AUDIO))
2535                         return -ENOSYS;
2536                 cdinfo(CD_DO_IOCTL, "entering CDROMPLAYMSF\n");
2537                 IOCTL_IN(arg, struct cdrom_msf, msf);
2538                 return cdo->audio_ioctl(cdi, cmd, &msf);
2539                 }

My problem is:
   1) Which routine is the real  cdo->audio_ioctl?
   2) Is this the lowest code to interact with hardware?
3) How does Linux play a CD? That is : cdo->audio_ioctl directly output music data to CD-ROM's
audio out or write them to then input of soundcard?

Thanks a lot.

--cundong

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux