ports/107806: [PATCH] audio/umix: make it usable

trasz trasz at pin.if.uz.zgora.pl
Thu Jan 11 00:00:45 UTC 2007


>Number:         107806
>Category:       ports
>Synopsis:       [PATCH] audio/umix: make it usable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 11 00:00:39 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     trasz
>Release:        FreeBSD 6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006
>Description:
For quite some time running umix would result in 'umix: ioctl request
1079790949 failed: Device not configured' error repeated over and over,
making it impossible to use.  This patch fixes this.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- umix-1.0.2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/audio/umix/files/patch-src::driver_oss.c /home/trasz/umix/files/patch-src::driver_oss.c
--- /usr/ports/audio/umix/files/patch-src::driver_oss.c	Wed Nov  5 17:40:30 2003
+++ /home/trasz/umix/files/patch-src::driver_oss.c	Thu Jan 11 00:56:26 2007
@@ -13,7 +13,7 @@
   * oss_open() before initializing. */
  int oss_init(void)
  {
-+#ifdef SOUND_MIXER_INFO
++#if 0
  	/* this is an OSS structure, defined in soundcard.h */
  	struct mixer_info oss_info;
 +#endif
@@ -24,7 +24,7 @@
  	mixer_ptr->numchan = SOUND_MIXER_NRDEVICES;
  	mixer_ptr->numchan = CLAMP(mixer_ptr->numchan,0,SOUND_MIXER_NRDEVICES);
  
-+#ifdef SOUND_MIXER_INFO
++#if 0
  	/* get the mixer name */
  	eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
  	strncpy(mixer_ptr->name, oss_info.name, sizeof(mixer_ptr->name));
@@ -36,7 +36,7 @@
  		oss_set_curr_chan(i);
  		oss_update(OSS_UPD_READ);
  	}
-+#ifdef SOUND_MIXER_INFO
++#if 0
  	/* init the modify counter */
  	eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
  	mixer_ptr->modifycount = oss_info.modify_counter;
@@ -48,7 +48,7 @@
   * the device and compares it to the old */
  static int oss_check_update(void)
  {
-+#ifdef SOUND_MIXER_INFO
++#if 0
  	struct mixer_info oss_info;
  
  	eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
--- umix-1.0.2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list