Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2005 00:27:59 GMT
From:      Harry Coin <harrycoin@qconline.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/83697: [PATCH] support, docs added for full-duplex, input mixer CS4236B mss driver
Message-ID:  <200507190027.j6J0Rxpn029131@www.freebsd.org>
Resent-Message-ID: <200507190030.j6J0ULLt015309@freefall.freebsd.org>

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

>Number:         83697
>Category:       i386
>Synopsis:       [PATCH] support, docs added for full-duplex, input mixer CS4236B mss driver
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 19 00:30:21 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507190027.j6J0Rxpn029131>