History log of /src/sys/dev/pci/auixp.c |
Revision | | Date | Author | Comments |
1.55 |
| 08-Feb-2024 |
andvar | s/inlucde/include/, s/implemetation/implementation/ in comments and error msg.
|
1.54 |
| 27-Aug-2022 |
skrll | Correct the abbreviation of approximately to 'approx.'
|
1.53 |
| 25-Jan-2022 |
andvar | fix various typos in comments.
|
1.52 |
| 21-Aug-2021 |
andvar | s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/
|
1.51 |
| 20-Aug-2021 |
andvar | fix various typos in comments and log messages.
|
1.50 |
| 03-Jul-2020 |
isaki | Fix an argument passes to auixp_intr(). This is rest of rev 1.39 (split device_t/softc) in 2012. Problem reported and tested by Riccardo Mottola.
|
1.49 |
| 29-Feb-2020 |
isaki | round_blocksize must return a multiple of the framesize even if 6 channels mode. I believe that keeping "good alignment" is just a wish, not constraint.
|
1.48 |
| 16-Oct-2019 |
maya | branches: 1.48.2; Switch files copyright Reinoud Zandijk from BSD 4 clause to BSD 2 clause.
OK'd by reinoud in email (from 4 Feb 2019).
|
1.47 |
| 08-Jun-2019 |
isaki | branches: 1.47.2; 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.46 |
| 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.45 |
| 16-Mar-2019 |
isaki | branches: 1.45.2; Use C99 style struct initializer to audio_hw_if.
|
1.44 |
| 09-Dec-2018 |
jdolecek | use pci_intr_establish_xname() everywhere
|
1.43 |
| 01-Jun-2017 |
chs | branches: 1.43.8; 1.43.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.42 |
| 07-Jul-2016 |
msaitoh | KNF. Remove extra spaces. No functional change.
|
1.41 |
| 18-Oct-2014 |
snj | branches: 1.41.2; src is too big these days to tolerate superfluous apostrophes. It's "its", people!
|
1.40 |
| 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.39 |
| 27-Oct-2012 |
chs | branches: 1.39.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.38 |
| 30-Jan-2012 |
drochner | branches: 1.38.6; 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.37 |
| 02-Dec-2011 |
jmcneill | branches: 1.37.2; audio cookie is a struct auixp_codec, not auixp_softc
|
1.36 |
| 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.35 |
| 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.34 |
| 24-Feb-2010 |
dyoung | branches: 1.34.10; 1.34.12; 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.33 |
| 08-Jan-2010 |
dyoung | branches: 1.33.2; Expand PMF_FN_* macros.
|
1.32 |
| 26-Nov-2009 |
njoly | Cleanup interrupt establish error messages. Do not mix aprint_error/aprint_normal/printf calls for a single line.
|
1.31 |
| 06-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.30 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.29 |
| 05-Mar-2009 |
msaitoh | Fix typo(s/interupt/interrupt/)
|
1.28 |
| 10-Apr-2008 |
cegger | branches: 1.28.4; 1.28.12; 1.28.16; 1.28.18; use aprint_*_dev and device_xname
|
1.27 |
| 21-Mar-2008 |
dyoung | pci_activate() expects for its void * argument to be a device_t, so change the type of the argument to device_t. Update each use of pci_activate().
Use device_t and accessors. Use aprint_*_dev().
|
1.26 |
| 29-Feb-2008 |
dyoung | Use PMF_FN_ARGS, PMF_FN_PROTO.
|
1.25 |
| 09-Dec-2007 |
jmcneill | branches: 1.25.6; 1.25.10; Merge jmcneill-pm branch.
|
1.24 |
| 19-Oct-2007 |
ad | branches: 1.24.4; 1.24.6; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.23 |
| 29-Apr-2007 |
msaitoh | branches: 1.23.6; 1.23.8; 1.23.12; fix typos
|
1.22 |
| 04-Mar-2007 |
christos | branches: 1.22.2; 1.22.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.21 |
| 16-Nov-2006 |
christos | branches: 1.21.4; 1.21.6; __unused removal on arguments; approved by core.
|
1.20 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.19 |
| 24-Sep-2006 |
jmcneill | Add "name" parameter to powerhook_establish, to aid debugging. No objections on tech-kern@
|
1.18 |
| 24-Sep-2006 |
jmcneill | Don't use // for comments.
|
1.17 |
| 18-Sep-2006 |
reinoud | Since SPDIF support fo the auixp driver is still half done disable it for now since some chipset revisions will freak out on the aparent half-initialisation. Even on my machine i can't seem to get the SPDIF led to light up so something is wrong.
Also delay the setting of the DMA bits until after the codec detection but before the enabling of interrupts. Note that the dma has to be explicitly started when the device is opened.
|
1.16 |
| 27-Aug-2006 |
christos | branches: 1.16.2; 1.16.4; Add missing initializers.
|
1.15 |
| 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.14 |
| 17-Jun-2006 |
christos | re-factor the pci powestate api. reviewed by gimpy
|
1.13 |
| 14-May-2006 |
elad | branches: 1.13.2; 1.13.4; integrate kauth.
|
1.12 |
| 11-Apr-2006 |
rpaulo | Coverity ID 2311: in auixp_allocate_dma_chain() free dma variable if we are unable to allocate hardware dma descriptors.
|
1.11 |
| 24-Jan-2006 |
reinoud | branches: 1.11.2; 1.11.4; 1.11.6; 1.11.8; 1.11.10; Duh! If askes to halt the input dont halt the output instead. This also fixes the timeout on draining when closing.
|
1.10 |
| 11-Dec-2005 |
christos | branches: 1.10.2; merge ktrace-lwp.
|
1.9 |
| 27-Jun-2005 |
thorpej | branches: 1.9.2; Use ANSI function decls and static. Fix a memory leak uncovered by doing so (auixp_freemem() was never called).
|
1.8 |
| 15-Jun-2005 |
reinoud | Cosmetic change giving better feedback on what's going on. It would allways tell the hardware reset timed out when it didn't. Also cleaned up code comments.
|
1.7 |
| 12-Jun-2005 |
reinoud | Implement auixp AC-link reset
|
1.6 |
| 30-May-2005 |
christos | - const poisoning - avoid variable shadowing.
|
1.5 |
| 26-Jan-2005 |
fvdl | branches: 1.5.4; Don't print a message when there's no interrupt to be handled, since this can happen when one is shared. Also, don't claim it in that case.
Make some printfs more consistent.
|
1.4 |
| 13-Jan-2005 |
simonb | branches: 1.4.2; 1.4.4; 1.4.6; More KNF nits.
|
1.3 |
| 12-Jan-2005 |
kent | remove empty auixp_open() and auixp_close(). They are optional.
style fixes * Don't associate a name with the types * The function type must be declared on a line by itself preceding the function. * DO NOT initialize variables in the declarations. * No parentheses are needed around the return value.
|
1.2 |
| 12-Jan-2005 |
reinoud | Update copyright messages
|
1.1 |
| 12-Jan-2005 |
reinoud | Initial commit of auixp(4) driver. It's a driver for the audio part of ATI IXP-200 and family motherboard chips. Its functional for both recording and playback.
Note that quadraphonic and Dolby 5.1 audio are not tested by me but ought to work fine. I can set the number of channels etc. OK but i can't listen to the result. Any feedback on this performance would be greatly apreciated.
|
1.4.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.4.4.4 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.4.4.3 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.4.4.2 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.4.4.1 |
| 13-Jan-2005 |
skrll | file auixp.c was added on branch ktrace-lwp on 2005-01-17 19:31:23 +0000
|
1.4.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.5.4.1 |
| 28-Jan-2006 |
tron | Pull up following revision(s) (requested by reinoud in ticket #1138): sys/dev/pci/auixp.c: revision 1.11 Duh! If askes to halt the input dont halt the output instead. This also fixes the timeout on draining when closing.
|
1.9.2.7 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.9.2.6 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.9.2.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.9.2.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.9.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.9.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.9.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.10.2.1 |
| 01-Feb-2006 |
yamt | sync with head.
|
1.11.10.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.11.8.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.11.6.3 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.11.6.2 |
| 26-Jun-2006 |
yamt | sync with head.
|
1.11.6.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.11.4.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.11.2.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.13.4.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.13.2.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.16.4.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.16.4.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.16.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.21.6.1 |
| 27-Feb-2007 |
ad | Add MP locking for audio drivers.
|
1.21.4.2 |
| 07-May-2007 |
yamt | sync with head.
|
1.21.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.22.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.22.2.2 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.22.2.1 |
| 27-May-2007 |
ad | Sync with head.
|
1.23.12.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.23.8.3 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.23.8.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.23.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.23.6.5 |
| 08-Dec-2007 |
jmcneill | Rename pnp(9) -> pmf(9), as requested by many.
|
1.23.6.4 |
| 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.23.6.3 |
| 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.23.6.2 |
| 04-Oct-2007 |
joerg | Also deregister PNP handler at detach time.
|
1.23.6.1 |
| 04-Oct-2007 |
joerg | Add blindly codec power management support.
|
1.24.6.1 |
| 11-Dec-2007 |
yamt | sync with head.
|
1.24.4.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.25.10.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.25.10.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.25.6.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.28.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.28.16.3 |
| 13-Dec-2008 |
ad | Fix locking for ac97.
|
1.28.16.2 |
| 12-Dec-2008 |
ad | Checkpoint work in progress.
|
1.28.16.1 |
| 08-Dec-2008 |
ad | Convert some more drivers.
|
1.28.12.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.28.4.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.28.4.2 |
| 16-May-2009 |
yamt | sync with head
|
1.28.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.33.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.34.12.2 |
| 22-Nov-2011 |
jmcneill | get rid of unused 'powerstate' callback in audio_hw_if
|
1.34.12.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.34.10.3 |
| 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.34.10.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.34.10.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.37.2.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.38.6.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.38.6.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.38.6.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.39.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.41.2.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.41.2.1 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.43.10.3 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.43.10.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.43.10.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.43.8.1 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
1.45.2.2 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
1.45.2.1 |
| 27-Apr-2019 |
isaki | Adapt to audio2. - Move auixp_formats' definition from header to source. - Make compilable even with DEBUG_AUIXP.
|
1.47.2.2 |
| 07-Jul-2020 |
martin | Pull up following revision(s) (requested by isaki in ticket #983):
sys/dev/pci/auixp.c: revision 1.50
Fix an argument passes to auixp_intr().
This is rest of rev 1.39 (split device_t/softc) in 2012. Problem reported and tested by Riccardo Mottola.
|
1.47.2.1 |
| 21-Mar-2020 |
martin | Pull up following revision(s) (requested by isaki in ticket #792):
sys/arch/amiga/dev/aucc.c: revision 1.48 sys/dev/pci/auixp.c: revision 1.49 sys/dev/pci/gcscaudio.c: revision 1.19 sys/dev/pci/auich.c: revision 1.159 sys/dev/sbus/dbri.c: revision 1.42 sys/dev/pci/auvia.c: revision 1.85 sys/dev/pci/auacer.c: revision 1.39
Drop 512 bytes limit on auvia_round_blocksize().
This fixes attach on 6 channels device. PR kern/55017.
round_blocksize must return a multiple of the framesize. aucc(4) supports 3 channels mode.
round_blocksize must return a multiple of the framesize even if passed blocksize is greater than the upper limit.
round_blocksize must return a multiple of the framesize.
It's not divisible when blk=GCSCAUDI_PRD_SIZE_MAX and channels=4. round_blocksize must return a multiple of the framesize even if 6 channels mode.
I believe that keeping "good alignment" is just a wish, not constraint.
|
1.48.2.1 |
| 29-Feb-2020 |
ad | Sync with head.
|