cd audio probs in FreeBSD

cd audio probs in FreeBSD

Post by S DAVID PULLA » Sun, 02 Jun 1996 04:00:00



Hi there.  I hope you guys are doing well and having fun.  I just got
myself a new toy, a cdrom, and I'm trying it out under FreeBSD.
However, I've run into a snag that I couldn't answer on the doc pages
or the faq.  Note that I just recompiled the kernel today (FreeBSD 2.1
Release #0) to make sure there was a cdrom driver in there. (That fixed
an earlier problem: "device not configured".  The faq says that this
is usually caused by the cd player being empty, but recompiling the
kernel solved it.)

In DOS, I don't seem to have any problems playing the CD.  In FreeBSD,
using cdplay gives me the following:

localhost: {1} cdplay cd0
CD>play 1 2
cdplay: Invalid argument
CD>setdebug
CD>play 1 12
cdplay: Invalid argument
CD>status
status track minute second frame
21 01 0 0 0
CD>reset
CD>status
status track minute second frame
-1 01 0 0 0
cdplay: Input/output error
CD>quit
localhost: {2}

xcdplayer gives me something like this when I try to play a track:
ioctl(cdromplaymsftrk): Invalid argument

Anyone have any ideas as to what I might be doing wrong?
I'd be grateful for suggestions you might have.

Thanks
David Pullara

Relevent hardware:
486DX VLB,
Adaptec 1542B scsi controller (ISA)
Sony 4x cdrom (cdu-76s) (scsi)

 
 
 

cd audio probs in FreeBSD

Post by J Wuns » Wed, 05 Jun 1996 04:00:00


(The comp.os.386bsd.* groups are dead, i've removed them from the
Newsgroups line.)


Quote:> localhost: {1} cdplay cd0
> CD>play 1 2
> cdplay: Invalid argument
> Anyone have any ideas as to what I might be doing wrong?
> I'd be grateful for suggestions you might have.
> Sony 4x cdrom (cdu-76s) (scsi)

Ah, that's the most important info!  The SONY's didn't work right in
2.1R.  Below is a fix.  (You've been reminding me: it still has to be
pulled into the -stable branch, it's only in -current yet.)

Index: /sys/scsi/cd.c
===================================================================
RCS file: /home/cvs/src/sys/scsi/cd.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -u -r1.54 -r1.55
--- cd.c        1995/12/20 12:02:43     1.54

                        error = cd_get_mode(unit, &data, AUDIO_PAGE);
                        if (error)
                                break;
-                       data.page.audio.port[LEFT_PORT].channels = LEFT_CHANNEL | RIGHT_CHANNEL | 4 | 8;
+                       data.page.audio.port[LEFT_PORT].channels = LEFT_CHANNEL | RIGHT_CHANNEL;
                        data.page.audio.port[RIGHT_PORT].channels = LEFT_CHANNEL | RIGHT_CHANNEL;
                        data.page.audio.port[2].channels = 0;

                                break;
                }
                break;
-       case CDIOCSETSTERIO:
+       case CDIOCSETSTEREO:
                {
                        struct cd_mode_data data;

        scsi_cmd.byte2 |= SMS_PF;
        scsi_cmd.length = sizeof(*data) & 0xff;
        data->header.data_length = 0;
+       /*
+        * SONY drives do not allow a mode select with a medium_type
+        * value that has just been returned by a mode sense; use a
+        * medium_type of 0 (Default) instead.
+        */
+       data->header.medium_type = 0;
        return (scsi_scsi_cmd(SCSI_LINK(&cd_switch, unit),
                (struct scsi_generic *) &scsi_cmd,
                sizeof(scsi_cmd),

--
cheers, J"org


Never trust an operating system you don't have sources for. ;-)

 
 
 

1. cd audio prob

hi,

im a newbie who has installed slackware and all has
gone well apart from one detail that has left me stumped.

i have setup my cdrom so that it can be mounted with no problem,
and i can see and transfer files from the cd to the hdd fine as
i actually installed slackware from cd.

i have setup my SB16 fine(i think) as i can play audio (au) and
wav files ok..actually the wav files sound crap....the output
is very slow.

but when i run applications such as workbone,workman or cdp to
play a cd off my unmounted cdrom i get the following error which
repeats over and over.......then i cant do anything for about 10
minutes.

IRQ timeout?? (sorry im at work..cant remember this line)
ATAPI reset
media changed...

my setup is as follows:..ie pretty standard
creative SB16
creative x8 cdrom using ATAPI driver
kernel 2.0.27,slackware
ide 1 has master hdd
ide 2 has master hdd and slave cdrom

-i can play audio etc fine under win95
-and i am sure there are no conflicts of any sort..

does any1 know what is going on???..as every1 i know
seems to be at a loss for an explanation.

thanks

john karampetsos

2. SATAN, COPS, etc

3. CD Audio Probs HELP!!!!!

4. REDHAT FAILS TO DELIVER --- (Well, NOT REALLY)

5. cd audio prob

6. Know what I did on Linux day?

7. [Fwd: audio cd probs with sunpci]

8. Java problem with Netscape

9. Help REQ: CD Audio probs in win95 after Linux upgrade (!!)

10. audio cd probs with sunpci

11. linux pmac and IDE cd audio probs

12. video/audio plug-ins for Netscape 4.03 browser

13. Audio CD's and FreeBSD!!!