Mailinglist Archive: opensuse (3120 mails)

< Previous Next >
Re: [SLE] Audio again.
  • From: Alexandr Malusek <Alexandr.Malusek@xxxxxxxxxx>
  • Date: 26 Dec 2002 16:47:26 +0100
  • Message-id: <86k7hwn5o1.fsf@xxxxxxxxxxxxxxxxx>
Erik Jakobsen <eja@xxxxxxxxxxx> writes:

> A data DVD in the DVD drive:
> ****************************
> ...
> Dec 26 09:40:45 eurit kernel: cdrom: Use count for "/dev/sr0" now 1
>
> A data cd in the CD-RW drive:
> *****************************
> ...
> Dec 26 09:44:49 eurit kernel: cdrom: Use count for "/dev/sr1" now 1

So your symbolic links should be

/dev/dvd -> /dev/sr0
/dev/cdrecorder -> /dev/sr1

> An audio-cd in both drives gave no debugging results, but I could not
> start it using kscd.

If you want to investigate the problem then you can run

strace -o strace.out kscd

and search the produced file strace.out for the file descriptor used
for accessing the device:

open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = 8
select(0, NULL, NULL, NULL, {0, 1000}) = 0 (Timeout)
ioctl(8, 0x5305, 0xbfffebba) = 0
ioctl(8, 0x5306, 0xbfffebb0) = 0

It's 8 in my case. The CD unit is controlled via ioctl calls
(e.g. 0x5305), their values are described in ioctl_list(2) and
/usr/include/linux/cdrom.h.

--
Alexandr.Malusek@xxxxxxxxxx

< Previous Next >