Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2002 04:37:33 -0700 (PDT)
From:      Christian Müller <smoki@irrenhaus.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/40034: AD1816A need a fix!
Message-ID:  <200206301137.g5UBbX2D054471@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         40034
>Category:       kern
>Synopsis:       AD1816A need a fix!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 30 04:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christian Müller
>Release:        FreeBSD 4.6
>Organization:
>Environment:
FreeBSD twain.franken.de 4.6-RELEASE FreeBSD 4.6-RELEASE #7: Sun Jun 30 12:38:41 CEST 2002     root@twain.franken.de:/usr/src/sys/compile/SMOKI  i386
>Description:
The Soundcard AD1816A will be detected correctly, but i can not play any sound. The System gives me "/dev/dsp is busy"
>How-To-Repeat:
Install a AD1816A and play music.
>Fix:
static int ad1816chan_setformat(kobj_t obj, void *data, u_int32_t format)

Should return 0 and not the format, becouse the other soundcards return 0 too.

Here the patch:

twain# pwd
/usr/src/sys/dev/sound/isa
twain# diff -crN ad1816.c.orig ad1816.c
*** ad1816.c.orig	Sun Jun 30 13:29:29 2002
--- ad1816.c	Sun Jun 30 12:15:53 2002
***************
*** 373,379 ****
      	if (format & AFMT_STEREO) fmt |= AD1816_STEREO;
      	io_wr(ad1816, reg, fmt);
  	ad1816_unlock(ad1816);
!     	return format;
  }
  
  static int
--- 373,380 ----
      	if (format & AFMT_STEREO) fmt |= AD1816_STEREO;
      	io_wr(ad1816, reg, fmt);
  	ad1816_unlock(ad1816);
!     	return 0;
!     	/* return format; */
  }
  
  static int



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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206301137.g5UBbX2D054471>