Subject: kern/2014: Cannot set playback gain in WSS audio driver.
To: None <gnats-bugs@NetBSD.ORG>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: netbsd-bugs
Date: 02/01/1996 22:08:26
>Number:         2014
>Category:       kern
>Synopsis:       Cannot set playback gain in WSS audio driver.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb  1 16:35:16 1996
>Last-Modified:
>Originator:     Lennart Augustsson
>Organization:
CS at Chalmers University of Technology
>Release:        NetBSD 1.1 current, 1996 Jan 31
>Environment:
System: NetBSD calvin.cs.chalmers.se 1.1A NetBSD 1.1A (CALVIN) #33: Thu Feb 1 21:59:20 MET 1996 augustss@calvin.cs.chalmers.se:/usr/src/sys/arch/i386/compile/CALVIN i386


>Description:
	The playback gain cannot be set by the ioctl AUDIO_SET_INFO.
	It uses the get_out_port low level routine which is only
	returning an error for the wss driver.
>How-To-Repeat:
	Try it.
>Fix:
	Let wss_get_out_port return the proper value.

*** dev/isa/wss.c.old	Thu Feb  1 21:00:53 1996
--- dev/isa/wss.c	Thu Feb  1 21:59:13 1996
***************
*** 397,404 ****
  wss_get_out_port(addr)
      void *addr;
  {
!     DPRINTF(("wss_get_out_port:\n"));
!     return(EINVAL);
  }
  
  int
--- 397,404 ----
  wss_get_out_port(addr)
      void *addr;
  {
!     DPRINTF(("wss_get_out_port: %d\n", WSS_DAC_LVL));
!     return(WSS_DAC_LVL);
  }
  
  int
>Audit-Trail:
>Unformatted: