> On Thu, Sep 23 1999, Mike wrote:
> > With check_media_type=1, and cdplay opening in blocking mode, the open
> > fails with incorect media type, as expected.
> >
> > If check_media_type=0, or cdplay opens in non-blocking mode (or both),
> > cdplay fails with the message CDROMPLAYMSF: Success. cdp, under the same
> > circumstances, fails with CDROMPLAYMSF: No such file or directory.
> > Both the errors seem rather confusing.
> > Any ideas?
>
> Could you load cdrom with debug enabled and see what gets
> dumped to the log?
>
When the cdrom is first accessed, so the modules get autoloaded:
Sep 23 22:43:38 oakley kernel: cdrom: entering unregister_cdrom
Sep 23 22:43:38 oakley kernel: cdrom: drive "/dev/sr0" unregistered
Sep 23 22:43:44 oakley kernel: Uniform CD-ROM driver unloaded
Sep 23 22:43:59 oakley kernel: cdrom: entering register_cdrom
Sep 23 22:43:59 oakley kernel: Uniform CDROM driver Revision: 3.03
Sep 23 22:43:59 oakley kernel: cdrom: drive "/dev/sr0" registered
Each time I try cdplay:
Sep 23 22:43:59 oakley kernel: cdrom: entering cdrom_open
Sep 23 22:43:59 oakley kernel: cdrom: entering open_for_data
Sep 23 22:43:59 oakley kernel: cdrom: drive_status=4
Sep 23 22:43:59 oakley kernel: cdrom: entering cdrom_count_tracks
Sep 23 22:43:59 oakley kernel: cdrom: track 1: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 2: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 3: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 4: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 5: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 6: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 7: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 8: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 9: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 10: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 11: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 12: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 13: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 14: format=2, ctrl=0
Sep 23 22:43:59 oakley kernel: cdrom: track 15: format=2, ctrl=0
Sep 23 22:44:00 oakley kernel: cdrom: track 16: format=2, ctrl=0
Sep 23 22:44:00 oakley kernel: cdrom: track 17: format=2, ctrl=0
Sep 23 22:44:00 oakley kernel: cdrom: track 18: format=2, ctrl=0
Sep 23 22:44:00 oakley kernel: cdrom: track 19: format=2, ctrl=0
Sep 23 22:44:00 oakley kernel: cdrom: track 20: format=2, ctrl=0
Sep 23 22:44:00 oakley kernel: cdrom: disc has 20 tracks: 20=audio 0=data 0=Cd-I 0=XA
Sep 23 22:44:00 oakley kernel: cdrom: wrong media type, but CDO_CHECK_TYPE not set.
Sep 23 22:44:00 oakley kernel: cdrom: all seems well, opening the device.
Sep 23 22:44:00 oakley kernel: cdrom: opening the device gave me 0.
Sep 23 22:44:00 oakley kernel: cdrom: door locked.
Sep 23 22:44:00 oakley kernel: cdrom: device opened successfully.
Sep 23 22:44:00 oakley kernel: cdrom: Use count for "/dev/sr0" now 1
Sep 23 22:44:00 oakley kernel: cdrom: entering audio ioctl (start/stop)
Sep 23 22:44:00 oakley kernel: cdrom: entering CDROMPLAYMSF
Sep 23 22:44:00 oakley kernel: cdrom: entering cdrom_release
Sep 23 22:44:00 oakley kernel: cdrom: Use count for "/dev/sr0" now zero
Sep 23 22:44:00 oakley kernel: cdrom: Unlocking door!
This looks entirely reasonable to me.
-- Mike <rickettm@ox.compsoc.net>God must have loved calories, she made so many of them.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/