Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 1997 08:55:10 +0200 (MET DST)
From:      Zoltan Sebestyen <sebesty@cs.elte.hu>
To:        freebsd-hackers@freebsd.org
Subject:   communcating with cdrom
Message-ID:  <Pine.ULT.3.93.970729083929.11302B-100000@konig>

next in thread | raw e-mail | index | archive | help
Hi,

 I'm porting a cdplayer to FreeBSD and run into several problems. The
first one was that in FreeBSD there are no constants describing a cdrom's
tracks wether they are audio or data tracks. Now I've found out that the
control tag of cd_toc_entry structure is 4, if the track in question is a
data track, at least for ATAPI devices. But I still have some questions.
This cdplayer allows to mount the first data track of the cd, if there's
any but it seems that FreeBSD doesn't allow to open the device (actually
it's /dev/wcd0c) for ioctl calls and to mount the same device at the same
time. Is this true? Should I redirect the ioctl calls to the raw device
(/dev/rwcd0c) instead of the block one? 
 Another problem is that I just can't close the tray of the cdrom
neither with the CDIOCCLOSE ioctl call nor with the button on the
cdrom player after opening it. If I closed the open device, I could close
the cd manually, but it didn't solve the problem, because with the tray
open I can't open the device again. If you can help me, please let me
know.

		Thanks in advance


--------------------------------------------------------------------------------
Sebestyen Zoltan			It all seems so stupid,
					it makes me want to give up.
szoli@caesar.elte.hu			But why should I give up,
					when it all seems so stupid?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.ULT.3.93.970729083929.11302B-100000>