Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/cs428x.c
RevisionDateAuthorComments
 1.20  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.19  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.18  01-Jun-2017  chs branches: 1.18.10; 1.18.14;
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.17  27-Oct-2012  chs branches: 1.17.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.16  23-Nov-2011  jmcneill branches: 1.16.8;
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.15  10-Apr-2008  cegger branches: 1.15.16; 1.15.38; 1.15.40;
use aprint_*_dev and device_xname
 1.14  19-Oct-2007  ad branches: 1.14.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.13  16-Nov-2006  christos branches: 1.13.6; 1.13.8; 1.13.22; 1.13.24; 1.13.28;
__unused removal on arguments; approved by core.
 1.12  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.11  15-Apr-2006  jmcneill branches: 1.11.8; 1.11.10;
Add support for the Turtle Beach Santa Cruz. Special thanks to Stephane
Witzmann for spending so much time debugging this.

Fixes: kern/18880, kern/24488, port-i386/14260, kern/12603, kern/12723,
kern/24957, kern/23584

Tested on i386 (Stephane Witzmann), alpha (me).
 1.10  11-Dec-2005  christos branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10; 1.10.12;
merge ktrace-lwp.
 1.9  15-Jan-2005  kent branches: 1.9.10;
ansify and KNF
 1.8  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.7  09-Jul-2004  mycroft branches: 1.7.2;
There's no need to halt the input and output pipes in the close routine --
audio_close() takes care of this.
 1.6  03-May-2003  wiz branches: 1.6.2;
DMA, not dma nor Dma.
 1.5  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.4  15-Nov-2001  lukem don't need <sys/types.h> when including <sys/param.h>
 1.3  13-Nov-2001  lukem add RCSID
 1.2  18-Apr-2001  tacha branches: 1.2.2; 1.2.4;
rewrite suspend/resume routine. If you suspend while playing audio,
clcs and clct continue playing when resume.
 1.1  07-Feb-2001  tacha branches: 1.1.2; 1.1.4;
Split out common code to cs428x.c and cosmetic change to introduce
higher symmetry between cs4280.c and cs4281.c.

Also fix the problem rebooting from Windows. Relevant patch is contributed
from Shingo WATANABE <nabe@nabechan.org>.
 1.1.4.3  08-Jan-2002  nathanw Catch up to -current.
 1.1.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.1.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.1.2.3  21-Apr-2001  bouyer Sync with HEAD
 1.1.2.2  11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1  07-Feb-2001  bouyer file cs428x.c was added on branch thorpej_scsipi on 2001-02-11 19:15:52 +0000
 1.2.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.2  06-May-2001  he Pull up revisions 1.1-1.2 (new, requested by he):
Add driver for Cirrus Logic CrystalClear PCI Audio CS4281.
 1.2.2.1  18-Apr-2001  he file cs428x.c was added on branch netbsd-1-5 on 2001-05-06 15:11:14 +0000
 1.6.2.4  17-Jan-2005  skrll Sync with HEAD.
 1.6.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.6.2.1  03-Aug-2004  skrll Sync with HEAD
 1.7.2.1  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.9.10.3  27-Oct-2007  yamt sync with head.
 1.9.10.2  30-Dec-2006  yamt sync with head.
 1.9.10.1  21-Jun-2006  yamt sync with head.
 1.10.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.10.10.1  19-Apr-2006  elad sync with head.
 1.10.8.1  24-May-2006  yamt sync with head.
 1.10.6.1  22-Apr-2006  simonb Sync with head.
 1.10.4.1  09-Sep-2006  rpaulo sync with head
 1.11.10.2  10-Dec-2006  yamt sync with head.
 1.11.10.1  22-Oct-2006  yamt sync with head
 1.11.8.1  18-Nov-2006  ad Sync with head.
 1.13.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.13.24.1  06-Nov-2007  matt sync with HEAD
 1.13.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.13.8.1  23-Oct-2007  ad Sync with head.
 1.13.6.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.14.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.15.40.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.15.38.2  30-Oct-2012  yamt sync with head
 1.15.38.1  17-Apr-2012  yamt sync with head
 1.15.16.2  12-Dec-2008  ad Checkpoint work in progress.
 1.15.16.1  11-Dec-2008  ad Checkpoint work in progress.
 1.16.8.2  03-Dec-2017  jdolecek update from HEAD
 1.16.8.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.17.14.1  28-Aug-2017  skrll Sync with HEAD
 1.18.14.3  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.18.14.2  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.18.14.1  21-Apr-2019  isaki Adapt cs428x families to audio2.
- recording on cs4280 seems to have its own conversion.
I will see it later but first make it compilable.
 1.18.10.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed