History log of /src/sys/dev/isa/ad1848var.h |
Revision | | Date | Author | Comments |
1.45 |
| 08-May-2019 |
isaki | Merge isaki-audio2 branch, the overhaul of audio subsystem. - Interrupt-oriented system rather than thread-oriented. - Improve stability, quality and performance. - Split playback and record cleanly. Improve halfduplex support. - Many bugs are fixed including deadlocks, resource leaks, abuses, etc. - Simplify audio filter mechanism. The encoding/channels/frequency conversions are completely handled in the upper layer. So the hard- ware driver only converts its hardware encoding (if necessary). - audio_hw_if changes: - Obsoletes query_encoding and add query_format instead. - Obsoletes set_params and add set_format instead. - Remove drain, setfd, mappage. - The call sequences are changed. - ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted. - ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced. - cleanup config attributes: au*conv and mulaw. - All hardware drivers should follow it (I've done as much as possible).
Some file paths are changed: - dev/audio.c -> dev/audio/audio.c (rewritten) - dev/audiovar.h -> dev/audio/audiovar.h - dev/audio_dai.h -> dev/audio/audio_dai.h - dev/audio_if.h -> dev/audio/audio_if.h - dev/audiobell.c -> dev/audio/audiobell.c - dev/audiobellvar.h -> dev/audio/audiobellvar.h - dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
|
1.44 |
| 23-Nov-2011 |
jmcneill | branches: 1.44.50; 1.44.54; Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From the original ad-audiomp branch notes:
Add MP locking to the audio drivers.
Making the audio 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.
|
1.43 |
| 28-Apr-2008 |
martin | branches: 1.43.12; 1.43.34; 1.43.36; Remove clause 3 and 4 from TNF licenses
|
1.42 |
| 11-Dec-2005 |
christos | branches: 1.42.70; 1.42.72; 1.42.74; merge ktrace-lwp.
|
1.41 |
| 28-Jun-2005 |
wiz | Update comment.
|
1.40 |
| 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.39 |
| 13-Jan-2005 |
kent | branches: 1.39.2; 1.39.4; ansify and KNF
|
1.38 |
| 10-Jan-2005 |
kent | 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
|
1.37 |
| 03-May-2003 |
wiz | branches: 1.37.2; 1.37.6; DMA, not dma nor Dma.
|
1.36 |
| 01-Feb-2003 |
thorpej | Add extensible malloc types, adapted from FreeBSD. This turns malloc types into a structure, a pointer to which is passed around, instead of an int constant. Allow the limit to be adjusted when the malloc type is defined, or with a function call, as suggested by Jonathan Stone.
|
1.35 |
| 18-Dec-2000 |
thorpej | Use separate interrupt handlers for play and record the chip has support for it and we're configured for separate play and record DRQs. This makes full-duplex audio work on the Windows Sound System (found in many Alpha systems).
Submitted by Juergen Weiss <weiss@uni-mainz.de> in kern/11178.
|
1.34 |
| 06-Dec-2000 |
matt | Un __P'ed.
|
1.33 |
| 26-Jun-2000 |
simonb | Change the kernel mmap interface so that the offset to map is an "off_t" and the return value is a "paddr_t" to allow mappings at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which only changed the offset to a "vm_offset_t".
Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
|
1.32 |
| 07-Feb-2000 |
thorpej | branches: 1.32.4; Add a new function call to the ISA DMA API: isa_dmamaxsize(), which returns the maximum transfer size for the specified DMA channel. Make all clients of ISA DMA use this call to determine their maximum transfer size.
|
1.31 |
| 05-Oct-1999 |
itohy | branches: 1.31.2; Add power control hooks.
|
1.30 |
| 22-Mar-1999 |
mycroft | Nuke sc_iooffs from orbit. This is exactly what bus_space_subregion() is for.
|
1.29 |
| 19-Feb-1999 |
mycroft | Kill vestiges of isa_establish().
|
1.28 |
| 18-Feb-1999 |
mycroft | Add separate halt_input and halt_output methods in ad1848_isa, which disable the DMA channel.
|
1.27 |
| 17-Feb-1999 |
mycroft | Use the trigger interface, and clean up a pile of cruft.
|
1.26 |
| 17-Feb-1999 |
mycroft | Pass the direction to the allocm and round_buffersize methods. Some drivers need this to properly allocate DMAable memory.
|
1.25 |
| 25-Aug-1998 |
pk | Split the AD1848 driver into MI (dev/ic/ad1848.c) and ISA parts.
|
1.24 |
| 09-Jun-1998 |
thorpej | Adjust for changes to the ISA DMA API.
|
1.23 |
| 20-May-1998 |
augustss | Add a Yamaha OPL3-SA3 driver and clean up all AD1848 drivers. Submitted by Constantine Sapuntzakis <csapuntz@reeducation-labor.lcs.mit.edu> and originally written for OpenBSD.
|
1.22 |
| 19-Jan-1998 |
augustss | Split out the ISA part of the WSS driver to allow PnP attachment. Make the AD1848 driver a little more readable with some macros.
|
1.21 |
| 19-Oct-1997 |
augustss | Make the audio API (almost) SunOS compatible. The changes is to allow some limited mixer manipulation through the audio device (instead of the mixer device). This rendered 4 methods in audio_hw_if unused so garbage collect these.
|
1.20 |
| 24-Aug-1997 |
augustss | - Change audio_hw_if a little: set_param now sets the play and record modes at the same time instead by using two different calls. This enables it to check more easily if the combined mode is all right. - Improve the error checking in audio.c. - Add a new audio property, AUDIO_PROP_INDEPENDENT, show if the play and record settings are independent. - Fix some buglets in audio.c.
|
1.19 |
| 20-Aug-1997 |
augustss | Convert WSS driver to use non-broken indirect configuration.
|
1.18 |
| 31-Jul-1997 |
augustss | Audio changes: - Change the way attach and open works to allow multiple audio devices. - Split the mulaw.c file into two to avoid dragging in mulaw convertsion when they are not needed. Add 16 bit alaw/mulaw tables. - Change the way audio properties are gotten. - Recognize more versions os SoundBlaster.
|
1.17 |
| 28-Jul-1997 |
augustss | branches: 1.17.2; Audio: Remove the machine dependant code I put in audio.c by mistake. This adds another method to audio_hw_if. Also remove a field from audio_hw_if that was not read-only.
|
1.16 |
| 27-Jul-1997 |
augustss | Changes to the sudio system: - It is now possible to handle devices that want "looping" DMA, e.g. the SoundBlaster correctly. The WSS and SB drivers use this. To do this several new methods were introduced in audio_hw_if. - Different silence handling (forced by previous change). - The audio driver can now be mmap()-ed, but due to problems in the VM system only for writing for now. - The OSS (Linux) audio emulation takes advantage of some of the new features.
|
1.15 |
| 06-Jun-1997 |
thorpej | Pull thorpej-bus-dma branch into mainline.
|
1.14 |
| 09-May-1997 |
augustss | branches: 1.14.2; Change the interface between high and lowlevel audio drivers again: Set the encoding parameters slightly differently. Remove the SW encoding/decodinf functions from this interface and move them to the audio_parameter struct; this is both more efficient and flexible.
|
1.13 |
| 29-Apr-1997 |
augustss | Change the interface between the high and low level audio drivers so that all audio encoding parameters are set at once. This simplifies the interface and make error checking easier.
|
1.12 |
| 05-Apr-1997 |
augustss | Busify the WSS driver.
|
1.11 |
| 20-Mar-1997 |
mycroft | Combine set_encoding and set_precision into a single set_format interface.
|
1.10 |
| 19-Mar-1997 |
mycroft | ad1848_commit_settings(): Don't set the speed/format register if the parameters haven't changed. From PR 3360, by Jason Baker.
Also, clean up several overly-complex interfaces.
|
1.9 |
| 13-Mar-1997 |
mycroft | Don't share the silence block between devices. Make silence filling work for more encodings, and make it device-independent. From Lennart Augustsson, in PR kern/3305.
|
1.8 |
| 29-Apr-1996 |
christos | - prototype fixes
|
1.7 |
| 10-Nov-1995 |
mycroft | Convert IRQ, DRQ, and port numbers to int.
|
1.6 |
| 07-Jul-1995 |
brezak | add support for cs4231
|
1.5 |
| 08-May-1995 |
brezak | Remove strings
|
1.4 |
| 17-Apr-1995 |
cgd | clean up several ISA device interfaces: autoconfiguration, header inclusion, and interrupt configuration. more work still needs to be done, but it's getting better...
|
1.3 |
| 28-Mar-1995 |
jtc | KERNEL -> _KERNEL
|
1.2 |
| 25-Mar-1995 |
mycroft | Use void* rather than caddr_t in many places.
|
1.1 |
| 21-Feb-1995 |
brezak | Driver for ad1848 codec
|
1.14.2.1 |
| 13-May-1997 |
thorpej | Adapt to new software interface to the on-board ISA DMA controller.
|
1.17.2.2 |
| 27-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.17.2.1 |
| 23-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.31.2.3 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.31.2.2 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.31.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.32.4.2 |
| 26-Dec-2000 |
jhawk | Pull up revision 1.35 (requested by thorpej): Support full-duplex audio on 1848 wss devices by using seperate interrupt handlers for play and record. Fix from Juergen Weiss <weiss@uni-mainz.de> by way of PR#11178.
|
1.32.4.1 |
| 30-Jun-2000 |
simonb | Pull up mmap paddr_t/off_t changes from trunk.
|
1.37.6.1 |
| 03-Jan-2005 |
kent | * adopt the filter pipeline framework
* ic/ad1848.c, isa/ess.c, isa/sbdsp.c remove direct call of set_params() for the default encoding. It should be called by the MI audio framework.
|
1.37.2.3 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.37.2.2 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.37.2.1 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.39.4.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.39.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.42.74.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.42.72.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.42.70.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.43.36.1 |
| 19-Nov-2011 |
jmcneill | port ad-audiomp2 branch changes to 5.99.56 todo: - port ad-audiomp2 pcppi changes - these drivers need to be fixed: - emuxki - gcscaudio - hdafg - uaudio - umidi - MD audio drivers
|
1.43.34.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.43.12.1 |
| 11-Dec-2008 |
ad | Checkpoint work in progress.
|
1.44.54.1 |
| 04-May-2019 |
isaki | Remove obsoleted methods in audio_hw_if. - drain: is handled in audio upper layer now. - mappage: is handled in audio upper layer now. - setfd: no one uses and it's meaningless now.
|
1.44.50.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|