Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Aug 2005 09:50:29 +0000 (GMT)
From:      "A. Wik" <aw@aw.gs>
To:        freebsd-hackers@freebsd.org
Subject:   SB 3DSE ioctl() patch
Message-ID:  <20050806084910.N13128@dynamite.narpes.com>

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

(This was originally addressed to Cameron Grant, the author
of the files I modified.  Unfortunately, my message bounced,
and shortly thereafter, I learned that he passed away earlier
this year [1].  I hope this forum is an appropriate alternative.)

[1] http://lists.nycbug.org/pipermail/talk/2005-March/005014.html

  ****

Hello,

I just installed a Soundblaster 16 (DSP v4.16) in my FreeBSD
machine, and found no way to enable the 3D stereo enhancement
feature that the Linux, DOS and Win9x drivers support.  So I
looked at the Linux driver sources and decided to add a
compatible mixer ioctl() to the FreeBSD driver.  That turned
out to be a lot more complicated than expected, because there
was no existing interface for this kind of hardware-specific
ioctls.

After extensive reverse-engineering of the FreeBSD driver
model (studying the UART and TTY drivers was particularly
helpful), and adding a method to the mixer interface, I
managed to implement the feature, at least to the extent
that it works for me.

Perhaps you could take a look at the patch to verify that
it doesn't break anything, and consider adding it to the
mainstream kernel?  The patch and a utility for testing
it is available from my FTP site:

ftp://vax.narpes.com/users/aw/freebsd-5.3-aw-3dse.diff
ftp://vax.narpes.com/users/aw/s3dioctl.c

Regards,
A. Wik




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