History log of /src/sys/dev/isa/aria.c |
Revision | | Date | Author | Comments |
1.41 |
| 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.40 |
| 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.39 |
| 16-Mar-2019 |
isaki | branches: 1.39.2; Use C99 style struct initializer to audio_hw_if.
|
1.38 |
| 16-Mar-2019 |
isaki | Swap wrong ordered halt_input and halt_output (since rev1.1). But I guess that it didn't lead a big impact. Because hw_if->close is called immediately after that in most cases.
|
1.37 |
| 27-Oct-2012 |
chs | branches: 1.37.38; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.36 |
| 24-Nov-2011 |
jakllsch | branches: 1.36.8; Make this compile without warnings. (No static is better than inconsistent and partial use of static.)
|
1.35 |
| 24-Nov-2011 |
mrg | put back IPL_AUDIO and splaudio(), at the request of rmind. they are aliases and now we can easily revert audio to IPL_VM if necessary, without having to revert the whole branch.
|
1.34 |
| 23-Nov-2011 |
jmcneill | 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.33 |
| 27-Jul-2010 |
jakllsch | branches: 1.33.8; 1.33.10; Allow aria(4) to compile with AUDIO_DEBUG on LP64.
|
1.32 |
| 27-Oct-2009 |
elric | branches: 1.32.2; 1.32.4; Assign copyright to TNF on these old files.
|
1.31 |
| 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.30 |
| 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.29 |
| 08-Apr-2008 |
cegger | branches: 1.29.4; 1.29.16; 1.29.18; use aprint_*_dev and device_xname
|
1.28 |
| 19-Oct-2007 |
ad | branches: 1.28.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.27 |
| 16-Nov-2006 |
christos | branches: 1.27.6; 1.27.8; 1.27.22; 1.27.24; 1.27.28; __unused removal on arguments; approved by core.
|
1.26 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.25 |
| 27-Aug-2006 |
christos | branches: 1.25.2; 1.25.4; Fix incomplete declaration.
|
1.24 |
| 11-Dec-2005 |
christos | branches: 1.24.4; 1.24.8; merge ktrace-lwp.
|
1.23 |
| 12-Jan-2005 |
kent | branches: 1.23.10; - make this compile - style fixes
|
1.22 |
| 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.21 |
| 29-Oct-2004 |
yamt | branches: 1.21.2; constify audio_hw_if, midi_hw_if, and radio_hw_if.
|
1.20 |
| 09-Jul-2004 |
mycroft | Clean up a little.
|
1.19 |
| 22-Apr-2004 |
itojun | sprintf -> snprintf
|
1.18 |
| 03-May-2003 |
wiz | branches: 1.18.2; DMA, not dma nor Dma.
|
1.17 |
| 06-Apr-2003 |
wiz | Respect the law: Use A-law and mu-law as spellings as far as easily possible. Inspired by Igor Sobrado in PR 19680.
|
1.16 |
| 10-Dec-2002 |
thorpej | Don't include <i386/isa/icu.h>
|
1.15 |
| 02-Oct-2002 |
thorpej | Fix sizeof and whitespace bug from the script I'm using to do the CFATTACH_DECL conversion. (Grumble.)
|
1.14 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.13 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.12 |
| 07-Jan-2002 |
thorpej | Overhaul of the ISA autoconfiguration code to support direct configuration of devices logically attached to the ISA bus:
* Change the isa_attach_args to have arrays of io, mem, irq, drq resources. * Add a "pnpnames" and a linked list of "pnpcompatnames" to the isa_attach_args. If either of these members are non-NULL, direct configuration of the bus is being performed. Add an ISA_DIRECT_CONFIG() macro to test for this. * Drivers are not allowed to modify the isa_attach_args unless direct configuration is not being performed and the probe fucntion is returning success. * Adapt device drivers -- currently, all driver probe routines return "no match" if ISA_DIRECT_CONFIG() evaluates to true.
|
1.11 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.10 |
| 03-Oct-2001 |
augustss | Add a new optional method, dev_ioctl, to the audio hardware driver interface. It is called when an unrecognized ioctl() is performed on a device, thus allowing ioctl()s that frob the hardware driver (like loading microcode).
|
1.9 |
| 26-Sep-2001 |
thorpej | "aria" does not needs-flag
|
1.8 |
| 28-Jun-2000 |
mrg | branches: 1.8.2; 1.8.4; 1.8.6; remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.7 |
| 01-Nov-1999 |
augustss | Make little endian and big endian version of all functions that deal with 16 bit samples. Let the drivers decide which ones to use.
|
1.6 |
| 17-Aug-1998 |
augustss | branches: 1.6.12; 1.6.14; 1.6.16; * Redo the way the way the MIDI driver attaches to audio devices. * Improve the midisyn layer a little. * Add a driver for the Yamaha OPL[23] FM synths. The opl driver is not finished yet; it sounds pretty awful.
For some strange reason I cannot get any FM sound from my SB64 cards, but a regular SB16 works fine.
|
1.5 |
| 21-Jul-1998 |
mycroft | Add RCS IDs.
|
1.4 |
| 17-Jun-1998 |
augustss | Remove a bunch of totally unnecessary #include <machine/pio.h> left over from the olden days.
|
1.3 |
| 09-Jun-1998 |
thorpej | Nuke __BROKEN_INDIRECT_CONFIG.
|
1.2 |
| 09-Jun-1998 |
thorpej | Adjust for changes to the ISA DMA API.
|
1.1 |
| 06-Jun-1998 |
augustss | Add an Aria sound driver. From "R. C. Dowdeswell" <elric@imrryr.org>.
|
1.6.16.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.6.14.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
1.6.12.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.8.6.2 |
| 11-Oct-2001 |
fvdl | Catch up with -current. Fix some bogons in the sparc64 kbd/ms attach code. cd18xx conversion provided by mrg.
|
1.8.6.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.8.4.2 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.8.4.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.8.2.6 |
| 11-Dec-2002 |
thorpej | Sync with HEAD.
|
1.8.2.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.8.2.4 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.8.2.3 |
| 11-Jan-2002 |
nathanw | More catchup.
|
1.8.2.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.8.2.1 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.18.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.18.2.4 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.18.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.18.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.18.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.21.2.2 |
| 09-Jan-2005 |
kent | audio_hw_if change * make open() and close() optional * add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters to round_blocksize()
|
1.21.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.23.10.2 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.23.10.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.24.8.1 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.24.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.25.4.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.25.4.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.25.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.27.28.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.27.24.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.27.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.27.8.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.27.6.1 |
| 27-Feb-2007 |
ad | Add MP locking for audio drivers.
|
1.28.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.29.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.29.16.2 |
| 12-Dec-2008 |
ad | Checkpoint work in progress.
|
1.29.16.1 |
| 11-Dec-2008 |
ad | Checkpoint work in progress.
|
1.29.4.3 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.29.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.29.4.1 |
| 16-May-2009 |
yamt | sync with head
|
1.32.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.32.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.33.10.2 |
| 22-Nov-2011 |
jmcneill | get rid of unused 'powerstate' callback in audio_hw_if
|
1.33.10.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.33.8.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.33.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.36.8.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.37.38.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.39.2.2 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
1.39.2.1 |
| 21-Apr-2019 |
isaki | Adapt to audio2. - Drop FULLDUPLEX property. The driver doesn't seem to be written as full duplex.
|