From bcb09c198dd8ca7071cd9711f3aaac0aad87d551 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Tue, 4 Nov 2003 04:23:49 +0000 Subject: [PATCH] The CDDA case of CDROM_RawRead() no longer works on FreeBSD -CURRENT, remove it. Also, combine the FreeBSD and NetBSD NYI notes. --- dlls/ntdll/cdrom.c | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c index 685617759e2..e7621617064 100644 --- a/dlls/ntdll/cdrom.c +++ b/dlls/ntdll/cdrom.c @@ -1350,10 +1350,8 @@ static NTSTATUS CDROM_RawRead(int dev, const RAW_READ_INFO* raw, void* buffer, D return ret; } } -#elif defined(__FreeBSD__) +#else { - struct ioc_read_audio ira; - switch (raw->TrackMode) { case YellowMode2: @@ -1363,33 +1361,12 @@ static NTSTATUS CDROM_RawRead(int dev, const RAW_READ_INFO* raw, void* buffer, D FIXME("XAForm2: NIY\n"); return ret; case CDDA: - /* 2048 = 2 ** 11 */ - if (raw->DiskOffset.s.HighPart & ~2047) FIXME("Unsupported value\n"); - ira.address.lba = ((raw->DiskOffset.s.LowPart >> 11) | - raw->DiskOffset.s.HighPart << (32 - 11)) - 1; - ira.address_format = CD_LBA_FORMAT; - ira.nframes = raw->SectorCount; - ira.buffer = buffer; - io = ioctl(cdrom_cache[dev].fd, CDIOCREADAUDIO, &ira); - break; - } - } -#elif defined(__NetBSD__) - { - switch (raw->TrackMode) - { - case YellowMode2: - FIXME("YellowMode2: NIY\n"); - return ret; - case XAForm2: - FIXME("XAForm2: NIY\n"); + FIXME("CDDA: NIY\n"); return ret; - case CDDA: - FIXME("CDDA: NIY\n"); - return ret; - } + } } #endif + *sz = sectSize * raw->SectorCount; ret = CDROM_GetStatusCode(io); return ret; -- 2.11.4.GIT