ioctl(CDROMREADAUDIO) on a NEC 16x CDROM

Ray Lehtiniemi (ray.lehtiniemi@crosskeys.com)
Wed, 20 Aug 1997 00:13:22 -0400 (EDT)


hi all

i'm trying to get cdda2wav working on my NEC 16x CDROM drive. it almost
works, but i get some static in the wav file. a bit of differential
cryptanalysis shows that this static is actually the first 12 bytes of
each 2352 byte audio data frame filled with junk.

from the comments in ide-cd.c and other cdrom drivers, i get the
impression that my drive thinks it is operating in some kind of data mode.
it figures that those 12 bytes are a sync header, and isn't sending the
audio data back to the kernel.

does this sound right? if so, what can i do about it? the code suggests
that if my drive didn;t support CDROMREADAUDIO at all, i'd get an error.
however, it's not an error, just a bit of missing data.

if all else fails, i can read a range of data a few times and fill in the
missing pieces (the 12 byte pattern seems to change phase on each read of
a sector range) but i'd rather fix the problem instead of working around
it....

---------------------------------------------------------------------------
Ray Lehtiniemi <rayl@crosskeys.com>