freebsd-nq/sys/dev
Ariff Abdullah 90da2b2859 Sound Mega-commit. Expect further cleanup until code freeze.
For a slightly thorough explaination, please refer to
	[1] http://people.freebsd.org/~ariff/SOUND_4.TXT.html .

Summary of changes includes:

1 Volume Per-Channel (vpc).  Provides private / standalone volume control
  unique per-stream pcm channel without touching master volume / pcm.
  Applications can directly use SNDCTL_DSP_[GET|SET][PLAY|REC]VOL, or for
  backwards compatibility, SOUND_MIXER_PCM through the opened dsp device
  instead of /dev/mixer.  Special "bypass" mode is enabled through
  /dev/mixer which will automatically detect if the adjustment is made
  through /dev/mixer and forward its request to this private volume
  controller.  Changes to this volume object will not interfere with
  other channels.

  Requirements:
    - SNDCTL_DSP_[GET|SET][PLAY|REC]_VOL are newer ioctls (OSSv4) which
      require specific application modifications (preferred).
    - No modifications required for using bypass mode, so applications
      like mplayer or xmms should work out of the box.

  Kernel hints:
    - hint.pcm.%d.vpc (0 = disable vpc).

  Kernel sysctls:
    - hw.snd.vpc_mixer_bypass (default: 1).  Enable or disable /dev/mixer
      bypass mode.
    - hw.snd.vpc_autoreset (default: 1).  By default, closing/opening
      /dev/dsp will reset the volume back to 0 db gain/attenuation.
      Setting this to 0 will preserve its settings across device
      closing/opening.
    - hw.snd.vpc_reset (default: 0).  Panic/reset button to reset all
      volume settings back to 0 db.
    - hw.snd.vpc_0db (default: 45).  0 db relative to linear mixer value.

2 High quality fixed-point Bandlimited SINC sampling rate converter,
  based on Julius O'Smith's Digital Audio Resampling -
  http://ccrma.stanford.edu/~jos/resample/.  It includes a filter design
  script written in awk (the clumsiest joke I've ever written)
    - 100% 32bit fixed-point, 64bit accumulator.
    - Possibly among the fastest (if not fastest) of its kind.
    - Resampling quality is tunable, either runtime or during kernel
      compilation (FEEDER_RATE_PRESETS).
    - Quality can be further customized during kernel compilation by
      defining FEEDER_RATE_PRESETS in /etc/make.conf.

  Kernel sysctls:
    - hw.snd.feeder_rate_quality.
      0 - Zero-order Hold (ZOH).  Fastest, bad quality.
      1 - Linear Interpolation (LINEAR).  Slightly slower than ZOH,
          better quality but still does not eliminate aliasing.
      2 - (and above) - Sinc Interpolation(SINC).  Best quality.  SINC
          quality always start from 2 and above.

  Rough quality comparisons:
    - http://people.freebsd.org/~ariff/z_comparison/

3 Bit-perfect mode.  Bypasses all feeder/dsp effects.  Pure sound will be
  directly fed into the hardware.

4 Parametric (compile time) Software Equalizer (Bass/Treble mixer). Can
  be customized by defining FEEDER_EQ_PRESETS in /etc/make.conf.

5 Transparent/Adaptive Virtual Channel. Now you don't have to disable
  vchans in order to make digital format pass through.  It also makes
  vchans more dynamic by choosing a better format/rate among all the
  concurrent streams, which means that dev.pcm.X.play.vchanformat/rate
  becomes sort of optional.

6 Exclusive Stream, with special open() mode O_EXCL.  This will "mute"
  other concurrent vchan streams and only allow a single channel with
  O_EXCL set to keep producing sound.

Other Changes:
    * most feeder_* stuffs are compilable in userland. Let's not
      speculate whether we should go all out for it (save that for
      FreeBSD 16.0-RELEASE).
    * kobj signature fixups, thanks to Andriy Gapon <avg@freebsd.org>
    * pull out channel mixing logic out of vchan.c and create its own
      feeder_mixer for world justice.
    * various refactoring here and there, for good or bad.
    * activation of few more OSSv4 ioctls() (see [1] above).
    * opt_snd.h for possible compile time configuration:
      (mostly for debugging purposes, don't try these at home)
        SND_DEBUG
        SND_DIAGNOSTIC
        SND_FEEDER_MULTIFORMAT
        SND_FEEDER_FULL_MULTIFORMAT
        SND_FEEDER_RATE_HP
        SND_PCM_64
        SND_OLDSTEREO

Manual page updates are on the way.

Tested by:	joel, Olivier SMEDTS <olivier at gid0 d org>, too many
          	unsung / unnamed heroes.
2009-06-07 19:12:08 +00:00
..
aac We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
acpi_support Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpica Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
adb Use si_drv1 to hold the softc for the adb_mouse character device instead of 2009-01-29 16:18:49 +00:00
adlink
advansys
ae detach doesn't return an unsinged int, but returns an int. 2009-02-04 20:35:22 +00:00
age pci(4) handles PCIM_CMD_INTxDIS so there is no need to poke this 2009-05-20 03:33:27 +00:00
agp Use si_drv1 instead of dev2unit() inside agp(4). 2009-04-14 13:11:34 +00:00
aha Pass bus_get_dma_tag() into the first argument of bus_dma_create_tag() 2008-10-07 23:55:32 +00:00
ahb
aic Snip redundant assignment. 2009-05-13 22:31:25 +00:00
aic7xxx Re-enable WARNS=6 after my universe test. 2009-06-02 17:27:54 +00:00
ale Now pci(4) handles PCIM_CMD_INTxDIS so there is no need to poke 2009-03-05 00:04:32 +00:00
amd
amdtemp Fix comment explaining where this driver came from. 2009-03-13 16:43:31 +00:00
amr We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
an Shutdown routine returns int. 2009-02-04 20:39:45 +00:00
arcmsr We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
asmc Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
asr Unmark the ASR Compat IOCTLs as BURN_BRIDGES, per scottl@ 2009-05-09 17:47:42 +00:00
ata MFp4. 2009-06-01 21:42:26 +00:00
ath treat IEEE80211_S_CSA as a "running state"; this fixes 2009-06-03 17:25:19 +00:00
atkbdc Prevent atkbd(4) interrupt handler from calling keyboard callback function 2009-04-17 00:30:56 +00:00
auxio
bce DMA synchronization fixes: 2009-05-18 01:51:52 +00:00
bfe Add a new sysctl node 'dev.bfe.N.stats' that shows various MAC 2008-08-22 06:46:55 +00:00
bge Fix return values appropriately. 2009-05-30 17:56:19 +00:00
bktr Unbreak bktr(4). 2009-05-26 12:01:37 +00:00
bm Fix bm_shutdown() KOBJ method to correspond to return int, as it should. 2009-02-04 22:16:27 +00:00
buslogic
bwi In bwi_newstate, only zero the bssid when we stop a STA. And only 2009-06-02 16:48:10 +00:00
cardbus Minorly improved debugging. Use the DEVPRINTF macro and report the 2009-03-13 05:31:27 +00:00
ce Remove debug.ce.mpsafenet: we no longer support running the network 2009-02-15 23:29:13 +00:00
cfe Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
cfi choose the size of the last region for d_stripsize instead of the first; 2009-03-10 22:29:42 +00:00
ciss We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
cm Remove unused ifaddr and ifreq local variables. 2009-02-12 23:55:35 +00:00
cmx Commit cmx(4), a driver for Omnikey CardMan 4040 PCMCIA smartcard readers. 2008-03-06 08:09:45 +00:00
coretemp Introduce cpu_vendor_id and replace a lot of strcmp(cpu_vendor, "..."). 2008-11-26 19:25:13 +00:00
cp Remove debug.cp.mpsafenet: we no longer support running the network 2009-02-15 23:18:29 +00:00
cpuctl Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
cpufreq Attach the cpufreq child devices with specific orders to enforce relative 2008-08-13 16:09:40 +00:00
cs Improve the EEPROM parsing, based on finding a datasheet that describes 2008-07-09 16:47:55 +00:00
ct
ctau Remove debug.ctau.mpsafenet: we no longer support running the network 2009-02-15 23:21:52 +00:00
cx if_cx is currently disconnected from the build due to a dependence on 2009-02-19 00:06:01 +00:00
cxgb Rework socket upcalls to close some races with setup/teardown of upcalls. 2009-06-01 21:17:03 +00:00
cy
dc When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
dcons Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
de tulip_busdma_cleanup: pass correct vaddr (2nd arg) to bus_dmamem_free() 2009-02-09 17:07:29 +00:00
digi Remove unused files from the digi(4) driver. 2009-01-16 14:45:48 +00:00
dpt
drm Don't try to setup interrupts for drivers that don't support them. 2009-04-19 16:54:33 +00:00
e1000 When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
ed ifp->if_softc is managed entirely by the driver. We never set it to 2009-05-13 14:43:26 +00:00
eisa
en Hide an unused variable in case we compile with neither INET nor INET6. 2008-11-06 09:41:31 +00:00
ep Add a missing break in a switch statement. 2009-05-15 21:06:28 +00:00
esp o Move the MODULE_DEPEND() for cam(4) from the esp_sbus.c front-end to 2008-09-08 20:20:44 +00:00
et Don't leak DMA map if not freed. 2008-07-11 18:26:12 +00:00
ex Add preliminary support for the OLICOM OC2231 and OC2232. This is the 2008-08-27 04:11:03 +00:00
exca __LP64__ is what's defined, not _LP64_, according to the manual (and 2009-03-09 13:29:13 +00:00
fatm Use bus_get_dma_tag() so fatm(4) works on platforms requiring it. 2008-09-30 18:52:43 +00:00
fb - Change some softc members to be unsigned where more appropriate. 2009-04-28 20:49:47 +00:00
fdc Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
fe It appears that the TDK LAK CD011 works with fe driver. I don't have 2009-03-25 22:12:07 +00:00
firewire When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
flash - Remove nonexistent header file from includes list 2009-05-13 18:31:28 +00:00
fxp When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
gem - Restore the behavior of enabling the MII buffer for an internal 2008-08-23 15:03:26 +00:00
glxsb Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4). 2008-11-17 07:09:40 +00:00
hatm
hifn shutdown returns an int 2009-02-05 19:37:49 +00:00
hme - Use the revamped code from the gem(4) PCI front-end, which 2008-04-26 14:17:21 +00:00
hptiop Use __packed from cdefs.h 2009-03-25 06:27:56 +00:00
hptmv Use DEVICE_SHUTDOWN(9) mechanism for shutdown handler. 2009-04-09 07:45:23 +00:00
hptrr Fix a mistake made during the import of the driver. Previous versions of 2008-03-08 18:06:48 +00:00
hwpmc - Add support for nehalem/corei7 cpus. This supports all of the core 2009-01-27 07:29:37 +00:00
ic - Cleanup i8251 related defines. 2008-09-07 04:35:04 +00:00
ichsmb - Change ichsmb(4) to follow the format of all the other smbus controllers 2009-02-03 16:14:37 +00:00
ichwd Rename two functions to make their purpose clearer. Add tons of comments. 2009-03-19 12:39:13 +00:00
ida
ie Use the new bus device_shutdown hook for performing the shutdown action 2008-08-01 21:33:07 +00:00
ieee488 Remove the distinction between device minor and unit numbers. 2008-05-29 12:50:46 +00:00
if_ndis fix setting of ni_txrate 2009-06-02 20:32:13 +00:00
iicbus - Rename ds1672 and ds133x devices to "ds1672_rtc" and "ds133x_rtc" 2009-04-21 22:48:12 +00:00
iir Remove unused VM includes. 2009-06-03 20:25:13 +00:00
io Remove D_NEEDGIANT from io(4). 2008-08-08 13:43:56 +00:00
ipmi Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
ips
ipw Overhaul monitor mode handling: 2009-05-20 20:00:40 +00:00
iscsi/initiator This commit fixes the issue with alias_sctp.c. No 2009-02-14 11:34:57 +00:00
isp Change uses of the struct ccb_hdr timeout_ch missed when isp(4) was 2009-05-10 20:14:19 +00:00
ispfw Make ispfw(4) play nice with individual firmware modules. 2008-11-11 00:14:10 +00:00
iwi rssi/nf data are now dbm, tag them accordingly 2009-05-21 15:30:59 +00:00
iwn validate tx rate(s) in the raw xmit path 2009-05-29 23:41:31 +00:00
ixgb When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
ixgbe Add missing file, sorry bout that :) 2009-04-10 02:45:00 +00:00
jme Add HW MAC counter support for newer JMC250/JMC260 revisions. 2008-12-04 02:16:53 +00:00
joy Use si_drv1 to store joy(4)'s softc. 2009-04-14 11:23:09 +00:00
kbd Move buffer management into kbd and kbdmux drivers. 2009-06-05 15:19:05 +00:00
kbdmux Move buffer management into kbd and kbdmux drivers. 2009-06-05 15:19:05 +00:00
ksyms Remove another d_thread_t use that crept in. 2009-06-01 21:54:22 +00:00
le - Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9) etc 2008-09-24 21:26:46 +00:00
led Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
lge Remove unused variable. 2009-05-12 19:33:36 +00:00
lmc Unbreak build. 2009-05-30 18:39:22 +00:00
malo Overhaul monitor mode handling: 2009-05-20 20:00:40 +00:00
mc146818
mca Change the functions to ANSI in those cases where it breaks promotion 2009-02-24 18:09:31 +00:00
mcd
md Add cpu_flush_dcache() for use after non-DMA based I/O so that a 2009-05-18 18:37:18 +00:00
mem
mfi We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
mge When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
mii Program LED registers for 88E1116/88E1149 PHYs. These PHYs are 2009-06-02 00:30:30 +00:00
mk48txx
mlx Convert mlx(4) and mly(4) to si_drv1 instead of dev2unit(). 2009-04-18 07:36:38 +00:00
mly Convert mlx(4) and mly(4) to si_drv1 instead of dev2unit(). 2009-04-18 07:36:38 +00:00
mmc read_ivar takes a uintptr_t * not a u_char *. 2009-03-12 06:36:44 +00:00
mn Move mn over. One of the last stragglers in sys/pci. There's no 2008-11-02 17:04:54 +00:00
mpt Largely revert the earlier change to use a single CCB for the RAID recovery 2009-05-21 12:36:40 +00:00
mse Make mse(4) use si_drv1, instead of using unit numbers. 2009-04-20 15:15:24 +00:00
msk Add Yukon Extreme device ids, 88E8071 and 88E8072. 2009-06-02 05:08:57 +00:00
mwl driver for Marvell 88W8363 Wireless LAN controller 2009-06-01 18:07:01 +00:00
mxge Buf-ring fixes for mxge 2009-06-02 16:52:33 +00:00
my Release driver lock at the end of the watchdog routine instead of trying to 2009-03-23 17:51:07 +00:00
ncv
nfe When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
nge Unbreak build. 2009-05-30 18:39:22 +00:00
nmdm Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
nsp Change the functions to ANSI in those cases where it breaks promotion 2009-02-24 18:09:31 +00:00
null
nve Two ifnet misuse fixes for if_nve: 2009-04-23 19:29:45 +00:00
nvram - Use an sx lock to serialize writes since they update the checksum. 2008-08-01 20:39:18 +00:00
nxge - bump __FreeBSD version to reflect added buf_ring, memory barriers, 2008-11-22 05:55:56 +00:00
ofw Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
patm Remove unused variable. 2008-11-26 13:44:11 +00:00
pbio Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
pccard Another PC Card that needs the CIS strings for the Surecom EP-427X, 2009-04-24 17:27:45 +00:00
pccbb Revert r190676,190677 2009-04-10 04:08:34 +00:00
pcf - Consolidate module version for the pcf module into just pcf.c instead 2008-08-05 17:39:37 +00:00
pci Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
pcn shutdown returns an int 2009-02-05 19:36:14 +00:00
pdq
powermac_nvram Use si_drv1 instead of dev2unit() in powermac_nvram. 2009-04-14 13:18:39 +00:00
ppbus Change if_output to take a struct route as its fourth argument in order 2009-04-16 20:30:28 +00:00
ppc Added entries for Lava SP-PCI (1 serial + 1 parallel) PCI card. The 2009-02-11 00:08:03 +00:00
pst
puc Add support for the four PUC serial interfaces found on IBM SurePOS 300 2009-06-02 09:58:17 +00:00
quicc Support for Freescale QUad Integrated Communications Controller. 2008-03-03 18:20:17 +00:00
ral validate tx rate(s) in the raw xmit path 2009-05-29 23:41:31 +00:00
random There is rubbish here 2009-05-25 22:50:11 +00:00
rc
re When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
rndtest
rp Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
safe shutdown returns an int 2009-02-05 19:37:49 +00:00
sbni Disable the inline assembly crc32 routine and use the C version instead. 2008-09-10 18:42:19 +00:00
scc Make iclear return int, since that matches all function definitions of it. 2009-02-05 19:32:34 +00:00
scd
sdhci Add support for interruptless kernel dumping. 2009-02-17 19:12:15 +00:00
sec Initial version of the sec(4) driver for the integrated security engine found 2009-06-06 09:37:55 +00:00
sf When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
si Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
siba Use some casting to get the right addresses. This is likely unwise 2008-09-26 05:40:56 +00:00
sio remove now-redunant cardbus attachment. 2009-03-09 13:23:54 +00:00
sis When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
sk Separate multicast filtering of SysKonnect GENESIS and Marvell 2009-05-01 03:24:03 +00:00
smbus Make generic_intr routines match prototype. 2009-03-09 13:30:00 +00:00
smc When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
sn
snc Convert to new style PC Card front end driver. Add support for the 2008-08-07 20:55:20 +00:00
snp Keep this line shorter than 80 columns. 2009-05-13 19:29:50 +00:00
sound Sound Mega-commit. Expect further cleanup until code freeze. 2009-06-07 19:12:08 +00:00
speaker Remove unneeded checks of device unit number from speaker(4). 2009-01-25 09:20:59 +00:00
spibus - Make SPI bus bridge be non-arch dependent by using more generic 2009-05-13 18:42:49 +00:00
ste When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
stg Change the functions to ANSI in those cases where it breaks promotion 2009-02-24 18:09:31 +00:00
stge When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
streams The streams ptm code is pretty awful and likely incorrect. I don't know 2009-02-16 20:12:28 +00:00
sym Use xpt_register_async() in order to remove code duplication. 2008-10-14 20:18:57 +00:00
syscons Restore support for bell pitch/duration. 2009-05-31 19:35:41 +00:00
tdfx Let tdfx(4) use si_drv1 instead of using dev2unit(). 2009-04-14 11:57:26 +00:00
ti Remove some remnant alpha hacks. 2008-04-26 14:13:48 +00:00
tl Fix shutdown prototypes. 2009-02-10 23:17:20 +00:00
trm
tsec When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
twa We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
twe We no longer need to use d_thread_t, migrate to struct thread *. 2009-05-20 17:29:21 +00:00
tx Fix shutdown prototypes. 2009-02-10 23:17:20 +00:00
txp bus_dma(9) conversion and make txp(4) work on all architectures. 2009-03-12 01:14:47 +00:00
uart Last minute TTY API change: remove mutex argument from tty_alloc(). 2009-05-29 06:41:23 +00:00
ubsec Add PCI IDs for the Broadcom 5825 incarnation. 2009-05-07 18:03:47 +00:00
usb Remove duplicate variable setting. 2009-06-04 22:00:48 +00:00
utopia
vge When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
vkbd Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
vr When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00
vx MFp4: Network Adapter is redundant. 2008-08-25 05:20:17 +00:00
watchdog
wb Move wb driver from sys/pci to sys/dev/wb. 2008-08-14 21:26:29 +00:00
wds
wi force type match 2009-05-21 04:00:31 +00:00
wl
wpi Overhaul monitor mode handling: 2009-05-20 20:00:40 +00:00
xe Style(9) xe(4). The MD5 sums are different, but comparing the dissassemblies 2008-06-04 20:26:57 +00:00
xen Fix compilation when compiled w/out WITNESS. 2009-06-07 05:52:22 +00:00
xl When user_frac in the polling subsystem is low it is going to busy the 2009-05-30 15:14:44 +00:00