Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Dec 1999 19:05:14 +0100 (CET)
From:      alex@big.endian.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/15257: Patch for sys/dev/sound/isa/sbc.c to detect AWE 64
Message-ID:  <199912041805.TAA00574@cichlids.cichlids.com>

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

>Number:         15257
>Category:       kern
>Synopsis:       Patch to detect AWE 64 PnP for sys/dev/sound/isa/sbc.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec  4 10:10:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Langer
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

latest -current

>Description:

Without this patch my AWE 64 is not detected, it's just an unknown0: card
Problem: Missing vendor_id2 check in sbc.c.

>How-To-Repeat:

Buy a card of the model I have :-)

>Fix:

Apply this patch:


--- sbc.c.old	Sat Dec  4 18:46:07 1999
+++ sbc.c	Sat Dec  4 18:53:36 1999
@@ -136,6 +136,8 @@
 	case 0x45008c0e: /* Creative SB AWE64 (CTL0045) */
 		if (vend_id2 == 0xe4008c0e)
 			s = "Creative SB AWE64 (CTL0045)";
+		else if (vend_id2 == 0xc3008c0e)
+			s = "Creative SB AWE64 (CTL0045)";
 		break;
 #if notdef
 	case 0x01200001: /* Avance Logic */

I won't include the complete output of pnpinfo(8) here, I think it's not needed.
Only the important lines:

Card assigned CSN #1
Vendor ID CTL00c3 (0xc3008c0e), Serial Number 0x1bae3b6c
PnP Version 1.0, Vendor Version 16
Device Description: Creative SB AWE64 PnP
*** Small Vendor Tag Detected

Logical Device ID: CTL0045 0x45008c0e #0
Device Description: Audio
TAG Start DF
Good Configuration

Now I have a:
sbc0: <Creative SB AWE64 (CTL0045)> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
pcm1: <SB PCM Audio> on sbc0
pcm: setmap 50000, ff00; 0xcd8d3000 -> 50000
pcm: setmap 60000, ff00; 0xcd8e3000 -> 60000
unknown0: <Game> at port 0x200-0x207 on isa0
unknown1: <WaveTable> at port 0x620-0x623 on isa0

and it works without problems (just listening to some MP3's while 
creating this PR)

Please commit, I don't want to patch sbc.c everytime myself in future :-)

Alex

>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?199912041805.TAA00574>