Re: How to understand ioctl for CD-ROM

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

 



On Fri, Jul 08, 2005 at 10:18:28AM -0700, Bruce Yang wrote:
> Hi, All:
>     I am reading the driver code for Linux CD-ROM. In libcdaudio, it just 
> called ioctr with CDROMPLAYMSF to play the CD.  I want to know :
>   1) In Linux Kernel, in which file ioctl (audio_ioctl) is implemented? 
> scd_dev_ioo_io or others.

See http://lxr.linux.no/ident?i=CDROMPLAYMSF

>   2) How does a CD player play music? I means, what's the data flow from 
> physical CD to sound
> card? Read music data from CD--> Send them to CD MIC--> Send them to Sound 
> Card or just
> Read music data from CD--> Send them to Sound Card.

The ioctl just asks the drive to play the CD. If you plug a headphone
into the drive, you can hear the music. If the CD drive happens to be
connected to the CD-in connection of a sound card, the sound card can
pick up the music as well.


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[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