Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/amiga/dev/toccata.c
RevisionDateAuthorComments
 1.22  27-Aug-2023  andvar amiga/toccata(4): define ad1848debug to fix AUDIO_DEBUG enabled amiga build.

The code is taken from sys/dev/isa/ad1848_isa.c for consistency.
Unsure, if new debug level variable wouldn't be better or it is needed at all.
 1.21  29-Feb-2020  isaki Remove rounding by 4 bytes on round_blocksize().
For drivers which supports only 16bit * 2channels sampling,
rounding by 4 bytes no longer meaningful.
 1.20  08-Jun-2019  isaki branches: 1.20.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.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  16-Mar-2019  isaki branches: 1.18.2;
Use C99 style struct initializer to audio_hw_if.
 1.17  22-Jan-2014  christos branches: 1.17.30;
gcc-4.8.x unused variable fixes
 1.16  09-Dec-2013  wiz Fix typo ("then" instead of "than")
 1.15  23-Nov-2011  jmcneill branches: 1.15.8; 1.15.12;
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.14  19-Jul-2011  dyoung branches: 1.14.2; 1.14.4;
Change <machine/bus.h> to <sys/bus.h> throughout.
 1.13  02-Jun-2011  tsutsui Split device_t/softc of all ad1848 variants properly. Compile test only.

Please check all attribute users in all files.* on device_t/softc split.

XXX: not sure if gus(4) needs device_t in ad1848_isa_softc
 1.12  28-Apr-2008  martin branches: 1.12.22; 1.12.28; 1.12.32;
Remove clause 3 and 4 from TNF licenses
 1.11  11-Dec-2005  christos branches: 1.11.28; 1.11.74; 1.11.76; 1.11.78;
merge ktrace-lwp.
 1.10  15-Jan-2005  kent ansify and KNF
 1.9  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.8  29-Oct-2004  yamt branches: 1.8.2;
constify audio_hw_if, midi_hw_if, and radio_hw_if.
 1.7  10-Jan-2004  is remove forgotten debug printf from development.
 1.6  06-Jan-2003  wiz branches: 1.6.2;
interrupt with two rs.
 1.5  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3  27-Mar-2002  christos branches: 1.3.4;
fix compilo in debugging code. Reported by: Klaus Heinz
 1.2  28-Jan-2002  aymeric branches: 1.2.2; 1.2.4;
add __KERNEL_RCSID as suggested by Luke Mewburn
 1.1  21-Jan-2002  is First draft of a Toccata driver.
 1.2.4.5  07-Jan-2003  thorpej Sync with HEAD.
 1.2.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.2.4.3  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.4.2  28-Feb-2002  nathanw Catch up to -current.
 1.2.4.1  28-Jan-2002  nathanw file toccata.c was added on branch nathanw_sa on 2002-02-28 04:07:01 +0000
 1.2.2.4  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.2.2.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.2.2.1  28-Jan-2002  jdolecek file toccata.c was added on branch kqueue on 2002-02-11 20:07:08 +0000
 1.3.4.1  15-Mar-2004  jmc Pullup rev 1.7 (requested by is in ticket #1593)

Remove forgotten debug printf from development.
 1.6.2.5  17-Jan-2005  skrll Sync with HEAD.
 1.6.2.4  02-Nov-2004  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.8.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.11.78.1  16-May-2008  yamt sync with head.
 1.11.76.1  18-May-2008  yamt sync with head.
 1.11.74.1  02-Jun-2008  mjf Sync with HEAD.
 1.11.28.1  27-Feb-2007  ad Add MP locking for audio drivers.
 1.12.32.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.12.28.1  06-Jun-2011  jruoho Sync with HEAD.
 1.12.22.1  12-Jun-2011  rmind sync with head
 1.14.4.2  22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.14.4.1  20-Nov-2011  mrg port these to audiomp: support get_locks, and take the intr_lock
in the interrupt handler.
 1.14.2.2  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.14.2.1  17-Apr-2012  yamt sync with head
 1.15.12.1  18-May-2014  rmind sync with head
 1.15.8.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.30.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.17.30.1  10-Jun-2019  christos Sync with HEAD
 1.18.2.3  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.18.2.2  04-May-2019  isaki Remove obsoleted methods in audio_hw_if.
- drain: is handled in audio upper layer now.
- mappage: is handled in audio upper layer now.
- setfd: no one uses and it's meaningless now.
 1.18.2.1  21-Apr-2019  isaki Adapt ad1848/cs4231 families to audio2.
 1.20.4.1  29-Feb-2020  ad Sync with head.

RSS XML Feed