Home | History | Annotate | Download | only in isa
History log of /src/sys/dev/isa/gus.c
RevisionDateAuthorComments
 1.119  06-Feb-2021  isaki Calling halt_{input,output} is done by the MI audio layer if necessary.
 1.118  29-Feb-2020  isaki branches: 1.118.6;
Remove rounding by 4 bytes on round_blocksize().
For drivers which supports only 16bit * 2channels sampling,
rounding by 4 bytes no longer meaningful.
 1.117  08-Jun-2019  isaki branches: 1.117.4;
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.116  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.115  16-Mar-2019  isaki branches: 1.115.2;
Use C99 style struct initializer to audio_hw_if.
 1.114  03-Feb-2019  mrg - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
 1.113  23-Jun-2018  maxv branches: 1.113.2;
constify
 1.112  31-Oct-2017  nat branches: 1.112.2;
Add padding to gus.c so fields match up when it ts cast to a ad1848_isa
softc for the allocation of hw ring buffers.

Locking fixes as gus KASSERTS / uses the codec locks.

Ok christos@.
 1.111  01-Feb-2017  jakllsch branches: 1.111.6;
Use boolean logical and operation on booleans, rather than bitwise and.

From David Binderman in PR kern/51936.
 1.110  11-Jul-2016  msaitoh branches: 1.110.2; 1.110.4;
KNF. No functional change.
 1.109  27-Oct-2012  chs branches: 1.109.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.108  24-Nov-2011  mrg branches: 1.108.8;
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.107  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.106  02-Jul-2011  mrg branches: 1.106.2; 1.106.4;
fix sequence point errors. diff explains best:
- sc->sc_playbuf = ++sc->sc_playbuf % sc->sc_nbufs;
+ sc->sc_playbuf = (sc->sc_playbuf + 1) % sc->sc_nbufs;
 1.105  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.104  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.103  17-Dec-2008  cegger branches: 1.103.2;
kill MALLOC and FREE macros.
 1.102  28-Apr-2008  martin branches: 1.102.8; 1.102.12;
Remove clause 3 and 4 from TNF licenses
 1.101  08-Apr-2008  cegger branches: 1.101.2; 1.101.4;
use aprint_*_dev and device_xname
 1.100  19-Oct-2007  ad branches: 1.100.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.99  25-Sep-2007  ad branches: 1.99.2;
Use splhigh(), not disable_intr().
 1.98  09-Jul-2007  ad branches: 1.98.6; 1.98.8; 1.98.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.97  04-Mar-2007  christos branches: 1.97.2; 1.97.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.96  16-Nov-2006  christos branches: 1.96.4; 1.96.6;
__unused removal on arguments; approved by core.
 1.95  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.94  30-Aug-2006  christos branches: 1.94.2; 1.94.4;
add missing initializers
 1.93  14-Apr-2006  christos Coverity CID 2453: Add negative checks.
 1.92  25-Mar-2006  thorpej Use device_parent().
 1.91  17-Mar-2006  christos don't use MALLOC with a non-constant size; use malloc instead.
 1.90  11-Dec-2005  christos branches: 1.90.4; 1.90.6; 1.90.8; 1.90.10; 1.90.12;
merge ktrace-lwp.
 1.89  30-May-2005  christos branches: 1.89.2;
- add const
- avoid variable shadowing.
 1.88  27-Feb-2005  perry nuke trailing whitespace
 1.87  13-Jan-2005  kent branches: 1.87.2; 1.87.4;
ansify and KNF
 1.86  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.85  29-Oct-2004  yamt branches: 1.85.2;
constify audio_hw_if, midi_hw_if, and radio_hw_if.
 1.84  14-Sep-2004  drochner Separate the namespace for default (ie unspecified) locators used
by the isa.c bus driver and the "address/whatever not specified"
argument passed to leaf device drivers.
The former is "ISACF_XXX_DEFAULT" as generaterd by config(8), the latter
"ISA_UNKNOWN_XXX", defined in isavar.h.
This way we save a dependency of every ISA device driver on "locators.h".
 1.83  22-Apr-2004  itojun sprintf -> snprintf
 1.82  21-Nov-2003  gson Code enabled by option AUDIO_DEBUG exhibited undefined behavior and
caused compiler warnings with gcc 3.3.2.
 1.81  09-May-2003  fvdl branches: 1.81.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.80  03-May-2003  wiz DMA, not dma nor Dma.
 1.79  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.78  11-Oct-2002  fvdl Don't include <i386/isa/icu.h>
 1.77  02-Oct-2002  thorpej Fix sizeof and whitespace bug from the script I'm using to do the
CFATTACH_DECL conversion. (Grumble.)
 1.76  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.75  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.74  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.73  13-Nov-2001  lukem add RCSID
 1.72  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.71  18-Jul-2001  thorpej branches: 1.71.2;
bcopy -> memcpy
 1.70  18-Jan-2001  jdolecek branches: 1.70.2; 1.70.4;
constify
 1.69  23-Mar-2000  thorpej New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
 1.68  07-Feb-2000  thorpej 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.67  30-Mar-1999  mycroft branches: 1.67.8;
The AD1848/CS4231 attachment doesn't create DMA maps any more, so we have to
do it here. This is preferrable anyway, since we're not actually doing DMA
through the AD/CS chip.
 1.66  19-Feb-1999  mycroft Fix structure names.
 1.65  17-Feb-1999  mycroft Update comments.
 1.64  17-Feb-1999  mycroft Pass the direction to the allocm and round_buffersize methods.
Some drivers need this to properly allocate DMAable memory.
 1.63  09-Sep-1998  thorpej Add mmap support for gus and gusmax, PR #5988, Feico Dillema.
 1.62  06-Sep-1998  jtk Correct the remaining uses of ad1848_softc to ad1848_isa_softc
 1.61  01-Sep-1998  jtk use ad1848_isa_attach, so GUS cards with CS4231 don't panic the kernel
 1.60  25-Aug-1998  pk Split the AD1848 driver into MI (dev/ic/ad1848.c) and ISA parts.
 1.59  17-Aug-1998  augustss * 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.58  02-Jul-1998  mycroft Cosmetic change.
 1.57  17-Jun-1998  augustss Remove a bunch of totally unnecessary #include <machine/pio.h>
left over from the olden days.
 1.56  09-Jun-1998  thorpej Nuke __BROKEN_INDIRECT_CONFIG.
 1.55  09-Jun-1998  thorpej Adjust for changes to the ISA DMA API.
 1.54  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.53  12-Mar-1998  augustss Update probing for GUS a little. From soren@t.dk,
closes PR kern/5148.
 1.52  09-Mar-1998  mikel let panic() call DDB, don't do it ourselves; from Nathan Williams in PR 5131
 1.51  25-Jan-1998  mycroft Make sure we create DMA maps if the CD4231 probe fails.
 1.50  13-Jan-1998  drochner make it compile without BROKEN_INDIRECT_CONFIG
 1.49  12-Jan-1998  thorpej Update for config changes.
 1.48  19-Oct-1997  augustss branches: 1.48.2;
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.47  11-Oct-1997  mycroft AudioElinear -> AudioEslinear
 1.46  11-Oct-1997  mycroft AudioC[A-Z] -> AudioC[a-z]
 1.45  09-Oct-1997  jtc Fix tipo inherited from old version of TNF copyright template.
 1.44  12-Sep-1997  augustss Create DMA maps on ordinary GUS (non-MAX) cards. Now it should work again.
 1.43  06-Sep-1997  augustss Bus-ify the GUS driver.
 1.42  26-Aug-1997  augustss XXX Add a drq2 locator for the ISA bus. Many sound cards need
two DMA channels to do e.g. full-duplex. This allows
a way of specifying the second channel in a sane way.
THIS IS TEMPORARY. The drq2 locator will go away when
the locator system has been changed to allow multiple
values per locator.
 1.41  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.40  19-Aug-1997  augustss Change the MI audio driver so it attaches to the MD driver in the
normal way. This requires adding a line to the config files to
get audio to work again.
 1.39  07-Aug-1997  augustss Add A-law support and fix bug on opening GUS max.
From Feico Dillema <dillema@spam.aurum>.
 1.38  04-Aug-1997  augustss Get rid of `register'.
 1.37  04-Aug-1997  augustss Use gusmax_get_props instead of gus_get_props for gusmax.
 1.36  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.35  28-Jul-1997  augustss branches: 1.35.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.34  27-Jul-1997  augustss audio: Simplify handling of AUDIO_SETFD and committing of encoding mode.
 1.33  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.32  15-Jul-1997  augustss In the name of backwards compatibility AUDIO_ENCODING_LINEAR has been
renamed AUDIO_ENCODING_SLINEAR and AUDIO_ENCODING_LINEAR reverts to the
NetBSD 1.2 sematics. A kernel with COMPAT_12 defined will accept
AUDIO_ENCODING_LINEAR and treat it as before, without COMPAT_12 it
will be rejected.
 1.31  09-Jul-1997  jtk fix mixer goof on GUS max
 1.30  06-Jun-1997  thorpej Pull thorpej-bus-dma branch into mainline.
 1.29  29-May-1997  jtk fix popping noises on 16-bit ulinear output.
add big-endian support
XXX ULINEAR_BE still needs ad1848 emulation on gusmax
 1.28  13-May-1997  augustss Clean up emulation code, SB, and GUS drivers and add some more encoding
emulation to SB.
 1.27  12-May-1997  jtk branches: 1.27.2;
restore accidentally-lost set of nchannels in driver layer
 1.26  10-May-1997  jtk use normal linear names/values for 8-bit encodings
mark mulaw as emulated (it's done via a mapping table)
use GUS query encoding routine, even on GUS max, since the encoding
stuff is handled by the GF1.
XXX might not be right for recording, but it's correct for playback.
 1.25  09-May-1997  augustss 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.24  07-May-1997  augustss Convert to new orthogonal audio encoding scheme and implement
some of the new encodings. The change to ioctl AUDIO_GETENC is
NOT backwards compatible.
 1.23  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.22  06-Apr-1997  augustss Make sure the bus tag is set where we need it.
 1.21  20-Mar-1997  mycroft Combine set_encoding and set_precision into a single set_format interface.
 1.20  19-Mar-1997  mycroft Check for errors returned by AD1848 routines.
 1.19  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.18  13-Oct-1996  christos backout kprintf changes
 1.17  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.16  12-May-1996  mycroft Use intr.h.
 1.15  03-May-1996  jtk make it work with GUSPLAYDEBUG defined
 1.14  29-Apr-1996  christos - prototype fixes
 1.13  11-Apr-1996  cgd update for addition of a machine-dependent cookie as the first argument
to isa_intr_{,dis}establish().
 1.12  31-Mar-1996  jtk add include file for function prototypes
 1.11  17-Mar-1996  thorpej New device attachment scheme:

- split softc size and match/attach out from cfdriver into
a new struct cfattach.

- new "attach" directive for files.*. May specify the name of
the cfattach structure, so that devices may be easily attached
to parents with different autoconfiguration semantics.
 1.10  01-Mar-1996  mycroft Add support to the ISA DMA framework for auto-initialize mode.
Add experimental SB16 code, disabled for now.
 1.9  17-Feb-1996  jtk fix compile error from gusprobe() cleanup
 1.8  17-Feb-1996  jtk avoid panic'ing when driver gets confused--just spit out a message and
keep going.
Improve error messages to include device name.
use STATIC for function declarations/definitions so it's easier to get a
useful symbol table by flipping a switch.
 1.7  16-Feb-1996  mycroft Prototype the probe and attach functions.
 1.6  05-Feb-1996  jtc Fix error in copyright notice
 1.5  05-Feb-1996  jtc Received copyright assignment
 1.4  24-Dec-1995  mycroft The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
 1.3  10-Nov-1995  mycroft Convert IRQ, DRQ, and port numbers to int.
 1.2  24-Jul-1995  cgd fix function prototypes, usages, to match what the code actually does
 1.1  19-Jul-1995  brezak GUS audio driver from John Kohl.
 1.27.2.3  01-Jun-1997  thorpej Update from trunk.
 1.27.2.2  19-May-1997  thorpej Update from trunk.
 1.27.2.1  13-May-1997  thorpej Adapt to new software interface to the on-board ISA DMA controller.
 1.35.2.5  14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.35.2.4  16-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.35.2.3  06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.35.2.2  27-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.35.2.1  23-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.48.2.1  29-Jan-1998  mellon Pull up 1.51 (mycroft)
 1.67.8.2  11-Feb-2001  bouyer Sync with HEAD.
 1.67.8.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.70.4.3  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.70.4.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.70.4.1  03-Aug-2001  lukem update to -current
 1.70.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.70.2.5  28-Feb-2002  nathanw Catch up to -current.
 1.70.2.4  11-Jan-2002  nathanw More catchup.
 1.70.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.70.2.2  08-Oct-2001  nathanw Catch up to -current.
 1.70.2.1  24-Aug-2001  nathanw Catch up with -current.
 1.71.2.1  11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.81.2.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.81.2.6  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.81.2.5  17-Jan-2005  skrll Sync with HEAD.
 1.81.2.4  02-Nov-2004  skrll Sync with HEAD.
 1.81.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.81.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.81.2.1  03-Aug-2004  skrll Sync with HEAD
 1.85.2.3  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.85.2.2  03-Jan-2005  kent * remove stream_filter_list_append and stream_filter_list_prepend
* add stream_filter_list_t::{append(), prepend(), set()}
 1.85.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.87.4.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.87.2.1  29-Apr-2005  kent sync with -current
 1.89.2.4  27-Oct-2007  yamt sync with head.
 1.89.2.3  03-Sep-2007  yamt sync with head.
 1.89.2.2  30-Dec-2006  yamt sync with head.
 1.89.2.1  21-Jun-2006  yamt sync with head.
 1.90.12.2  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.90.12.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.90.10.1  19-Apr-2006  elad sync with head.
 1.90.8.3  03-Sep-2006  yamt sync with head.
 1.90.8.2  24-May-2006  yamt sync with head.
 1.90.8.1  01-Apr-2006  yamt sync with head.
 1.90.6.1  22-Apr-2006  simonb Sync with head.
 1.90.4.1  09-Sep-2006  rpaulo sync with head
 1.94.4.2  10-Dec-2006  yamt sync with head.
 1.94.4.1  22-Oct-2006  yamt sync with head
 1.94.2.1  18-Nov-2006  ad Sync with head.
 1.96.6.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.96.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.97.4.1  11-Jul-2007  mjf Sync with head.
 1.97.2.3  23-Oct-2007  ad Sync with head.
 1.97.2.2  09-Oct-2007  ad Sync with head.
 1.97.2.1  01-Jul-2007  ad Adapt to callout API change.
 1.98.10.1  06-Oct-2007  yamt sync with head.
 1.98.8.1  06-Nov-2007  matt sync with HEAD
 1.98.6.2  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.98.6.1  02-Oct-2007  joerg Sync with HEAD.
 1.99.2.1  25-Oct-2007  bouyer Sync with HEAD.
 1.100.16.2  17-Jan-2009  mjf Sync with HEAD.
 1.100.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.101.4.3  16-May-2009  yamt sync with head
 1.101.4.2  04-May-2009  yamt sync with head.
 1.101.4.1  16-May-2008  yamt sync with head.
 1.101.2.1  18-May-2008  yamt sync with head.
 1.102.12.2  12-Dec-2008  ad Checkpoint work in progress.
 1.102.12.1  11-Dec-2008  ad Checkpoint work in progress.
 1.102.8.1  19-Jan-2009  skrll Sync with HEAD.
 1.103.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.106.4.2  22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.106.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.106.2.2  30-Oct-2012  yamt sync with head
 1.106.2.1  17-Apr-2012  yamt sync with head
 1.108.8.2  03-Dec-2017  jdolecek update from HEAD
 1.108.8.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.109.14.2  05-Feb-2017  skrll Sync with HEAD
 1.109.14.1  05-Oct-2016  skrll Sync with HEAD
 1.110.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.110.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.111.6.1  16-Apr-2018  martin Pull up following revision(s) (requested by nat in ticket #760):

sys/dev/isa/gus.c: revision 1.112

Add padding to gus.c so fields match up when it ts cast to a ad1848_isa
softc for the allocation of hw ring buffers.

Locking fixes as gus KASSERTS / uses the codec locks.

Ok christos@.
 1.112.2.1  25-Jun-2018  pgoyette Sync with HEAD
 1.113.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.113.2.1  10-Jun-2019  christos Sync with HEAD
 1.115.2.3  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.115.2.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.115.2.1  21-Apr-2019  isaki Adapt ad1848/cs4231 families to audio2.
 1.117.4.1  29-Feb-2020  ad Sync with head.
 1.118.6.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed