Subject: Re: CDIOCPLAY... fails
To: NetBSD current-users mailing list <current-users@netbsd.org>
From: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
List: current-users
Date: 03/15/1999 10:02:42
Michael Richardson wrote:
>   yeah, I definitely experience this problem.

Could you try a new kernel with the following diffs?  If your CD is an
ATAPI one, you could probably apply the same to cd_atapi.c.  Please let
me know if this doesn't work ... not that it's the correct solution, but ...

J
-- 
          NetBSD - the most widely ported operating system available
 ---8<---------------------------- Cut here ---------------------------->8---
*** /usr/src/sys/dev/scsipi/cd_scsi.c.dist	Tue Sep  1 12:10:10 1998
--- /usr/src/sys/dev/scsipi/cd_scsi.c	Mon Mar 15 09:55:31 1999
***************
*** 237,244 ****
--- 237,246 ----
  		return (error);
  	data.page.audio.port[LEFT_PORT].channels = p0;
  	data.page.audio.port[RIGHT_PORT].channels = p1;
+ /*
  	data.page.audio.port[2].channels = p2;
  	data.page.audio.port[3].channels = p3;
+ */
  	return (cd_scsibus_set_mode(cd, &data, AUDIOPAGESIZE, flags));
  }
  
***************
*** 257,264 ****
--- 259,268 ----
  		return (error);
  	arg->vol[LEFT_PORT] = data.page.audio.port[LEFT_PORT].volume;
  	arg->vol[RIGHT_PORT] = data.page.audio.port[RIGHT_PORT].volume;
+ /*
  	arg->vol[2] = data.page.audio.port[2].volume;
  	arg->vol[3] = data.page.audio.port[3].volume;
+ */
  	return (0);
  }
  
***************
*** 278,285 ****
--- 282,291 ----
  	data.page.audio.port[LEFT_PORT].volume = arg->vol[LEFT_PORT];
  	data.page.audio.port[RIGHT_PORT].channels = CHANNEL_1;
  	data.page.audio.port[RIGHT_PORT].volume = arg->vol[RIGHT_PORT];
+ /*
  	data.page.audio.port[2].volume = arg->vol[2];
  	data.page.audio.port[3].volume = arg->vol[3];
+ */
  	return (cd_scsibus_set_mode(cd, &data, AUDIOPAGESIZE, flags));
  }