Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/eap.c
RevisionDateAuthorComments
 1.103  17-May-2024  nia eap(4): Restore the full set of supported hardware encodings from netbsd-7

Tested in QEMU.
 1.102  25-Jul-2019  msaitoh branches: 1.102.2; 1.102.28;
Make register address unsigned to avoid undefined behavior. Found by KUBSan.
 1.101  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.100  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.99  16-Mar-2019  isaki branches: 1.99.2;
Use C99 style struct initializer to audio_hw_if.
 1.98  09-Dec-2018  jdolecek use pci_intr_establish_xname() everywhere
 1.97  01-Jun-2017  chs branches: 1.97.8; 1.97.10;
remove checks for failure after memory allocation calls that cannot fail:

kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
 1.96  07-Jul-2016  msaitoh KNF. Remove extra spaces. No functional change.
 1.95  29-Mar-2014  christos branches: 1.95.6;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.94  24-Nov-2011  mrg branches: 1.94.8; 1.94.12;
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.93  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.92  28-Apr-2008  martin branches: 1.92.12; 1.92.34; 1.92.36;
Remove clause 3 and 4 from TNF licenses
 1.91  04-Mar-2008  cube branches: 1.91.2; 1.91.4;
Split device_t/softc, and other related cosmetic changes.
 1.90  19-Oct-2007  ad branches: 1.90.12; 1.90.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.89  04-Mar-2007  christos branches: 1.89.2; 1.89.14; 1.89.16; 1.89.20;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.88  16-Nov-2006  christos branches: 1.88.4; 1.88.6;
__unused removal on arguments; approved by core.
 1.87  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.86  30-Aug-2006  christos branches: 1.86.2; 1.86.4;
fix incomplete initializers
 1.85  01-Jul-2006  chap Correct build failures when MIDI is not enabled (the idea!).

Specifically eap but no midi, which makes sense if you want sound,
and umidi but no midi, which makes little sense but shouldn't fail the
build.

Suggest changing the evbarm conf files containing umidi but #midi
to comment out umidi as well (even though this fix should let them build).
 1.84  30-Jun-2006  chap Ankh-Morpork, we have a MIDI driver....

Merge from chap-midi branch, after
~month for review
Comments by thorpej@ drochner@ and Alexandre Ratchov

Incorporated: points by thorpej@ drochner@; preliminary support for
a stats-collecting ioctl suggested by martin@ from comments by A.R.

PR kern/32441 kern/32442 kern/32567 kern/32588 kern/32694 kern/33590
kern/33614 and one instance of kern/32651

ok martin@
 1.83  13-Jun-2006  rpaulo branches: 1.83.2;
Initialize the mixer delta value to 8 for the 1370 version. No
objections in tech-kern.
 1.82  10-Jun-2006  rpaulo KNF.
 1.81  24-Dec-2005  perry branches: 1.81.4; 1.81.8; 1.81.14;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.80  11-Dec-2005  christos merge ktrace-lwp.
 1.79  28-Jun-2005  thorpej branches: 1.79.2;
Use ANSI function decls and static.
 1.78  27-Feb-2005  perry nuke trailing whitespace
 1.77  13-Feb-2005  fredb "output.source" on the Ensoniq 1371 really should be "input.source". Making
it so lets the audio(4) interface -- play.port and play.gain -- attach
properly. Analysis and patch provided by Joachim Kuebart in PR kern/29178.
 1.76  15-Jan-2005  kent branches: 1.76.2; 1.76.4;
ansify and KNF
 1.75  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.74  09-Nov-2004  kent branches: 1.74.2;
remove mixer setting code in *_attach() because ac97_attach() does it.
 1.73  29-Oct-2004  yamt constify audio_hw_if, midi_hw_if, and radio_hw_if.
 1.72  22-Sep-2004  kent ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case.

PR: kern/26973
 1.71  03-Aug-2004  drochner Check return values of config_detach() for child devices and abort
our own detach() on errors.
 1.70  09-Jul-2004  mycroft Clean up. Attempt to make these safer against stray interrupts.
 1.69  08-Jul-2004  drochner support the game port on eap1371
This is only usable with some caution because these soundcards only
allow to map IO port 0x20x for this, thus bypassing PCI address
management. Very likely this will only work on primary PCI buses, and there
is some potential for conflicts with ISA devices as well.
(XXX cannot be detached because the "joy" driver doesn't support it yet)
 1.68  23-Apr-2004  itojun pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
 1.67  04-Dec-2003  keihan branches: 1.67.2;
netbsd.org -> NetBSD.org

This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
 1.66  03-May-2003  wiz branches: 1.66.2;
DMA, not dma nor Dma.
 1.65  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.64  31-Jan-2003  thorpej Use aprint_*().
 1.63  14-Jan-2003  mrg add detach support
 1.62  26-Dec-2002  pooka For the ES1370 do "best effort" rate selection for the FM DAC. The
card contains only one clock, which is already used by the other
DAC. The FM DAC can handle a few fixed-frequency choices.

thanks to Matthew Green for testing
 1.61  14-Dec-2002  pooka Silly me for assuming that the CT5880 cards could be identified by looking
at which ones had the Product ID CT5880. Try to get the checks right now.

Also add ES1373_8 to the list.
 1.60  05-Dec-2002  pooka Recognize a few more CT5880 chips. Only cosmetic, does not
affect functionality.
 1.59  30-Nov-2002  pooka Don't use tsleep() in attach, use delay()

This change makes the driver work properly for the following card,
which used to function a bit weird:

eap0 at pci0 dev 10 function 0: Ensoniq CT5880 CT5880C (rev. 0x02)
eap0: interrupting at irq 9
eap0: TriTech TR28602 codec; no 3D stereo
 1.58  24-Nov-2002  scw Fix uninitialised variable warnings.
 1.57  14-Nov-2002  gson eap.c 1.54 changed ES1371 specific code but failed to make the
corresponding cases to the ES1370 case, causing a panic when
attaching an ES1370.
 1.56  11-Nov-2002  pooka rename EAP_EN() to the more descriptive EAP_DAC_EN(), and
use it everywhere.
 1.55  07-Nov-2002  thorpej Don't use newlines in string literals.
 1.54  04-Nov-2002  pooka add support for the second DAC found on the chip. to attach the second
audio device, define EAP_USE_BOTH_DACS
 1.53  10-Oct-2002  pooka make a few debug printf's match reality
 1.52  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.51  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.50  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.49  04-Jul-2002  gson Mask MCCB interrupts since they are not currently handled
and it is not clear how they should be handled. Fixes
kern/17071.
 1.48  13-Nov-2001  lukem branches: 1.48.8; 1.48.10;
add RCSID
 1.47  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.46  03-Sep-2001  reinoud branches: 1.46.2;
Fixed compiling error when AUDIO_DEBUG was switched on ...
 1.45  24-Apr-2001  mycroft branches: 1.45.2;
It appears there's a race condition when disabling a channel that causes us to
need to explicitly relatch the interrupt when firing it up again. So, in the
trigger routines, explicitly disable and reenable the interrupt to relatch it,
like we do in the interrupt routine.

Also clean up some broken loop overrun checks.

My ES1371 seems to be more reliable now, but I'm not going to pretend to fully
understand this chip.
 1.44  27-Jan-2001  augustss branches: 1.44.2;
ANSIfy.
 1.43  27-Jan-2001  augustss Sleep a little when closing the midi device to allow the UART to drain.
 1.42  28-Dec-2000  sommerfeld Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q
 1.41  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.40  01-Jun-2000  augustss branches: 1.40.2;
Update URLs.
 1.39  15-May-2000  thorpej branches: 1.39.2;
ac97.h -> ac97var.h
 1.38  01-May-2000  augustss Change the way the codec is access to mimic how Linux&FreeBSD does it.
 1.37  30-Apr-2000  augustss Add driver for C-Media CMI8x38 Audio Chip. From Takuya SHIOZAKI <AoiMoe@imou.to>
 1.36  24-Apr-2000  augustss Move a test if the MIDI is open outside a loop in the interrupt routine.
Some stylistic changes.
 1.35  19-Mar-2000  soren Make it a bit more clear which functions are specific to which models.
Split off register definitions into eapreg.h.
Remove duplicate codec reset.
 1.34  11-Mar-2000  soren The shortened 1371 reset delay in revision 1.32 doesn't seem to be
quite enough for my 1373, so increase it some.
 1.33  06-Mar-2000  perry Make Creative Soundblaster PCI 128's work -- from Masahiro Ishiyama
Note that on device close, there's a sharp pop that probably should be fixed.

Note also that the device is hanging the machine at times for brief
periods inside audio.c::audiogetinfo(), but I haven't yet figured out
why.
 1.32  02-Nov-1999  augustss Shorten some delay()s. From WITEK Wnuk <witek@atari.org>
 1.31  02-Nov-1999  soren Fix crash when both 1370 and 1371/1373 devices are configured.
Update documentation links.
XXX The initial volume of the 1371 mixers is set to 255. Should be ~200.
 1.30  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.29  29-Oct-1999  augustss Add MIDI support.
Closes PR 8578.
 1.28  27-Oct-1999  augustss Add support for ES1371. From OpenBSD and Ezra Story <ezy@panix.com>.
 1.27  01-Sep-1999  kleink branches: 1.27.2; 1.27.4; 1.27.6;
Don't make a human-readable device description being printed at attach time
depend on PCIVERBOSE.
 1.26  10-Jul-1999  kleink Fix a buglet in the driver's DMA buffer list ipmlementation, causing the next-
in-list (wrong) descriptor structure of the buffer in question to be freed.
 1.25  18-Feb-1999  mycroft branches: 1.25.4;
Pass the correct address (PCI bus address, not PA) to the card.
Works on an Alpha now.
 1.24  18-Feb-1999  mycroft Minor code munging.
 1.23  17-Feb-1999  mycroft Fix a silly type.
 1.22  17-Feb-1999  mycroft Update comments.
 1.21  17-Feb-1999  mycroft Pass the direction to the allocm and round_buffersize methods.
Some drivers need this to properly allocate DMAable memory.
 1.20  08-Jan-1999  augustss Fix more `void *' arithmetic.
 1.19  25-Nov-1998  augustss Make the copyright header conform to the NetBSD template.
 1.18  19-Nov-1998  mrg fix problems in many d_mmap routines:
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.


XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));

by someone!
 1.17  25-Aug-1998  thorpej Add some braces to make egcs happy.
 1.16  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.15  15-Aug-1998  mycroft Make copyright notices with my name consistent.
 1.14  12-Aug-1998  mycroft Associate the preamp with the mic volume in the input class.
 1.13  12-Aug-1998  mycroft Oops; fix typos.
 1.12  12-Aug-1998  mycroft Add a knob to enable/disable the mic preamp.
 1.11  10-Aug-1998  mycroft For consistency, only do the rate coupling in full-duplex mode.
 1.10  09-Aug-1998  mycroft Minor cleanup to debugging cruft.
 1.9  09-Aug-1998  mycroft Several things:
* Use the new trigger_{in,out}put interface.
* Allow the play and record channels to have different encodings (but the
same sample rate).
* Play u-law and a-law as 16-bit data. (This may not work yet...)
 1.8  06-Jul-1998  augustss Add mixer output selection.
From gson@araneus.fi (Andreas Gustafsson)
 1.7  08-Jun-1998  thorpej Nuke __BROKEN_INDIRECT_CONFIG.
 1.6  26-May-1998  augustss Fix a recording problem that occurs when the EAP chip sends its
interrupt just BEFORE the dma has finished rather than after.
 1.5  06-May-1998  augustss Remove some lint.
 1.4  02-May-1998  mycroft Adjust PCLKDIV by 2 to correct the output sample rate. (Unfortunately, this
isn't documented.)
Fix typo in mappage routine.
 1.3  02-May-1998  mycroft Oops; fix typo.
 1.2  02-May-1998  mycroft Fix reading of the master volume, and a hack that seems to make stereo output
work correctly. (Will check the documentation as soon as I can read it.)
 1.1  01-May-1998  augustss Add a driver for the Ensoniq AudioPCI sound card. The driver still
needs some testing, but it seems to produce sound. The driver was written
by me, but since I don't have the hardware the debugging and testing was
done by Andreas Gustafsson <gson@araneus.fi>, Chuck Cranor
<chuck@maria.wustl.edu>, and Phil Nelson <phil@cs.wwu.edu>. Thanks.
 1.25.4.1  02-Aug-1999  thorpej Update from trunk.
 1.27.6.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.27.4.1  15-Nov-1999  fvdl Sync with -current
 1.27.2.3  11-Feb-2001  bouyer Sync with HEAD.
 1.27.2.2  05-Jan-2001  bouyer Sync with HEAD
 1.27.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.39.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.40.2.2  01-May-2001  he Pull up revision 1.45 (requested by hubertf):
Work around race condition by relatching the interrupt. Makes
the eap driver not hang on certain occasions.
 1.40.2.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.44.2.11  15-Jan-2003  thorpej Sync with HEAD.
 1.44.2.10  29-Dec-2002  thorpej Sync with HEAD.
 1.44.2.9  19-Dec-2002  thorpej Sync with HEAD.
 1.44.2.8  11-Dec-2002  thorpej Sync with HEAD.
 1.44.2.7  11-Nov-2002  nathanw Catch up to -current
 1.44.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.44.2.5  01-Aug-2002  nathanw Catch up to -current.
 1.44.2.4  14-Nov-2001  nathanw Catch up to -current.
 1.44.2.3  08-Oct-2001  nathanw Catch up to -current.
 1.44.2.2  21-Sep-2001  nathanw Catch up to -current.
 1.44.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.45.2.4  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.45.2.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.45.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.45.2.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.46.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.48.10.1  15-Dec-2002  he Pull up revision 1.59 (requested by pooka in ticket #1035):
Don't use tsleep() in attach, use delay(). Makes the driver
work properly with ``Ensoniq CT5880''-based audio card.
 1.48.8.1  15-Jul-2002  gehenna catch up with -current.
 1.66.2.11  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.66.2.10  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.66.2.9  15-Feb-2005  skrll Sync with HEAD.
 1.66.2.8  17-Jan-2005  skrll Sync with HEAD.
 1.66.2.7  14-Nov-2004  skrll Sync with HEAD.
 1.66.2.6  02-Nov-2004  skrll Sync with HEAD.
 1.66.2.5  24-Sep-2004  skrll Sync with HEAD.
 1.66.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.66.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.66.2.2  12-Aug-2004  skrll Sync with HEAD.
 1.66.2.1  03-Aug-2004  skrll Sync with HEAD
 1.67.2.1  22-Sep-2004  jmc Pullup rev 1.72 (requested by kent in ticket #867)

ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case. PR#26973
 1.74.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.74.2.1  02-Jan-2005  kent * adopt the filter pipeline framework
* follow ac97_attach() change
 1.76.4.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.76.2.1  29-Apr-2005  kent sync with -current
 1.79.2.5  17-Mar-2008  yamt sync with head.
 1.79.2.4  27-Oct-2007  yamt sync with head.
 1.79.2.3  03-Sep-2007  yamt sync with head.
 1.79.2.2  30-Dec-2006  yamt sync with head.
 1.79.2.1  21-Jun-2006  yamt sync with head.
 1.81.14.2  19-Jun-2006  chap Sync with head.
 1.81.14.1  18-Jun-2006  chap Updates PR kern/32651

The eap driver now makes use of the MIDI UART tx interrupt available on
the Ensoniq chips. A test with nominally 20 seconds of continuous transmit
data went from 26 s real / 25 s system to 22 s real / 0.16 s system.
Implementation is quite simple, and anyone who knows any of the other
MIDI UART chips well enough to get a tx interrupt out of it would do a
world of good by updating their drivers similarly.

Anyway, scratch one off the kern/32651 todo list.

Also added a documentation reference to the ES1373 datasheet, and added
more 1371- and 1373-specific #defines in eapreg.h. Enough there now that
anyone who wanted to play with the S/PDIF capability on the 1373 could
begin to do that.
 1.81.8.3  03-Sep-2006  yamt sync with head.
 1.81.8.2  11-Aug-2006  yamt sync with head
 1.81.8.1  26-Jun-2006  yamt sync with head.
 1.81.4.1  09-Sep-2006  rpaulo sync with head
 1.83.2.1  13-Jul-2006  gdamore Merge from HEAD.
 1.86.4.2  10-Dec-2006  yamt sync with head.
 1.86.4.1  22-Oct-2006  yamt sync with head
 1.86.2.1  18-Nov-2006  ad Sync with head.
 1.88.6.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.88.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.89.20.1  25-Oct-2007  bouyer Sync with HEAD.
 1.89.16.2  23-Mar-2008  matt sync with HEAD
 1.89.16.1  06-Nov-2007  matt sync with HEAD
 1.89.14.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.89.2.1  23-Oct-2007  ad Sync with head.
 1.90.16.2  02-Jun-2008  mjf Sync with HEAD.
 1.90.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.90.12.1  24-Mar-2008  keiichi sync with head.
 1.91.4.1  16-May-2008  yamt sync with head.
 1.91.2.1  18-May-2008  yamt sync with head.
 1.92.36.2  22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.92.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.92.34.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.92.34.1  17-Apr-2012  yamt sync with head
 1.92.12.5  12-Dec-2008  ad Checkpoint work in progress.
 1.92.12.4  11-Dec-2008  ad Checkpoint work in progress.
 1.92.12.3  09-Dec-2008  ad Checkpoint work on MIDI.
 1.92.12.2  08-Dec-2008  ad Death to NOWAIT.
 1.92.12.1  07-Dec-2008  ad Ressurect the ad-audiomp branch at request of matt@.

With this commit:

- core audio subsystem made MPSAFE
- eap, btsco drivers made MPSAFE

TODO:

- midi
- convert remaining drivers
 1.94.12.1  18-May-2014  rmind sync with head
 1.94.8.2  03-Dec-2017  jdolecek update from HEAD
 1.94.8.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.95.6.2  28-Aug-2017  skrll Sync with HEAD
 1.95.6.1  09-Jul-2016  skrll Sync with HEAD
 1.97.10.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.97.10.1  10-Jun-2019  christos Sync with HEAD
 1.97.8.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.99.2.4  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.99.2.3  30-Apr-2019  isaki More adapt to audio2.
- Use set_format.
- Remove an empty method.
- XXX DAC1 and secondary audio device support should be removed.
Now mixing two (or more) sources is done by audio layer.
 1.99.2.2  21-Apr-2019  isaki Adapt to audio2.
- Drop INDEPENDENT property from es1370 which has only one clock.
 1.99.2.1  21-Apr-2019  isaki Use C99 style struct initializer to audio_format.
 1.102.28.1  17-Jun-2024  martin Pull up following revision(s) (requested by nia in ticket #697):

sys/dev/pci/eap.c: revision 1.103

eap(4): Restore the full set of supported hardware encodings from netbsd-7

Tested in QEMU.
 1.102.2.1  17-Jun-2024  martin Pull up following revision(s) (requested by nia in ticket #1843):

sys/dev/pci/eap.c: revision 1.103

eap(4): Restore the full set of supported hardware encodings from netbsd-7

Tested in QEMU.

RSS XML Feed