Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/amiga/dev/repulse.c
RevisionDateAuthorComments
 1.24  12-Feb-2022  andvar s/epxected/expected/
 1.23  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.22  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.21  16-Mar-2019  isaki branches: 1.21.2;
Use C99 style struct initializer to audio_hw_if.
 1.20  22-Jan-2014  christos branches: 1.20.30;
gcc-4.8.x unused variable fixes
 1.19  27-Oct-2012  chs branches: 1.19.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.18  23-Nov-2011  jmcneill branches: 1.18.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.17  19-Jul-2011  dyoung branches: 1.17.2; 1.17.4;
Change <machine/bus.h> to <sys/bus.h> throughout.
 1.16  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.15  11-Dec-2005  christos branches: 1.15.28; 1.15.74; 1.15.76; 1.15.78;
merge ktrace-lwp.
 1.14  13-Jun-2005  jmc Fix a ton of const/volatile issues shown with new warning flags
 1.13  15-Jan-2005  kent ansify and KNF
 1.12  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.11  09-Nov-2004  kent branches: 1.11.2;
remove mixer setting code in repulse_attach() because ac97_attach() does it
 1.10  29-Oct-2004  yamt constify audio_hw_if, midi_hw_if, and radio_hw_if.
 1.9  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.8  06-Apr-2003  wiz branches: 1.8.2; 1.8.4;
Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
 1.7  08-Oct-2002  kent Sync with the recent ac97 changes.
- AC97_CODEC_DOES_VRA -> AC97_EXT_AUDIO_VRA
- Use ac97_codec_if::get_extcaps()
- Remove VRA/VRM enabling code
 1.6  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.5  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4  28-Jan-2002  aymeric add __KERNEL_RCSID as suggested by Luke Mewburn
 1.3  26-Jan-2002  aymeric - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.2  03-Oct-2001  augustss branches: 1.2.4;
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.1  25-Aug-2001  is branches: 1.1.2; 1.1.4;
Driver for the ALiENDESiGN Repulse board.
- only 8/16 bit precision supported
- no support for the Repulse special S/P-DIF I/O yet
- I think ac97.c needs some work.
 1.1.4.5  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.1.4.4  11-Feb-2002  jdolecek Sync w/ -current.
 1.1.4.3  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.2  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.1.4.1  25-Aug-2001  thorpej file repulse.c was added on branch kqueue on 2001-09-13 01:13:00 +0000
 1.1.2.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.2.4.3  18-Oct-2002  nathanw Catch up to -current.
 1.2.4.2  28-Feb-2002  nathanw Catch up to -current.
 1.2.4.1  03-Oct-2001  nathanw file repulse.c was added on branch nathanw_sa on 2002-02-28 04:06:56 +0000
 1.8.4.1  22-Sep-2004  jmc Pullup rev 1.9 (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.8.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.2.4  17-Jan-2005  skrll Sync with HEAD.
 1.8.2.3  14-Nov-2004  skrll Sync with HEAD.
 1.8.2.2  02-Nov-2004  skrll Sync with HEAD.
 1.8.2.1  24-Sep-2004  skrll Sync with HEAD.
 1.11.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.11.2.1  03-Jan-2005  kent * adopt the filter pipeline framework.
* repulse.c follows ac97_attach() change
 1.15.78.1  16-May-2008  yamt sync with head.
 1.15.76.1  18-May-2008  yamt sync with head.
 1.15.74.1  02-Jun-2008  mjf Sync with HEAD.
 1.15.28.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.17.4.3  22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.17.4.2  20-Nov-2011  mrg complete the port to audiomp: don't forget to take sc_intr_lock in the
hardware interrupt routines.
 1.17.4.1  20-Nov-2011  mrg port this to audiomp branch. no allocm/freem here, no detach, so just
add/initialise sc_lock and sc_intr_lock, and add get_locks() support.

XXX: untested, but amiga kernels compile now.
 1.17.2.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.17.2.2  30-Oct-2012  yamt sync with head
 1.17.2.1  17-Apr-2012  yamt sync with head
 1.18.8.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.8.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.19.2.1  18-May-2014  rmind sync with head
 1.20.30.1  10-Jun-2019  christos Sync with HEAD
 1.21.2.2  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.21.2.1  21-Apr-2019  isaki Adapt to audio2.

RSS XML Feed