Go to file
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
bin The '-l' option *always* prints a total, not only if output is to a 2005-01-09 16:33:32 +00:00
contrib/sys Finalize import of the Atheros HAL 0.9.9.13, bringing ath(4) 2004-07-28 08:57:40 +00:00
crypto don't throw const away for no reason. 2004-12-11 06:58:20 +00:00
dist include <isc/net.h> so that -UWANT_IPV6 compiles correctly. 2005-01-10 02:14:46 +00:00
distrib Add to /rescue: scp ssh slogin 2005-01-10 10:47:36 +00:00
doc more stuff in /rescue 2005-01-10 12:30:21 +00:00
etc Backout last change. I'm not sure what the correct fix is but the last 2005-01-10 11:23:53 +00:00
games Convert from libc/threadlib-style mutex protection to pthread style. 2004-12-14 00:21:01 +00:00
gnu Only compile in IPv6 support if ${USE_INET6} != "no" 2005-01-10 02:58:58 +00:00
include Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
lib Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
libexec Fix thinko with last commit. 2005-01-10 19:01:09 +00:00
regress Only compile in IPv6 support if ${USE_INET6} != "no" 2005-01-10 02:58:58 +00:00
rescue Special-case the srcdirs for scp & ssh. 2005-01-10 13:04:04 +00:00
sbin support RESCUEDIR (for mount_nfs and umount) 2005-01-10 20:53:48 +00:00
share Drop trailing whitespace. 2005-01-10 21:43:08 +00:00
sys merge kent-audio1 branch, which introduces audio filter pipeline to the MI 2005-01-10 22:01:36 +00:00
tools Add some quotes to prevent a syntax error. 2005-01-09 03:48:30 +00:00
usr.bin Restore su.c to version 1.58, plus minor prototyping. Split pam 2005-01-10 03:11:50 +00:00
usr.sbin Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
x11 Remove some redundant assignments. 2005-01-09 21:45:53 +00:00
build.sh Initial import of iyonix port. 2004-10-13 23:28:34 +00:00
BUILDING Fix some typo's/bad wording as highlighted in PR#27219 2004-10-12 04:07:09 +00:00
Makefile correct the comment describing the build order 2005-01-01 10:32:39 +00:00
Makefile.inc don't set KERNSRCDIR here; pull in <bsd.kernobj.mk> if you need it 2002-04-10 14:53:43 +00:00
UPDATING Mention /etc/pam.d requirement. 2005-01-09 07:31:31 +00:00