freebsd-skq/sys/dev/sound/pci
netchild b5a0929368 Extend the emu10kx driver. With the words of the author:
---snip---
New features:
1.	Optional multichannel recording (32 channels on Live!, 64 channels
 	on Audigy).

 	All channels are 16bit/48000Hz/mono, format is fixed.
 	Half of them are copied from sound output, another half can be
 	used to record any data from DSP. What should be recorded is
 	hardcoded in DSP code. In this version it records dummy data, but
 	can be used to record all DSP inputs, for example..

 	Because there are no support of more-than-stereo sound streams
 	multichannell stream is presented as one 32(64)*48000 Hz 16bit mono
 	stream.

 	Channel map:

 	SB Live! (4.0/5.1)
 	offset (words)	substream
 	0x00		Front L
 	0x01		Front R
 	0x02		Digital Front L
 	0x03		Digital Front R
 	0x04		Digital Center
 	0x05		Digital Sub
 	0x06		Headphones L
 	0x07		Headphones R
 	0x08		Rear L
 	0x09		Rear R
 	0x0A		ADC (multi-rate recording) L
 	0x0B		ADC (multi-rate recording) R
 	0x0C		unused
 	0x0D		unused
 	0x0E		unused
 	0x0F		unused
 	0x10		Analog Center (Live! 5.1) / dummy (Live! 4.0)
 	0x11		Analog Sub (Live! 5.1) / dummy (Live! 4.0)
 	0x12..-0x1F	dummy

 	Audigy / Audigy 2 / Audigy 2 Value / Audigy 4
 	offset (words)	substream
 	0x00		Digital Front L
 	0x01		Digital Front R
 	0x02		Digital Center
 	0x03		Digital Sub
 	0x04		Digital Side L (7.1 cards) / Headphones L (5.1 cards)
 	0x05		Digital Side R (7.1 cards) / Headphones R (5.1 cards)
 	0x06		Digital Rear L
 	0x07		Digital Rear R
 	0x08		Front L
 	0x09		Front R
 	0x0A		Center
 	0x0B		Sub
 	0x0C		Side L
 	0x0D		Side R
 	0x0E		Rear L
 	0x0F		Rear R
 	0x10		output to AC97 input L (muted)
 	0x11		output to AC97 input R (muted)
 	0x12		unused
 	0x13		unused
 	0x14		unused
 	0x15		unused
 	0x16		ADC (multi-rate recording) L
 	0x17		ADC (multi-rate recording) R
 	0x18		unused
 	0x19		unused
 	0x1A		unused
 	0x1B		unused
 	0x1C		unused
 	0x1D		unused
 	0x1E		unused
 	0x1F		unused
 	0x20..0x3F	dummy

Fixes:
1.	Do not assign negative values to variables used to index emu_cards
 	array. This array was never accessed when index is negative, but
 	Alexander (netchild@) told me that Coverity does not like it.
 	After this change emu_cards[0] should never be used to identify
 	valid sound card.
2.	Fix off-by-one errors in interrupt manager. Add more checks there.
3.	Fixes to sound buffering code now allows driver to use large playback
 	buffers.
4.	Fix memory allocation bug when multichannel recording is not
 	enabled.
5.	Fix interrupt timeout when recording with low bitrate (8kHz).

Hardware:
1.	Add one more known Audigy ZS card to list. Add two cards with
 	PCI IDs betwen old known cards and new one.

Other changes:
1.	Do not use ALL CAPS in messages.

Incomplete code:
1.	Automute S/PDIF when S/PDIF signal is lost.

Tested on i386 only, gcc 3.4.6 & gcc41/gcc42 (syntax only).
---snip---

This commits enables a little bit of debugging output when the driver is
loaded as a module. I did a cross-build test for amd64.

The code has some style issues, this will be addressed later.

The multichannel recording part is some work in progress to allow playing
around with it until the generic sound code is better able to handle
multichannel streams.

This is supposed to fix
CID:		171187
Found by:	Coverity Prevent

Submitted by:	Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
2007-01-06 18:59:35 +00:00
..
hda Fix headphone/speaker automute for Toshiba Satellite Pro U200. 2007-01-04 18:13:04 +00:00
als4000.c Fix recording device selection based on ALS4000 datasheet. 2005-11-07 09:26:17 +00:00
als4000.h
atiixp.c Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes 2006-11-26 12:24:06 +00:00
atiixp.h Various cleanups. Revert DMA alignmnet back to 2 since the original 2006-10-01 13:30:30 +00:00
au88x0.c
au88x0.h
aureal.c
aureal.h
cmi.c Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes 2006-11-26 12:24:06 +00:00
cmireg.h
cs4281.c
cs4281.h
csa.c Fix -Wundef from compiling the amd64 LINT. 2005-12-04 10:06:06 +00:00
csapcm.c A pointer was checked for NULL after dereferencing it. The check is not 2006-02-05 17:33:18 +00:00
csareg.h
csavar.h
ds1-fw.h
ds1.c Remove Giant / busdma_lock_mutex from busdma_tag_create(). 2006-01-18 01:01:37 +00:00
ds1.h
emu10k1.c Use a low probe-priority to ensure that the emu10kx driver has a higher 2006-08-07 23:00:36 +00:00
emu10kx-midi.c Fix a compile time problem on amd64. I'm not sure if the fix is correct 2006-07-16 20:10:08 +00:00
emu10kx-pcm.c Extend the emu10kx driver. With the words of the author: 2007-01-06 18:59:35 +00:00
emu10kx.c Extend the emu10kx driver. With the words of the author: 2007-01-06 18:59:35 +00:00
emu10kx.h Extend the emu10kx driver. With the words of the author: 2007-01-06 18:59:35 +00:00
envy24.c Latest updates for Envy24/24HT. Fix various issues with LOR and panic 2006-12-17 16:06:45 +00:00
envy24.h dd the envy24 driver as is to the tree. It's not connected to the build 2006-06-17 14:36:44 +00:00
envy24ht.c Latest updates for Envy24/24HT. Fix various issues with LOR and panic 2006-12-17 16:06:45 +00:00
envy24ht.h Latest updates for Envy24/24HT. Fix various issues with LOR and panic 2006-12-17 16:06:45 +00:00
es137x.c Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes 2006-11-26 12:24:06 +00:00
es137x.h
fm801.c Fix obvious capabilities (rate) violation. Should be 5500, not 4000. 2006-01-09 06:05:25 +00:00
ich.c Add support for Nvidia Nforce MCP04 AC97 controller. 2006-12-17 13:23:00 +00:00
ich.h
maestro3.c
maestro_reg.h
maestro.c - Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious. 2006-06-18 14:14:41 +00:00
neomagic-coeff.h
neomagic.c
neomagic.h
solo.c Fix a missing unlock operation in interrupt handler. 2006-07-06 10:39:58 +00:00
spicds.c After repo copy from ak452x.[ch]: SPIcds is the I2S SPI audio codec code 2006-09-30 16:53:40 +00:00
spicds.h After repo copy from ak452x.[ch]: SPIcds is the I2S SPI audio codec code 2006-09-30 16:53:40 +00:00
t4dwave.c
t4dwave.h
via82c686.c - Locking improvements. 2005-10-05 20:05:52 +00:00
via82c686.h
via8233.c Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes 2006-11-26 12:24:06 +00:00
via8233.h
vibes.c Remove unused pointer. 2006-01-21 09:05:13 +00:00
vibes.h