From timp@stack.nl  Mon Jul 26 21:58:07 2004
Return-Path: <timp@stack.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 921C516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jul 2004 21:58:07 +0000 (GMT)
Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D87CF43D53
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jul 2004 21:58:06 +0000 (GMT)
	(envelope-from timp@stack.nl)
Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132])
	by mailhost.stack.nl (Postfix) with ESMTP id 935851F17B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jul 2004 23:58:05 +0200 (CEST)
Received: by turtle.stack.nl (Postfix, from userid 1633)
	id 736A71CD4A; Mon, 26 Jul 2004 23:58:05 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by turtle.stack.nl (Postfix) with ESMTP id 62B211CD11
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jul 2004 23:58:05 +0200 (CEST)
Message-Id: <20040726235604.B56837@turtle.stack.nl>
Date: Mon, 26 Jul 2004 23:58:05 +0200 (CEST)
From: Tim Peeters <timp@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Subject: fm801 kernel module does not work for Terratec 512i digital soundcard

>Number:         69633
>Category:       kern
>Synopsis:       [sound] fm801 kernel module does not work for Terratec 512i digital
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sound
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 26 22:00:38 GMT 2004
>Closed-Date:    Thu Jun 23 20:04:46 GMT 2005
>Last-Modified:  Thu Jun 23 20:04:46 GMT 2005
>Originator:     Tim Peeters
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD tim.lan 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Mon Jul 26 15:26:25 CEST 2004 root@tim.lan:/usr/obj/usr/src/sys/TIM001 i386

AMD Athlon Processor, 1 GHz.
FreeBSD 5.2-CURRENT, but I've also experienced this problem in the past with 4.x

>Description:
 	fm801 kernel module does not work for Terratec 512i digital soundcard
 	even though it has an fm801 chipset.
 	The module can be loaded and the kernel sees the hardware, but
 	it seems impossible to get the driver to use the hardware.

>How-To-Repeat:
 	Try to produce sound using a Terratec 512i digital soundcard.
>Fix:
 	In /usr/src/sys/dev/sounc/pci/fm801.c: replace the line
 	if (bus_space_read(st, sh, 0x28) == 0) {
 	It is assumed that if something different than 0 is returned
 	is only a radio tuner with no sound capabilities. This is not
 	the case here.
 	So replacing the check by eg. { will fix the problem.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->sound 
Responsible-Changed-By: simon 
Responsible-Changed-When: Tue Jul 27 21:40:39 GMT 2004 
Responsible-Changed-Why:  
Over to the sound people and change category since this is not i386 
specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69633 
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Thu Jun 23 20:03:16 GMT 2005 
State-Changed-Why:  
Duplicate of kern/64118, but closing it in favor of  
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/82107 
which I've sent another proposed patch to.  Please test and respond! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69633 
>Unformatted:
