Subject: kern/28682: bktr(4): add support for MSP3435G-B6 audio chip
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <srp@tworoads.net>
List: netbsd-bugs
Date: 12/16/2004 18:42:00
>Number:         28682
>Category:       kern
>Synopsis:       bktr(4): add support for MSP3435G-B6 audio chip
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 16 18:42:00 +0000 2004
>Originator:     Scott Presnell
>Release:        NetBSD 2.0
>Organization:
Self
>Environment:

System: NetBSD low.tworoads.net 2.0 NetBSD 2.0 (YUKON) #7: Wed Dec 15 11:07:39 PST 2004 srp@saar.tworoads.net:/usr/src/sys/arch/i386/compile/YUKON i386
Architecture: i386
Machine: i386

>Description:

bktr audio configuration does not recognize MSP3435G-B6 audio chip: some
programs produce audio (xmradio) other do not (fxv).

>How-To-Repeat:

build and execute xmradio, and fxtv.

>Fix:

--- bktr_audio.c.orig	2004-12-16 10:28:24.000000000 -0800
+++ bktr_audio.c	2004-12-14 19:14:16.000000000 -0800
@@ -484,7 +484,8 @@
   int stereo;
 
   /* MSP3430G - countries with mono and DBX stereo */
-  if (strncmp("3430G", bktr->msp_version_string, 5) == 0) {
+  if (strncmp("3430G", bktr->msp_version_string, 5) == 0 ||
+      strncmp("3435G", bktr->msp_version_string, 5) == 0){
 
     msp_dpl_write(bktr, bktr->msp_addr, 0x10, 0x0030,0x2003);/* Enable Auto format detection */
     msp_dpl_write(bktr, bktr->msp_addr, 0x10, 0x0020,0x0020);/* Standard Select Reg. = BTSC-Stereo*/