History log of /src/sys/dev/ic/ad1848.c |
Revision | | Date | Author | Comments |
1.34 |
| 09-Feb-2024 |
andvar | fix spelling mistakes, mainly in comments and log messages.
|
1.33 |
| 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.32 |
| 08-May-2019 |
isaki | branches: 1.32.4; 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.31 |
| 23-Nov-2011 |
jmcneill | branches: 1.31.50; 1.31.54; 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.30 |
| 27-Apr-2011 |
plunky | branches: 1.30.4; 1.30.6; drop 'external' inline here, to avoid C99 vs GNU differences
|
1.29 |
| 28-Apr-2008 |
martin | branches: 1.29.12; 1.29.22; 1.29.28; Remove clause 3 and 4 from TNF licenses
|
1.28 |
| 28-Apr-2008 |
garbled | Minor fixes to some of these files: Add recognition for the CS4232C revision chip. (0xa2) Make ic/ad1848.c compile with AUDIO_DEBUG Add a needed machine/bus.h include to ic/cs4231.c Add a few additional register defines to ic/cs4231reg.h
|
1.27 |
| 11-Dec-2007 |
martin | branches: 1.27.8; 1.27.10; 1.27.12; const'ify ad1848 devmap.
|
1.26 |
| 19-Oct-2007 |
ad | branches: 1.26.4; 1.26.6; 1.26.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.25 |
| 16-Nov-2006 |
christos | branches: 1.25.8; 1.25.22; 1.25.24; 1.25.28; __unused removal on arguments; approved by core.
|
1.24 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.23 |
| 03-Sep-2006 |
christos | branches: 1.23.2; 1.23.4; avoid empty if statements
|
1.22 |
| 24-Dec-2005 |
perry | branches: 1.22.4; 1.22.8; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.21 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.20 |
| 15-Jan-2005 |
kent | branches: 1.20.10; ansify and KNF
|
1.19 |
| 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.18 |
| 24-Aug-2004 |
thorpej | branches: 1.18.2; Use ANSI function decls and more use of static.
|
1.17 |
| 21-Feb-2003 |
tsutsui | branches: 1.17.2; hz -> Hz
|
1.16 |
| 06-Jan-2003 |
wiz | synchronous, not syncronous.
|
1.15 |
| 22-Aug-2002 |
martin | Add a mixerctl to mute the internal (mono) speaker via "mixerctl -w monitor.mono=off".
From Sung-Won Chung, slightly modified. All errors by me.
|
1.14 |
| 23-Mar-2002 |
itohy | branches: 1.14.2; Add wait-for-ready code between setting MCE and changing data format, which is required by OPL3-SA2 (YMF711) chip. Fixes PR kern/14819.
|
1.13 |
| 06-Mar-2002 |
itohy | Fix ADPCM playback/recording.
|
1.12 |
| 13-Nov-2001 |
lukem | add/cleanup RCSID
|
1.11 |
| 04-Nov-2001 |
itohy | AD1845 on my AlphaStation 255 doesn't match the AD1845 doc. Try to detect AD1845 (unfortunately this is not always correct) and work around the problems.
|
1.10 |
| 18-Jan-2001 |
jdolecek | branches: 1.10.2; 1.10.4; 1.10.8; constify
|
1.9 |
| 01-Nov-1999 |
augustss | branches: 1.9.6; Make little endian and big endian version of all functions that deal with 16 bit samples. Let the drivers decide which ones to use.
|
1.8 |
| 12-Oct-1999 |
thorpej | branches: 1.8.2; 1.8.4; Bound one auto-calibration loop that was missed in previous rounds of changes.
Yay, audio on my Dell laptop works again.
|
1.7 |
| 05-Oct-1999 |
itohy | branches: 1.7.2; - Fix wait for ready code. - Mute wave output, not the mixer output, on changing CODEC settings. - Add support for muting wave output while playback or monitoring is inactive. - Change formula of calculating gain so that all the levels should be used equally (the old code uses the min/max gain only at 0/255). - Cleanup
|
1.6 |
| 06-Sep-1999 |
rh | Add mode 3 support for newer CS423X chips. Modify probe to correctly distinguish between CS4236, CS4236B, and CS4237B.
|
1.5 |
| 18-Feb-1999 |
mycroft | Add separate halt_input and halt_output methods in ad1848_isa, which disable the DMA channel.
|
1.4 |
| 17-Feb-1999 |
mycroft | Use the trigger interface, and clean up a pile of cruft.
|
1.3 |
| 27-Aug-1998 |
pk | Move a few prototypes. Whitespace cleanup.
|
1.2 |
| 26-Aug-1998 |
pk | debug level 0
|
1.1 |
| 25-Aug-1998 |
pk | The new MI part of the AD1848 driver.
|
1.7.2.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.8.4.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
1.8.2.2 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.8.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.9.6.1 |
| 27-Mar-2002 |
he | Pull up revisions 1.10-1.14 (requested by itohy): Several changes to wss-compatible audio devices: o Fix ADPCM playback/recording o Add explicit support for OPL3-SA2 (YMF711), fixes PR#14819 o Add AD1845 support o other minor bugfixes and cleanups
|
1.10.8.1 |
| 12-Nov-2001 |
thorpej | Sync the thorpej-mips-cache branch with -current.
|
1.10.4.4 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.10.4.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.10.4.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.10.4.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.10.2.4 |
| 07-Jan-2003 |
thorpej | Sync with HEAD.
|
1.10.2.3 |
| 27-Aug-2002 |
nathanw | Catch up to -current.
|
1.10.2.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.10.2.1 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.14.2.1 |
| 29-Aug-2002 |
gehenna | catch up with -current.
|
1.17.2.4 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.17.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.17.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.17.2.1 |
| 25-Aug-2004 |
skrll | Sync with HEAD.
|
1.18.2.3 |
| 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.18.2.2 |
| 03-Jan-2005 |
kent | * remove stream_filter_list_append and stream_filter_list_prepend * add stream_filter_list_t::{append(), prepend(), set()}
|
1.18.2.1 |
| 03-Jan-2005 |
kent | * adopt the filter pipeline framework
* ic/ad1848.c, isa/ess.c, isa/sbdsp.c remove direct call of set_params() for the default encoding. It should be called by the MI audio framework.
|
1.20.10.4 |
| 21-Jan-2008 |
yamt | sync with head
|
1.20.10.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.20.10.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.20.10.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.22.8.1 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.22.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.23.4.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.23.4.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.23.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.25.28.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.25.24.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.25.24.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.25.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.25.8.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.26.8.1 |
| 13-Dec-2007 |
bouyer | Sync with HEAD
|
1.26.6.1 |
| 11-Dec-2007 |
yamt | sync with head.
|
1.26.4.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.27.12.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.27.10.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.27.8.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.29.28.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.29.22.1 |
| 31-May-2011 |
rmind | sync with head
|
1.29.12.2 |
| 12-Dec-2008 |
ad | Checkpoint work in progress.
|
1.29.12.1 |
| 11-Dec-2008 |
ad | Checkpoint work in progress.
|
1.30.6.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.30.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.31.54.2 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
1.31.54.1 |
| 21-Apr-2019 |
isaki | Adapt ad1848/cs4231 families to audio2.
|
1.31.50.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.31.50.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.32.4.1 |
| 29-Feb-2020 |
ad | Sync with head.
|