Bug 15257

Summary: Patch to detect AWE 64 PnP for sys/dev/sound/isa/sbc.c
Product: Base System Reporter: alex <alex>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description alex 1999-12-04 18:10:01 UTC
Without this patch my AWE 64 is not detected, it's just an unknown0: card
Problem: Missing vendor_id2 check in sbc.c.

Fix: Apply this patch:




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--GgIBBgah5yBruZuYVmQNKL0K17wygii8QTUuSHBOArC3aMxa
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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 */
How-To-Repeat: 
Buy a card of the model I have :-)
Comment 1 tanimura freebsd_committer freebsd_triage 1999-12-05 04:35:15 UTC
State Changed
From-To: open->closed

sbc driver now calls ISA_PNP_PROBE(), which matches only the logical ID.