Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/yds.c
RevisionDateAuthorComments
 1.70  09-Feb-2024  andvar fix spelling mistakes, mainly in comments and log messages.
 1.69  08-Jan-2024  chs mpu / opl: add an interface attribute to config_found() calls for these

specify an interface attribute when attaching mpu and opl devices.
the PCI devices that are the parents of these midi devices
(cmpci, eso, fms, sv, yds) have two interface attributes:
"audiobus", and also one named the same as the parent device,
eg. "cmpci" has an interface attribute named "cmpci".
we must specify the latter one to attach these children.
 1.68  07-Aug-2021  thorpej branches: 1.68.6;
Merge thorpej-cfargs2.
 1.67  24-Apr-2021  thorpej branches: 1.67.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.66  06-Feb-2021  isaki branches: 1.66.2;
Remove an extra mutex_spin_exit() in yds_resume().
This one has been moved to before yds_init() in rev 1.59.
 1.65  29-Feb-2020  isaki branches: 1.65.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.64  08-Jun-2019  isaki branches: 1.64.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.63  25-May-2019  isaki Fix yds_intr. It has not worked well since netbsd-8.
- Read data offset before set ACTV2.
- The interrupts occur every hardware block, not blocksize specified
by round_blocksize. The hardware block may span (upper layer's)
two blocks. So bus_dmamap_sync'ing each (upper layer's) block is
not enough.
XXX To fix this, Use only 48kHz and drop other frequencies. It can
make blocksize fixed. Then the hardware block aligns to upper layer's
block alignment.
Analyzed by Y.Sugahara.
 1.62  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.61  08-Apr-2019  isaki branches: 1.61.2;
Fix minor bugs.
- sc_lock should use an adaptive lock.
- yds_round_blocksize: fix typo.
- yds_trigger_output: fix typo. SlotControlData is pbankoff.
ptbloff points to ControlData.
- yds_halt_input: fix wrong and extra sc_rec.intr.
 1.60  09-Dec-2018  jdolecek use pci_intr_establish_xname() everywhere
 1.59  25-Jun-2017  christos branches: 1.59.4; 1.59.6;
PR/52331: ydc driver: sleep-under-spin-mutex bugs in yds_allocmem
Don't hold the spin interrupt mutex while calling yds_init from resume.
Instead use a flag to short-circuit the interrupt while disabled.
 1.58  01-Jun-2017  chs 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.57  14-Jul-2016  msaitoh KNF. No functional change.
 1.56  17-Aug-2014  tsutsui branches: 1.56.2;
Use C99 struct initializer. Also tweak some inconsistent TAB/space.

No binary change on i386.
 1.55  29-Mar-2014  christos make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.54  17-Oct-2013  christos __USE a debugging var
 1.53  30-Jan-2012  drochner branches: 1.53.6; 1.53.10;
Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
 1.52  24-Nov-2011  mrg branches: 1.52.2;
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.51  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.50  26-Jul-2010  jym branches: 1.50.8; 1.50.10;
Add PAE to ALL kernel, so that most paddr_t format string errors get caught
during compilation.

While here, fix the compilation for ALL.
 1.49  24-Feb-2010  dyoung branches: 1.49.2;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.48  08-Jan-2010  dyoung branches: 1.48.2;
Expand PMF_FN_* macros.
 1.47  26-Nov-2009  njoly Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.
 1.46  06-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.45  17-Dec-2008  cegger branches: 1.45.2;
make this compile with AUDIO_DEBUG
 1.44  16-Dec-2008  christos replace bitmask_snprintf(9) with snprintb(3)
 1.43  09-Jul-2008  joerg branches: 1.43.2; 1.43.6;
- device/softc split
 1.42  10-Apr-2008  cegger branches: 1.42.4; 1.42.6; 1.42.8; 1.42.10;
use aprint_*_dev and device_xname
 1.41  01-Apr-2008  xtraeme Fix fallout from device_t/softc split to mpu(4):
always pass the mpu_softc to mpu_intr(). Found by Takeshi Nakayama.
 1.40  29-Feb-2008  dyoung Use PMF_FN_ARGS, PMF_FN_PROTO.
 1.39  09-Dec-2007  jmcneill branches: 1.39.6; 1.39.10;
Merge jmcneill-pm branch.
 1.38  19-Oct-2007  ad branches: 1.38.4; 1.38.6;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.37  16-Nov-2006  christos branches: 1.37.6; 1.37.8; 1.37.22; 1.37.24; 1.37.28;
__unused removal on arguments; approved by core.
 1.36  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.35  24-Sep-2006  jmcneill Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
 1.34  03-Sep-2006  christos branches: 1.34.2; 1.34.4;
add missing initializer.
 1.33  17-Aug-2006  christos Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
 1.32  19-Jun-2006  jmcneill Restore yds(4) state on resume.
 1.31  07-Jun-2006  nakayama branches: 1.31.2;
Add void cast to functions whose return values are ignored.
 1.30  11-Dec-2005  christos branches: 1.30.4; 1.30.6; 1.30.8; 1.30.14;
merge ktrace-lwp.
 1.29  28-Jun-2005  thorpej branches: 1.29.2;
Use ANSI function decls and static.
 1.28  30-May-2005  christos - const poisoning
- avoid variable shadowing.
 1.27  15-Jan-2005  kent ansify and KNF
 1.26  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.25  13-Nov-2004  kent branches: 1.25.2;
adopt auconv_set_converter()
 1.24  09-Nov-2004  kent remove mixer setting code in yds_attach() because ac97_attach() does it.
 1.23  08-Nov-2004  kent ANSIfy and style fixes
 1.22  29-Oct-2004  yamt constify audio_hw_if, midi_hw_if, and radio_hw_if.
 1.21  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.20  09-Jul-2004  mycroft There's no need to halt the input and output pipes in the close routine --
audio_close() takes care of this.
 1.19  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.18  29-Sep-2003  wiz branches: 1.18.2;
available, not avaliable. From miod@openbsd.
 1.17  12-Mar-2003  minoura branches: 1.17.2;
Disable ISA DMA emulation for SoundBlaster module explicitly.
This fixes the floppy access problem on some hardware.
Problem reported by Miroslav Kure via Jason Wright <jason [at]
thought [dot] net> of OpenBSD. Thanks.

Fix from ALSA driver; although this setting is undocumented but
according to Jaroslav Kysela <perex [at] suse [dot] cz> of ALSA,
there's no error reported so far.
 1.16  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.15  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.14  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.13  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.12  10-Jun-2002  someya Make the yds driver work on big-endian systems.
 1.11  10-Jan-2002  someya branches: 1.11.8; 1.11.10;
remove a unnecessary message print
 1.10  30-Dec-2001  someya add powerhook support to resume correctly, fix PR#13079.
 1.9  25-Dec-2001  someya add 600 times dummy read from codec for YMF744 (revision < 2).
 1.8  13-Nov-2001  lukem add RCSID
 1.7  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.6  07-Jul-2001  thorpej branches: 1.6.2; 1.6.4;
bzero -> memset
 1.5  21-May-2001  minoura Correct an easy mistake in initializing gain registers.
This will fix the L-R imbalance.
Suggested by Ryo HAYASAKA <ryoh@jaist.ac.jp>.
 1.4  15-May-2001  lukem delint: need ; between goto label and }
 1.3  05-Apr-2001  minoura branches: 1.3.2; 1.3.4; 1.3.6;
Make this compile on alpha with DIAGNOSTIC.
Thanks to atatat.
 1.2  30-Mar-2001  minoura Update TODO list.
 1.1  30-Mar-2001  minoura Yamaha YMF724/740/744/754 (DS-1) PCI audio driver.
 1.3.6.4  29-Jul-2001  he Apply patch (requested by minoura):
Correct argument to pci_intr_map(). Fixes PR#13508.
 1.3.6.3  26-May-2001  he Pull up revision 1.5 (requested by minoura):
Correct bug in initializing gain registers. Fixes L-R imbalance.
 1.3.6.2  01-May-2001  he Pull up revisions 1.1-1.3 (new, via patch, requested by minoura):
Add Yamaha YMF724/740/744/745-based sound driver and
its subordinates.
 1.3.6.1  05-Apr-2001  he file yds.c was added on branch netbsd-1-5 on 2001-05-01 11:45:46 +0000
 1.3.4.2  21-Apr-2001  bouyer Sync with HEAD
 1.3.4.1  05-Apr-2001  bouyer file yds.c was added on branch thorpej_scsipi on 2001-04-21 17:49:32 +0000
 1.3.2.11  18-Oct-2002  nathanw Catch up to -current.
 1.3.2.10  20-Jun-2002  nathanw Catch up to -current.
 1.3.2.9  28-Feb-2002  nathanw Catch up to -current.
 1.3.2.8  11-Jan-2002  nathanw More catchup.
 1.3.2.7  08-Jan-2002  nathanw Catch up to -current.
 1.3.2.6  14-Nov-2001  nathanw Catch up to -current.
 1.3.2.5  08-Oct-2001  nathanw Catch up to -current.
 1.3.2.4  24-Aug-2001  nathanw Catch up with -current.
 1.3.2.3  21-Jun-2001  nathanw Catch up to -current.
 1.3.2.2  09-Apr-2001  nathanw Catch up with -current.
 1.3.2.1  05-Apr-2001  nathanw file yds.c was added on branch nathanw_sa on 2001-04-09 01:57:14 +0000
 1.6.4.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.6.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.6.2.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.6.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.11.10.1  19-Jun-2003  grant Pull up revision 1.17 (requested by hubertf in ticket #1322):

Disable ISA DMA emulation for SoundBlaster module explicitly.
This fixes the floppy access problem on some hardware.
Problem reported by Miroslav Kure via Jason Wright <jason [at]
thought [dot] net> of OpenBSD. Thanks.

Fix from ALSA driver; although this setting is undocumented but
according to Jaroslav Kysela <perex [at] suse [dot] cz> of ALSA,
there's no error reported so far.
 1.11.8.1  20-Jun-2002  gehenna catch up with -current.
 1.17.2.9  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.2.8  17-Jan-2005  skrll Sync with HEAD.
 1.17.2.7  29-Nov-2004  skrll Sync with HEAD.
 1.17.2.6  14-Nov-2004  skrll Sync with HEAD.
 1.17.2.5  02-Nov-2004  skrll Sync with HEAD.
 1.17.2.4  24-Sep-2004  skrll Sync with HEAD.
 1.17.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1  03-Aug-2004  skrll Sync with HEAD
 1.18.2.1  22-Sep-2004  jmc Pullup rev 1.21 (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.25.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.25.2.1  02-Jan-2005  kent * adopt the filter pipeline framework
* follow ac97_attach() change
 1.29.2.5  17-Mar-2008  yamt sync with head.
 1.29.2.4  21-Jan-2008  yamt sync with head
 1.29.2.3  27-Oct-2007  yamt sync with head.
 1.29.2.2  30-Dec-2006  yamt sync with head.
 1.29.2.1  21-Jun-2006  yamt sync with head.
 1.30.14.2  22-Jun-2006  chap Complete a sync sys/ with head.
 1.30.14.1  19-Jun-2006  chap Sync with head.
 1.30.8.3  14-Sep-2006  yamt sync with head.
 1.30.8.2  03-Sep-2006  yamt sync with head.
 1.30.8.1  26-Jun-2006  yamt sync with head.
 1.30.6.1  07-Jun-2006  kardel Sync with head.
 1.30.4.1  09-Sep-2006  rpaulo sync with head
 1.31.2.1  13-Jul-2006  gdamore Merge from HEAD.
 1.34.4.2  10-Dec-2006  yamt sync with head.
 1.34.4.1  22-Oct-2006  yamt sync with head
 1.34.2.1  18-Nov-2006  ad Sync with head.
 1.37.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.37.24.3  23-Mar-2008  matt sync with HEAD
 1.37.24.2  09-Jan-2008  matt sync with HEAD
 1.37.24.1  06-Nov-2007  matt sync with HEAD
 1.37.22.4  08-Dec-2007  jmcneill Rename pnp(9) -> pmf(9), as requested by many.
 1.37.22.3  06-Nov-2007  joerg Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
three layers (class logic, device logic, bus logic), all of them being
optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
not suspended (even partially), device_is_enabled returns true if the
device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
pnp_system_resume. Before running any suspend/resume handlers, check
that all currently attached devices support power management and bail
out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
can register what events they are interested in and whether the handler
should be global or not.
- Introduce device_active API for devices to mark themselve in use from
either the system or the device. Use this to implement the idle handling
for audio and input devices. This is intended to replace most ad-hoc
watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.
 1.37.22.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.37.22.1  05-Oct-2007  joerg Convert yds(4) to PNP power management.
 1.37.8.1  23-Oct-2007  ad Sync with head.
 1.37.6.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.38.6.1  11-Dec-2007  yamt sync with head.
 1.38.4.1  26-Dec-2007  ad Sync with head.
 1.39.10.4  17-Jan-2009  mjf Sync with HEAD.
 1.39.10.3  28-Sep-2008  mjf Sync with HEAD.
 1.39.10.2  02-Jun-2008  mjf Sync with HEAD.
 1.39.10.1  03-Apr-2008  mjf Sync with HEAD.
 1.39.6.1  24-Mar-2008  keiichi sync with head.
 1.42.10.1  19-Oct-2008  haad Sync with HEAD.
 1.42.8.1  18-Jul-2008  simonb Sync with head.
 1.42.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.42.4.4  11-Aug-2010  yamt sync with head.
 1.42.4.3  11-Mar-2010  yamt sync with head
 1.42.4.2  16-May-2009  yamt sync with head
 1.42.4.1  04-May-2009  yamt sync with head.
 1.43.6.2  12-Dec-2008  ad Checkpoint work in progress.
 1.43.6.1  11-Dec-2008  ad Checkpoint work in progress.
 1.43.2.1  19-Jan-2009  skrll Sync with HEAD.
 1.45.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.48.2.2  17-Aug-2010  uebayasi Sync with HEAD.
 1.48.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.49.2.1  05-Mar-2011  rmind sync with head
 1.50.10.2  22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.50.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.50.8.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.50.8.1  17-Apr-2012  yamt sync with head
 1.52.2.1  18-Feb-2012  mrg merge to -current.
 1.53.10.1  18-May-2014  rmind sync with head
 1.53.6.2  03-Dec-2017  jdolecek update from HEAD
 1.53.6.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.56.2.2  28-Aug-2017  skrll Sync with HEAD
 1.56.2.1  05-Oct-2016  skrll Sync with HEAD
 1.59.6.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.59.6.1  10-Jun-2019  christos Sync with HEAD
 1.59.4.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.61.2.4  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.61.2.3  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.61.2.2  29-Apr-2019  isaki Adapt to audio2.
 1.61.2.1  21-Apr-2019  isaki Use C99 style struct initializer to audio_format.
 1.64.4.1  29-Feb-2020  ad Sync with head.
 1.65.6.1  03-Apr-2021  thorpej Sync with HEAD.
 1.66.2.1  21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.67.8.1  04-Aug-2021  thorpej Adapt to CFARGS().
 1.68.6.1  14-Jan-2024  martin Pull up following revision(s) (requested by chs in ticket #542):

sys/dev/pci/yds.c: revision 1.69
sys/dev/pci/cmpci.c: revision 1.61
sys/dev/pci/sv.c: revision 1.62
sys/dev/pci/fms.c: revision 1.50

mpu / opl: add an interface attribute to config_found() calls for these

specify an interface attribute when attaching mpu and opl devices.
the PCI devices that are the parents of these midi devices
(cmpci, eso, fms, sv, yds) have two interface attributes:
"audiobus", and also one named the same as the parent device,
eg. "cmpci" has an interface attribute named "cmpci".
we must specify the latter one to attach these children.

RSS XML Feed