Home | History | Annotate | Download | only in isapnp
History log of /src/sys/dev/isapnp/sb_isapnp.c
RevisionDateAuthorComments
 1.54  18-Apr-2023  riastradh sb(4): Fix missing mutex initialization at isapnp and ofisa.

PR kern/57363

XXX pullup-8
XXX pullup-9
XXX pullup-10
 1.53  08-May-2019  isaki branches: 1.53.2; 1.53.28;
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.52  15-Mar-2008  cube branches: 1.52.84; 1.52.92; 1.52.96;
Split device_t and softc for sb(4) and all its attachments.
 1.51  19-Oct-2007  ad branches: 1.51.12; 1.51.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.50  16-Nov-2006  christos branches: 1.50.6; 1.50.8; 1.50.22; 1.50.24; 1.50.28;
__unused removal on arguments; approved by core.
 1.49  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.48  30-Jun-2006  chap branches: 1.48.4; 1.48.6;
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.47  13-Apr-2006  cube branches: 1.47.2; 1.47.4;
Fix grammar in a comment, and use named constants for better readability.
 1.46  13-Apr-2006  christos Fix the MPU attachment on Aztech 1020 that has a separate mpu pnp device
instead of having the mpu in io[1]. From doomwarriorx at gmail dot com.
 1.45  29-Mar-2006  thorpej Use device_private().
 1.44  11-Dec-2005  christos branches: 1.44.4; 1.44.6; 1.44.8; 1.44.10; 1.44.12;
merge ktrace-lwp.
 1.43  13-Jan-2005  kent branches: 1.43.10;
ansify and KNF
 1.42  01-Sep-2004  drochner symbolic constants are good, but this is another namespace
 1.41  02-Oct-2002  thorpej branches: 1.41.6;
Add trailing ; to CFATTACH_DECL.
 1.40  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.39  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.38  13-Nov-2001  lukem add RCSID
 1.37  26-Sep-2001  thorpej Use ISACF_*_DEFAULT rather than *UNK.
 1.36  19-Dec-2000  mjl branches: 1.36.2; 1.36.4; 1.36.6;
Add quirk for Avance Logic ALS100+, which doesn't like it's irq/drq
being set in pnp mode.
 1.35  18-Oct-1999  itohy branches: 1.35.2;
Use NMPU instead of NMIDI so that it can compile without mpu attachment.
Requested by Izumi Tsutsui.
 1.34  02-Aug-1999  augustss branches: 1.34.2;
Move the mpu device declaration to conf/files.
Let the mpu device attach at the sb device, and then midi at the mpu.
Update the mpu at eso attachment.
 1.33  22-Mar-1999  mycroft branches: 1.33.4;
Reject variant numbers which are too large (so that a new version of isapnpdevs
with an old driver will not lose mysteriously).
 1.32  22-Mar-1999  mycroft Update callers of isapnp_devmatch().
 1.31  22-Mar-1999  mycroft Adjust for MPU attachment change.
 1.30  19-Feb-1999  mycroft Move IRQ setup into frontend. Need to move DRQ handling as well.
 1.29  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.28  07-Aug-1998  augustss Add MIDI support. The MIDI devices can be accessed as ``raw'' through
the /dev/rmidiN devices, or with a sequencer interface via /dev/music.
So far the only supported MIDI device is the MPU401 port on SoundBlaster
(and only on SB on isapnp, since we do not have locators with multiple
values yet).
 1.27  23-Jul-1998  christos Create a master list of pnp logical and compatibility device codes instead
of hard-coding it into each driver and use a centralized probe function.
 1.26  29-Jun-1998  thorpej Get the interrupt share type from the PnP info.
 1.25  09-Jun-1998  thorpej Nuke __BROKEN_INDIRECT_CONFIG.
 1.24  09-Jun-1998  thorpej Adjust for the changes to the ISA DMA API.
 1.23  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.22  13-Apr-1998  thorpej Remove the stuff that was apparently not intended for commit in the
previous change.
 1.21  13-Apr-1998  augustss Add another device, YMH0021. From nathanw@MIT.EDU, PR #5289.
 1.20  22-Feb-1998  enami Cosmetic change; use tab of width 8.
 1.19  30-Jan-1998  bouyer Add ID for the Vibra16X PnP board (aka CT4170).
 1.18  17-Dec-1997  thorpej Don't initialize softc's space tags/handles until isapnp_config() has
been called. Pointed out by Lennart Augustsson.
 1.17  30-Nov-1997  drochner make it compile without "__BROKEN_INDIRECT_CONFIG"
 1.16  20-Nov-1997  augustss Remove broken PnP id again.
 1.15  18-Nov-1997  augustss Recognize another card and handle the case when both drqs are the same.
 1.14  18-Nov-1997  augustss Make an XXX note about the broken ALS id.
 1.13  18-Nov-1997  augustss Dropped an else in last commit.
 1.12  18-Nov-1997  augustss Add another card and take care of swapped drqs.
 1.11  15-Oct-1997  augustss branches: 1.11.2;
Add another SB AWE64 Value.
 1.10  13-Sep-1997  augustss Recognize SB AWE64 Gold.
 1.9  03-Aug-1997  mikel add support for generic SBs by matching compatIDs
 1.8  18-Jun-1997  mikel branches: 1.8.4;
add device ID for SB AWE64 Value; from William Coldwell in PR kern/3716.
also add comments for some device IDs describing what they match.
 1.7  06-Jun-1997  thorpej Pull thorpej-bus-dma branch into mainline.
 1.6  10-Apr-1997  mikel branches: 1.6.2;
add support for AD181[56] SBPro emulation
 1.5  25-Mar-1997  christos PR/3388 from Tatoku Ogaito: Add product id for another soundblaster PnP card.
 1.4  21-Mar-1997  mycroft Add PnP ID for SB AWE32.
 1.3  20-Mar-1997  mycroft Add 16-bit DRQ support on PnP, and enable 16-bit output.
 1.2  13-Mar-1997  christos Add a match for the ESS1868; from herb...
 1.1  16-Jan-1997  christos Plug and Play support.
 1.6.2.1  13-May-1997  thorpej Adapt to new software interface to the on-board ISA DMA controller.
 1.8.4.2  16-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.8.4.1  23-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.11.2.1  17-Dec-1997  mellon Pull rev 1.18 up from trunk (mycroft)
 1.33.4.1  02-Aug-1999  thorpej Update from trunk.
 1.34.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.35.2.1  05-Jan-2001  bouyer Sync with HEAD
 1.36.6.1  01-Oct-2001  fvdl Catch up with -current.
 1.36.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.36.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.36.2.3  18-Oct-2002  nathanw Catch up to -current.
 1.36.2.2  14-Nov-2001  nathanw Catch up to -current.
 1.36.2.1  26-Sep-2001  nathanw Catch up to -current.
Again.
 1.41.6.4  17-Jan-2005  skrll Sync with HEAD.
 1.41.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.41.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.41.6.1  03-Sep-2004  skrll Sync with HEAD
 1.43.10.4  17-Mar-2008  yamt sync with head.
 1.43.10.3  27-Oct-2007  yamt sync with head.
 1.43.10.2  30-Dec-2006  yamt sync with head.
 1.43.10.1  21-Jun-2006  yamt sync with head.
 1.44.12.2  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.44.12.1  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.44.10.1  19-Apr-2006  elad sync with head.
 1.44.8.3  11-Aug-2006  yamt sync with head
 1.44.8.2  24-May-2006  yamt sync with head.
 1.44.8.1  01-Apr-2006  yamt sync with head.
 1.44.6.1  22-Apr-2006  simonb Sync with head.
 1.44.4.1  09-Sep-2006  rpaulo sync with head
 1.47.4.1  13-Jul-2006  gdamore Merge from HEAD.
 1.47.2.1  29-May-2006  chap An AOpen sound card that identifies as ADS7180 maps its mpu as a separate
pnpdev, as does the Aztech 1020 already special-cased here. However, we
already had ADS7180 in isapnpdevs, making me wonder if it actually worked
the other way for some other card that also identifies as ADS7180. I
suppose we'll find out.
 1.48.6.2  10-Dec-2006  yamt sync with head.
 1.48.6.1  22-Oct-2006  yamt sync with head
 1.48.4.1  18-Nov-2006  ad Sync with head.
 1.50.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.50.24.2  23-Mar-2008  matt sync with HEAD
 1.50.24.1  06-Nov-2007  matt sync with HEAD
 1.50.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.50.8.1  23-Oct-2007  ad Sync with head.
 1.50.6.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.51.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.51.12.1  24-Mar-2008  keiichi sync with head.
 1.52.96.2  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.52.96.1  03-May-2019  isaki Remove dev/auconv.[ch].
Now it is handled in dev/audio/audio.c and dev/audio/linear.c.
Remove dev/mulaw.h.
It already have been just a link to dev/audio/mulaw.h in this
branch.
 1.52.92.1  10-Jun-2019  christos Sync with HEAD
 1.52.84.1  01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1870):

sys/dev/isapnp/sb_isapnp.c: revision 1.54
sys/dev/ofisa/sb_ofisa.c: revision 1.24

sb(4): Fix missing mutex initialization at isapnp and ofisa.
PR kern/57363
 1.53.28.1  01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #286):

sys/dev/isapnp/sb_isapnp.c: revision 1.54
sys/dev/ofisa/sb_ofisa.c: revision 1.24

sb(4): Fix missing mutex initialization at isapnp and ofisa.
PR kern/57363
 1.53.2.1  01-Aug-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1689):

sys/dev/isapnp/sb_isapnp.c: revision 1.54
sys/dev/ofisa/sb_ofisa.c: revision 1.24

sb(4): Fix missing mutex initialization at isapnp and ofisa.
PR kern/57363

RSS XML Feed