| History log of /src/sys/dev/pci/auacer.c |
| Revision | | Date | Author | Comments |
| 1.39 |
| 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.38 |
| 08-Jun-2019 |
isaki | branches: 1.38.2; 1.38.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.37 |
| 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.36 |
| 16-Mar-2019 |
isaki | branches: 1.36.2; Use C99 style struct initializer to audio_hw_if.
|
| 1.35 |
| 09-Dec-2018 |
jdolecek | use pci_intr_establish_xname() everywhere
|
| 1.34 |
| 23-Jun-2018 |
maxv | branches: 1.34.2; constify
|
| 1.33 |
| 01-Jun-2017 |
chs | branches: 1.33.8; 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.32 |
| 29-Mar-2014 |
christos | branches: 1.32.6; make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
| 1.31 |
| 27-Oct-2012 |
chs | branches: 1.31.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
| 1.30 |
| 24-Nov-2011 |
mrg | branches: 1.30.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.29 |
| 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.28 |
| 13-Nov-2010 |
uebayasi | branches: 1.28.8; 1.28.10; Don't pull in the whole uvm(9) API to access only PAGE_SIZE and some other constants. These are provided by sys/param.h now.
|
| 1.27 |
| 24-Feb-2010 |
dyoung | branches: 1.27.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.26 |
| 08-Jan-2010 |
dyoung | branches: 1.26.2; Expand PMF_FN_* macros.
|
| 1.25 |
| 26-Nov-2009 |
njoly | Cleanup interrupt establish error messages. Do not mix aprint_error/aprint_normal/printf calls for a single line.
|
| 1.24 |
| 12-May-2009 |
cegger | use device_private(). "looks good" ad@ XXX for the device_t/softc split, please check the driver that no cases have been missed.
|
| 1.23 |
| 06-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
| 1.22 |
| 06-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
| 1.21 |
| 28-Apr-2008 |
martin | branches: 1.21.12; 1.21.14; Remove clause 3 and 4 from TNF licenses
|
| 1.20 |
| 10-Apr-2008 |
cegger | branches: 1.20.2; 1.20.4; use aprint_*_dev and device_xname
|
| 1.19 |
| 29-Feb-2008 |
dyoung | Use PMF_FN_ARGS, PMF_FN_PROTO.
|
| 1.18 |
| 09-Dec-2007 |
jmcneill | branches: 1.18.6; 1.18.10; Merge jmcneill-pm branch.
|
| 1.17 |
| 19-Oct-2007 |
ad | branches: 1.17.4; 1.17.6; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
| 1.16 |
| 04-Mar-2007 |
christos | branches: 1.16.2; 1.16.14; 1.16.16; 1.16.20; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
| 1.15 |
| 16-Nov-2006 |
christos | branches: 1.15.4; 1.15.6; __unused removal on arguments; approved by core.
|
| 1.14 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
| 1.13 |
| 24-Sep-2006 |
jmcneill | Add "name" parameter to powerhook_establish, to aid debugging. No objections on tech-kern@
|
| 1.12 |
| 27-Aug-2006 |
christos | branches: 1.12.2; 1.12.4; add missing initializer
|
| 1.11 |
| 11-Dec-2005 |
christos | branches: 1.11.4; 1.11.8; merge ktrace-lwp.
|
| 1.10 |
| 28-Jun-2005 |
thorpej | branches: 1.10.2; Use ANSI function decls and static.
|
| 1.9 |
| 30-May-2005 |
christos | - const poisoning - avoid variable shadowing.
|
| 1.8 |
| 17-Jan-2005 |
augustss | Make it compile with debug.
|
| 1.7 |
| 15-Jan-2005 |
kent | branches: 1.7.2; ansify and KNF
|
| 1.6 |
| 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.5 |
| 16-Nov-2004 |
augustss | branches: 1.5.2; Add RECORD to the conversion table, otherwise we panic on boot. The fact that we cannot record (yet) is found out later anyway.
|
| 1.4 |
| 13-Nov-2004 |
kent | adopt auconv_set_converter()
|
| 1.3 |
| 10-Nov-2004 |
kent | move IS_FIXED_RATE(), SUPPORTS_4CH(), and SUPPORTS_6CH to ac97var.h
|
| 1.2 |
| 09-Nov-2004 |
kent | remove unnecessary ac97-related code
|
| 1.1 |
| 10-Oct-2004 |
augustss | branches: 1.1.2; Add a driver for the Acer Labs M5455 audio controller. This controller is integrated in some ALi Southbridges.
XXX This driver is incomplete and slightly buggy, but it works enough to enable me to listen to music on my Sharp MM20.
|
| 1.1.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
| 1.1.2.6 |
| 24-Jan-2005 |
skrll | Sync with HEAD.
|
| 1.1.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
| 1.1.2.4 |
| 29-Nov-2004 |
skrll | Sync with HEAD.
|
| 1.1.2.3 |
| 14-Nov-2004 |
skrll | Sync with HEAD.
|
| 1.1.2.2 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
| 1.1.2.1 |
| 10-Oct-2004 |
skrll | file auacer.c was added on branch ktrace-lwp on 2004-10-19 15:56:57 +0000
|
| 1.5.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.5.2.1 |
| 02-Jan-2005 |
kent | * adopt the filter pipeline framework * follow ac97_attach() change
|
| 1.7.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
| 1.10.2.5 |
| 17-Mar-2008 |
yamt | sync with head.
|
| 1.10.2.4 |
| 21-Jan-2008 |
yamt | sync with head
|
| 1.10.2.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
| 1.10.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
| 1.10.2.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
| 1.11.8.1 |
| 03-Sep-2006 |
yamt | sync with head.
|
| 1.11.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
| 1.12.4.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
| 1.12.4.1 |
| 22-Oct-2006 |
yamt | sync with head
|
| 1.12.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
| 1.15.6.1 |
| 27-Feb-2007 |
ad | Add MP locking for audio drivers.
|
| 1.15.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
| 1.16.20.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
| 1.16.16.3 |
| 23-Mar-2008 |
matt | sync with HEAD
|
| 1.16.16.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
| 1.16.16.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
| 1.16.14.4 |
| 08-Dec-2007 |
jmcneill | Rename pnp(9) -> pmf(9), as requested by many.
|
| 1.16.14.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.16.14.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.16.14.1 |
| 04-Oct-2007 |
joerg | Convert to generic PCI power handler.
|
| 1.16.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
| 1.17.6.1 |
| 11-Dec-2007 |
yamt | sync with head.
|
| 1.17.4.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
| 1.18.10.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.18.10.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
| 1.18.6.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
| 1.20.4.3 |
| 11-Mar-2010 |
yamt | sync with head
|
| 1.20.4.2 |
| 16-May-2009 |
yamt | sync with head
|
| 1.20.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
| 1.20.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
| 1.21.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
| 1.21.12.3 |
| 13-Dec-2008 |
ad | Fix locking for ac97.
|
| 1.21.12.2 |
| 12-Dec-2008 |
ad | Checkpoint work in progress.
|
| 1.21.12.1 |
| 08-Dec-2008 |
ad | Convert some more drivers.
|
| 1.26.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
| 1.27.2.1 |
| 05-Mar-2011 |
rmind | sync with head
|
| 1.28.10.2 |
| 22-Nov-2011 |
jmcneill | get rid of unused 'powerstate' callback in audio_hw_if
|
| 1.28.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.28.8.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.28.8.2 |
| 30-Oct-2012 |
yamt | sync with head
|
| 1.28.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
| 1.30.8.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
| 1.30.8.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.30.8.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
| 1.31.2.1 |
| 18-May-2014 |
rmind | sync with head
|
| 1.32.6.1 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
| 1.33.8.2 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
| 1.33.8.1 |
| 25-Jun-2018 |
pgoyette | Sync with HEAD
|
| 1.34.2.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
| 1.34.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
| 1.36.2.3 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
| 1.36.2.2 |
| 27-Apr-2019 |
isaki | Adapt to audio2.
|
| 1.36.2.1 |
| 21-Apr-2019 |
isaki | Use C99 style struct initializer to audio_format.
|
| 1.38.4.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
| 1.38.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.
|