Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!news.uoregon.edu!hunter.premier.net!news.jmls.edu!chi-news.cic.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!cs.tu-berlin.de!uni-erlangen.de!news.tu-chemnitz.de!irz401!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: HELP: "SONY CD-ROM CDU-76S 1.1c" Date: 5 Mar 1996 22:13:48 GMT Organization: Private BSD site, Dresden Lines: 64 Message-ID: <4hieas$70i@uriah.heep.sax.de> References: <Pine.BSF.3.91.960229183254.314A-100000@nilkom.se> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.3 Lennart Nilhov <lennart@nilkom.se> writes: Your message was close to be unreadable. Please, try to make your actual problem more obvious in future postings. Formatting of a message is important, since you wanna convince other people to read it. I think you need this patch: 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 +++ cd.c 1995/12/30 13:56:28 1.55 @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 * - * $Id: cd.c,v 1.54 1995/12/20 12:02:43 dufault Exp $ + * $Id: cd.c,v 1.55 1995/12/30 13:56:28 joerg Exp $ */ #define SPLCD splbio @@ -830,7 +830,7 @@ 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; data.page.audio.port[3].channels = 0; @@ -839,7 +839,7 @@ break; } break; - case CDIOCSETSTERIO: + case CDIOCSETSTEREO: { struct cd_mode_data data; error = cd_get_mode(unit, &data, AUDIO_PAGE); @@ -1093,6 +1093,12 @@ 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 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)