From nobody@FreeBSD.org  Tue Jul 19 00:27:59 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8CD5316A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Jul 2005 00:27:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4120943D45
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Jul 2005 00:27:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j6J0RxZp029132
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Jul 2005 00:27:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6J0Rxpn029131;
	Tue, 19 Jul 2005 00:27:59 GMT
	(envelope-from nobody)
Message-Id: <200507190027.j6J0Rxpn029131@www.freebsd.org>
Date: Tue, 19 Jul 2005 00:27:59 GMT
From: Harry Coin <harrycoin@qconline.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] support, docs added for full-duplex, input mixer CS4236B mss driver
X-Send-Pr-Version: www-2.3

>Number:         83697
>Category:       kern
>Synopsis:       [sound] [snd_mss] [patch] support, docs added for full-duplex, input mixer CS4236B mss driver
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 19 00:30:21 GMT 2005
>Closed-Date:    Thu Mar 22 18:40:10 UTC 2012
>Last-Modified:  Thu Mar 22 18:40:10 UTC 2012
>Originator:     Harry Coin
>Release:        5.4
>Organization:
>Environment:
FreeBSD sueofficerm 5.4-RELEASE FreeBSD 5.4-RELEASE #23: Mon Jul 18 13:34:01 CDT 2005     root@server1.quietfountain.com:/usr/obj/usr/src/sys/DISKLESS  i386

>Description:
The provided mss driver fails to provide a working recording path on systems with the CS4236B chip, while output works in a handicapped mode.

Recording was not possible due to mixer device issues, and at any rate setting differing formats or speeds for playback and records was also not possible.

Now it is.

Source and docs at at http://www.n4comm.com/cs4236b/

Please find updates to mss.c, mss.h and the man document cs4236b.4 that fully supports every mode 3 feature of that chip.   It needs to be tested for breakage on other chips, but I was fairly careful.  This enhancement includes the fix of not attaching the non-pnp isa driver to the ACPI bus.  This avoids 'fail to attach 6' messages and pcm4 or higher existing without pcm0, pcm1, etc.

Also, it was written from a sound engineer's perspective, so default mixer settings that yield 0db gain (absent user hints in device.hints) over-ride the defaults in mixer.c  I suggest this change for all future sound devices, nobody knows better than the driver author what the default mixer settings should be for each of the devices.   Also the docs give the db amplification range that maps on to the 0-100 oss scale.

I found two kernel bugs I provided patches for in two other PR's earlier today, but forgot to put 'PATCH' there.   One fixed resource_ kernel environment lookups that wouldn't move off the static kernel hints after the dynamic was initialized,  the other prevents runaway pointers from no-limits kenerel hints setenvs from crashing the OS.

Hope all this helps

Is this the only way to submit more than small changes?  I'm new to all this BSD (but do have 8 bit punched paper tapes hanging in my office...)


Harry

>How-To-Repeat:
      Load mss, try recording anything on a machine with a CS4236 (like nearly all Optiplex gx... series desktops.


>Fix:
      http://www.n4comm.com/cs4236b/
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jul 19 20:37:16 GMT 2005 
Responsible-Changed-Why:  
Driver PRs should generally live in kern rather than i386.  Generally, 
i386/alpha/etc have to do with things that are totally specific to that 
particular architecture. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83697 
Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia 
Responsible-Changed-By: netchild 
Responsible-Changed-When: Sun Nov 26 14:14:43 UTC 2006 
Responsible-Changed-Why:  
Hand over to multimedia. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83697 
State-Changed-From-To: open->feedback 
State-Changed-By: joel 
State-Changed-When: Sat May 19 11:56:50 UTC 2007 
State-Changed-Why:  
Could you please update your code against a recent version of mss.[ch] in 
7-CURRENT and send diffs instead of complete source files?  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83697 

From: Joel Dahl <joel@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/83697: [snd_mss] [patch] support, docs added for
	full-duplex, input mixer CS4236B mss driver
Date: Sat, 19 May 2007 15:40:18 +0200

 Forwarded message from Harry Coin:
 
 ---------------------------------------------------------------------------
 I don't really know about diffs, and due to lack of help in this and an 
 ATAPICAM issue , regretfully, I had to move to linux long ago.   Too bad, 
 the old driver just failed terribly and this new one I wrote works great on 
 every feature of that chip on the Dell's.  I preferred freebsd, maybe next 
 time.
 
 Harry
 ---------------------------------------------------------------------------
 
 
State-Changed-From-To: feedback->suspended 
State-Changed-By: gavin 
State-Changed-When: Mon Feb 4 18:27:46 UTC 2008 
State-Changed-Why:  
Mark this as suspended: The original submitter can no longer offer any 
help, but the code that fixed the problem for him is still available at 
the URL given in the PR.  If somebody else comes along with issues with 
the same hardware, we can look at this again. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83697 

From: Denis <jabberw@mail.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/83697: [snd_mss] [patch] support, docs added for full-duplex, input mixer CS4236B mss driver
Date: Mon, 12 May 2008 00:43:58 +0600

 Please open pr back, I could help testing any patchset on Dell Optiplex GX1
 
 -- 
State-Changed-From-To: suspended->closed 
State-Changed-By: joel 
State-Changed-When: Thu Mar 22 18:38:16 UTC 2012 
State-Changed-Why:  
Close. The code isn't available from the url anymore. 

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