History log of /src/sys/dev/isa/ad1848_isa.c |
Revision | | Date | Author | Comments |
1.40 |
| 08-Jun-2019 |
isaki | Clean get_props(). - Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly. This eliminates need for audio.c to take care of such (old) drivers which don't return both of PLAYBACK and CAPTURE. - All get_props() doesn't need to return AUDIO_PROP_MMAP. It is handled in the audio layer now.
|
1.39 |
| 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.38 |
| 23-Nov-2011 |
jmcneill | branches: 1.38.50; 1.38.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.37 |
| 02-Jun-2011 |
nonaka | branches: 1.37.2; 1.37.4; fix compile failure.
|
1.36 |
| 28-Apr-2008 |
martin | branches: 1.36.12; 1.36.22; 1.36.28; 1.36.32; Remove clause 3 and 4 from TNF licenses
|
1.35 |
| 28-Apr-2008 |
garbled | Minor fixes to some of these files: Add recognition for the CS4232C revision chip. (0xa2) Make ic/ad1848.c compile with AUDIO_DEBUG Add a needed machine/bus.h include to ic/cs4231.c Add a few additional register defines to ic/cs4231reg.h
|
1.34 |
| 08-Apr-2008 |
cegger | branches: 1.34.2; 1.34.4; use aprint_*_dev and device_xname
|
1.33 |
| 19-Oct-2007 |
ad | branches: 1.33.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.32 |
| 16-Nov-2006 |
christos | branches: 1.32.8; 1.32.22; 1.32.24; 1.32.28; __unused removal on arguments; approved by core.
|
1.31 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.30 |
| 11-Dec-2005 |
christos | branches: 1.30.20; 1.30.22; merge ktrace-lwp.
|
1.29 |
| 27-Feb-2005 |
perry | branches: 1.29.4; nuke trailing whitespace
|
1.28 |
| 13-Jan-2005 |
kent | branches: 1.28.2; 1.28.4; ansify and KNF
|
1.27 |
| 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.26 |
| 09-Jul-2004 |
mycroft | branches: 1.26.2; Free the DMA channels as the last step.
|
1.25 |
| 09-Jul-2004 |
mycroft | Clean up. Attempt to make these safer against stray interrupts.
|
1.24 |
| 09-Jul-2004 |
mycroft | There's no need to halt in the close routine -- just clean up the ISA resources.
|
1.23 |
| 09-May-2003 |
fvdl | branches: 1.23.2; A few ISA sound drivers like to share dma channels, and hence deferred isa_dmamap_create() calls to their open/close entrypoints. This worked with some luck, but broke on i386 when _bus_dmamap_create started to allocate bounce buffers upfront, since memory below 16M may well not be available when the sound devices is opened for the Nth time.
To fix this, create a new simple interface, isa_drq_alloc/isa_drq_free, wrappers around already existing bitmask macros. These are expected to be used before an isa_dmamap_create call, and after an isa_dmamap_destroy call, respectively. For the sb and ad1848 drivers, they're deferred until open/close.
All isa_dmamap_create calls can now use BUS_DMA_ALLOCNOW and be done at attach time.
|
1.22 |
| 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.21 |
| 06-Mar-2002 |
itohy | Fix ADPCM playback/recording.
|
1.20 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.19 |
| 04-Nov-2001 |
itohy | AD1845 on my AlphaStation 255 doesn't match the AD1845 doc. Try to detect AD1845 (unfortunately this is not always correct) and work around the problems.
|
1.18 |
| 20-Dec-2000 |
thorpej | branches: 1.18.2; 1.18.4; 1.18.8; Fix a debugging clause missed when fixing full-duplex support. Noted by Wolfgang Rupprecht.
|
1.17 |
| 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.16 |
| 28-Jun-2000 |
mrg | remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.15 |
| 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.14 |
| 07-Feb-2000 |
thorpej | branches: 1.14.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.13 |
| 05-Oct-1999 |
itohy | branches: 1.13.2; Add power control hooks. Make the wave output mute while playback is inactive. This significantly reduces noises while preparing playback, especially by mpg123.
|
1.12 |
| 06-Sep-1999 |
rh | Add mode 3 support for newer CS423X chips. Modify probe to correctly distinguish between CS4236, CS4236B, and CS4237B.
|
1.11 |
| 22-Mar-1999 |
mycroft | Create DMA maps at open time.
|
1.10 |
| 22-Mar-1999 |
mycroft | Nuke sc_iooffs from orbit. This is exactly what bus_space_subregion() is for.
|
1.9 |
| 22-Mar-1999 |
mycroft | Adjust the probe routine to work on chips where the mic preamp bit is shared between register I0 and I1.
|
1.8 |
| 22-Feb-1999 |
mycroft | Use DMAMODE_LOOPDEMAND. Tested on a CS4231 in a WSS clone.
|
1.7 |
| 18-Feb-1999 |
mycroft | Add separate halt_input and halt_output methods in ad1848_isa, which disable the DMA channel.
|
1.6 |
| 17-Feb-1999 |
mycroft | Use the trigger interface, and clean up a pile of cruft.
|
1.5 |
| 17-Feb-1999 |
mycroft | Pass the direction to the allocm and round_buffersize methods. Some drivers need this to properly allocate DMAable memory.
|
1.4 |
| 26-Nov-1998 |
hannken | Add support for `AdLib NSC 16 PNP' as wss, joy. Record source selection needs work.
|
1.3 |
| 06-Sep-1998 |
pk | Debug output updates (Ezra Story; PR#6108).
|
1.2 |
| 29-Aug-1998 |
jtk | make AUDIO_DEBUG work again
|
1.1 |
| 25-Aug-1998 |
pk | Split the AD1848 driver into MI (dev/ic/ad1848.c) and ISA parts.
|
1.13.2.2 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.13.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.14.4.4 |
| 27-Mar-2002 |
he | Pull up revisions 1.16,1.19-1.21 (requested by itohy): Several changes to wss-compatible audio devices: o Fix ADPCM playback/recording o Add explicit support for OPL3-SA2 (YMF711), fixes PR#14819 o Add AD1845 support o other minor bugfixes and cleanups
|
1.14.4.3 |
| 26-Feb-2001 |
he | Pull up revision 1.18 (requested by jtk): Make this compile with AUDIO_DEBUG turned on.
|
1.14.4.2 |
| 26-Dec-2000 |
jhawk | Pull up revision 1.17 (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.14.4.1 |
| 30-Jun-2000 |
simonb | Pull up mmap paddr_t/off_t changes from trunk.
|
1.18.8.1 |
| 12-Nov-2001 |
thorpej | Sync the thorpej-mips-cache branch with -current.
|
1.18.4.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.18.4.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.18.2.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.18.2.1 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.23.2.5 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.23.2.4 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.23.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.23.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.23.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.26.2.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.28.4.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.28.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.29.4.1 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.30.22.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.30.22.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.30.20.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.32.28.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.32.24.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.32.22.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.32.8.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.33.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.34.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.34.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.36.32.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.36.28.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.36.22.1 |
| 12-Jun-2011 |
rmind | sync with head
|
1.36.12.2 |
| 12-Dec-2008 |
ad | Checkpoint work in progress.
|
1.36.12.1 |
| 11-Dec-2008 |
ad | Checkpoint work in progress.
|
1.37.4.2 |
| 22-Nov-2011 |
jakllsch | don't attempt to obtain the intr mutex again, only KASSERT we own it already
|
1.37.4.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.37.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.38.54.3 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
1.38.54.2 |
| 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.38.54.1 |
| 03-May-2019 |
isaki | Remove dev/auconv.[ch]. Now it is handled in dev/audio/audio.c and dev/audio/linear.c. Remove dev/mulaw.h. It already have been just a link to dev/audio/mulaw.h in this branch.
|
1.38.50.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|