summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/rum
AgeCommit message (Expand)Author
2006-10-31Add rum(4) for newer USB Ralink devices. Obtained from OpenBSD.joerg
drivers MP safe is necessary before efforts can be made to make the VM system MP safe. The are two locks per device instance, an ISR lock and a character device lock. The ISR lock replaces calls to splaudio()/splx(), and will be held across calls to device methods which were called at splaudio() before (e.g. trigger_output). The character device lock is held across calls to nearly all of the methods, excluding some only used for initialization, e.g. get_locks. Welcome to 5.99.57. 2008-04-28Remove clause 3 and 4 from TNF licensesmartin 2006-11-16__unused removal on arguments; approved by core.christos 2006-10-12- sprinkle __unused on function decls.christos - fix a couple of unused bugs - no more -Wno-unused for i386 2005-12-11merge ktrace-lwp.christos 2005-05-31add missing const.christos 2005-05-30sprinkle more constchristos 2005-03-12Fix a problem that the resultant stream contains many garbage data atkent stereo->mono conversion. PR#29664 2005-03-12make this compile with AURATECONV_DEBUGkent 2005-01-10merge kent-audio1 branch, which introduces audio filter pipeline to the MIkent 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 2003-12-31Forcibly undefining debugging macros is rude, so don't do it.bjh21 2002-11-07Clean up token pasting so that this works with GCC 3.3's CPP.thorpej 2002-11-02/*CONTCOND*/ while (0)'ed macrosperry 2002-10-13Support for sampling rate conversion against slinear_be 16bit/24bit.kent 2002-03-18Make this file compiles again when AURATECONV > 0.enami 2002-03-17move aurateconv.h into audiovar.h to avoid name clash with the config(8)christos aurateconv.h counter. 2002-03-17aurateconv.c:kent - Simplify the source - Accept any convresions such that sample_rate < hw_sample_rate uaudio.c: - Request the above conversion. This is needed for 4ch-only devices to play monaural/stereo data. 2002-03-17Rename aurateconvproto.h to aurateconv.h.kent 2002-03-09Move sampling rate conversion functions to aurateconv.c.kent Introduce "aurateconv" attribute for audio devices. Add aurateconv to uaudio and auich. (due to kern/15845 and kern/15848)