NetBSD/sys/dev
kent 23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
..
acpi Add ACPI joy(4) attachment, based on lpt_acpi.c by jmcneill@, 2004-12-02 14:33:31 +00:00
apm
arcbios uint32_t -> unsigned long, per the differences between 32- and 64-bit ARCS. 2004-10-02 09:53:27 +00:00
ata Move ata_dmaerr() so that it's called only when there really has been an error 2004-12-08 18:49:52 +00:00
bi Include the <sys/bufq.h> header to allow these to compile again. 2004-10-31 12:52:55 +00:00
bluetooth
cardbus - Use ether_ioctl(). 2004-12-26 07:27:41 +00:00
dec
dkwedge Make this compile again. 2005-01-01 19:29:59 +00:00
dmover Correct a typo: it's fnullop_kqfilter and not fnullop_kqueue. 2004-12-05 22:42:27 +00:00
ebus merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
eisa Move a comment to indicate the true "end of hardware supported fields". 2004-12-07 19:14:57 +00:00
gpib move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
hpc Fix comments regarding configration bounaries 2004-12-12 21:03:06 +00:00
i2c Check and clear the HT bit in strtc_clock_read(), not just strtc_clock_write() 2004-11-24 14:46:18 +00:00
i2o When adding/deleting multicast addresses, only whack the address 2004-10-30 18:08:34 +00:00
ic merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
ieee1394 a round of autoconf cleanup: 2004-09-13 12:55:47 +00:00
ir
isa merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
isapnp Some cosmetics: 2005-01-09 16:59:41 +00:00
marvell Put back a few locators.h includes that are still needed here. Now evbppc 2004-11-26 05:10:31 +00:00
mca fix error printf() 2004-12-29 18:14:12 +00:00
microcode Add binary versions of firmware images, which will be used Soon. 2004-08-01 19:31:46 +00:00
mii Add rgephy driver to sys/dev/mii/files.mii. Supports integrated PHY 2004-12-30 23:03:19 +00:00
mscp Make sure to get the right softc in rriodone. 2005-01-04 19:36:48 +00:00
mvme
news
ofisa one more case: don't use ISACF_* constants internally 2004-09-01 21:30:25 +00:00
ofw Add support for wedges to the OpenFirmware disk driver. 2004-09-25 05:21:03 +00:00
pci merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
pckbport Major re-write of the recently-committed Synaptics Touchpad driver, 2005-01-02 22:37:12 +00:00
pcmcia merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
podulebus a round of autoconf cleanup: 2004-09-13 12:55:47 +00:00
ppbus remove the ppbus_print_child() function which is pointless as used here 2004-09-13 12:49:58 +00:00
qbus use the generated macros in locators.h rather than hard-coded numbers 2004-12-14 02:32:02 +00:00
raidframe The switch() in rf_ContinueReconstructFailedDisk() is never actually 2004-12-12 20:53:15 +00:00
rasops
rcons
sbus merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
scsipi Add command to read the defect data from a direct access device. 2005-01-07 02:08:34 +00:00
smbus
std a round of autoconf cleanup: 2004-09-13 12:55:47 +00:00
sun Go back to filtering out KBD_IDLE events by default. The Xsun shipped with 2004-12-31 14:18:35 +00:00
sysmon Add a software watchdog timer facility. Because this slightly 2005-01-09 22:51:32 +00:00
tc merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
usb merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
vinum Fix warnings of the type: long int format, int arg 2004-11-08 21:30:05 +00:00
vme move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
wscons PR kern/28837: fix undef typo. 2005-01-02 15:43:49 +00:00
wsfont
xmi
DEVNAMES add tslcd 2005-01-08 20:26:28 +00:00
Makefile
auconv.c merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
auconv.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
audio.c merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
audio_if.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
audiobell.c
audiobellvar.h
audiovar.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
aurateconv.c merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
ccd.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
ccdvar.h hide bufq_state from userland. 2004-10-28 06:59:18 +00:00
cgd.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
cgd_crypto.c
cgd_crypto.h Protect against multiple inclusion. 2004-08-23 04:45:18 +00:00
cgdvar.h Protect against multiple inclusion. 2004-08-23 04:45:18 +00:00
clock_subr.c In clock_ymdhms_to_secs(), rather than returning rubbish when presented with 2004-12-29 20:55:57 +00:00
clock_subr.h
clockctl.c
cninit.c
cons.c
cons.h
dksubr.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
dkvar.h
fss.c Move the inclusion of <sys/bufq.h> from fss.c to fssvar.h to make 2004-10-29 15:39:38 +00:00
fssvar.h Move the inclusion of <sys/bufq.h> from fss.c to fssvar.h to make 2004-10-29 15:39:38 +00:00
kloader.c There's no need to pass a proc value when using UIO_SYSSPACE with 2004-09-17 14:11:20 +00:00
kloader.h
kttcp.c
kttcpio.h
ld.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
ldvar.h Add support for wedges to the logical disk driver. 2004-09-25 04:28:08 +00:00
md.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
md.h
md_root.c
midi.c constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
midi_if.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
midisyn.c constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
midisynvar.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
midivar.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
mm.c
mulaw.c merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
mulaw.h merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
nullcons_subr.c
radio.c constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
radio_if.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
radiovar.h constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
rnd.c splvm should be enough to protect rnd sample queue and rnd_mempool 2004-11-29 13:33:37 +00:00
rndpool.c
sequencer.c
sequencervar.h
verified_exec.c
vnd.c move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
vndvar.h