History log of /src/sys/dev/ic/cs4231.c |
Revision | | Date | Author | Comments |
1.32 |
| 10-Nov-2019 |
chs | in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.31 |
| 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.30 |
| 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.29 |
| 01-Jun-2017 |
chs | branches: 1.29.10; 1.29.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.28 |
| 28-Nov-2011 |
jmcneill | branches: 1.28.8; 1.28.26; PR# kern/45664: audio panic at detach
Pass the size of the structure to kmem_free, not the size of the DMA buffer.
|
1.27 |
| 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.26 |
| 02-Jun-2011 |
christos | branches: 1.26.2; 1.26.4; split audiocs
|
1.25 |
| 16-Apr-2010 |
dyoung | branches: 1.25.2; 1.25.6; #include <sys/bus.h> instead of <machine/bus.h>. No functional change intended.
|
1.24 |
| 14-Jan-2010 |
macallan | branches: 1.24.2; 1.24.4; set a delta value on the master channel and move it to the outputs class so volume control via PMF works
|
1.23 |
| 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.22 |
| 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.21 |
| 08-Apr-2008 |
cegger | branches: 1.21.2; 1.21.4; use aprint_*_dev and device_xname
|
1.20 |
| 11-Dec-2007 |
martin | branches: 1.20.8; const'ify ad1848 devmap.
|
1.19 |
| 19-Oct-2007 |
ad | branches: 1.19.4; 1.19.6; 1.19.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.18 |
| 11-Dec-2005 |
christos | branches: 1.18.30; 1.18.44; 1.18.46; 1.18.50; merge ktrace-lwp.
|
1.17 |
| 15-Jan-2005 |
kent | branches: 1.17.10; ansify and KNF
|
1.16 |
| 09-Jul-2004 |
petrov | Remove unused variable.
|
1.15 |
| 09-Jul-2004 |
mycroft | Remove junk code.
|
1.14 |
| 22-Apr-2004 |
itojun | sprintf -> snprintf
|
1.13 |
| 10-Sep-2003 |
uwe | G/c cs4231_round_buffersize and cs4231_round_blocksize. The round_* mehtods are DMA-specific, so don't belong here in the first place. SBus and EBus glue already changed to do the right thing.
|
1.12 |
| 03-May-2003 |
wiz | branches: 1.12.2; DMA, not dma nor Dma.
|
1.11 |
| 01-Feb-2003 |
martin | Clenup malloc signature change fallout.
|
1.10 |
| 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.9 |
| 22-Aug-2002 |
martin | Argh! Remove accidently commited debug changes.
|
1.8 |
| 22-Aug-2002 |
martin | Fix output volume handling, port-sparc64/18033 from Sung-Won Chung.
|
1.7 |
| 12-Mar-2002 |
uwe | branches: 1.7.4; Rework the driver to add EBus DMA support and improve APC DMA support. Audio-related stuff is left almost intact.
* support audiocs at ebus playback and capture tested on krups and u5 (thanks, martin) * make first attempt at supporting audiocs at sbus capture * nb: full-duplex is not tested * while here, fix CSAUDIO_MONITOR_MUTE to be of CSAUDIO_MONITOR_CLASS i.e. outputs.monitor.mute -> monitor.monitor.mute
Ok by pk, eeh.
|
1.6 |
| 13-Nov-2001 |
lukem | add/cleanup RCSID
|
1.5 |
| 03-Oct-2001 |
augustss | 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.4 |
| 16-Jun-2000 |
pk | branches: 1.4.4; 1.4.6; 1.4.8; Comply with bus_dma(9) specs.
|
1.3 |
| 30-Mar-2000 |
augustss | branches: 1.3.2; Remove register declarations.
|
1.2 |
| 28-Jan-2000 |
pk | Reset audio chip on device open.
|
1.1 |
| 05-Jun-1999 |
mrg | branches: 1.1.2; 1.1.4; split sbus audiocs code up so we can share it with the ebus. XXX ebus DMA is probably different.
|
1.1.4.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.1.2.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.3.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.4.8.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.4.6.3 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.4.6.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.4.6.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.4.4.4 |
| 27-Aug-2002 |
nathanw | Catch up to -current.
|
1.4.4.3 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.4.4.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.4.4.1 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.7.4.1 |
| 29-Aug-2002 |
gehenna | catch up with -current.
|
1.12.2.4 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.12.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.12.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.12.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.17.10.2 |
| 21-Jan-2008 |
yamt | sync with head
|
1.17.10.1 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.18.50.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.18.46.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.18.46.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.18.44.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.18.30.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.19.8.1 |
| 13-Dec-2007 |
bouyer | Sync with HEAD
|
1.19.6.1 |
| 11-Dec-2007 |
yamt | sync with head.
|
1.19.4.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.20.8.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.21.4.3 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.21.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.21.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.21.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.24.4.2 |
| 12-Jun-2011 |
rmind | sync with head
|
1.24.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.24.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.25.6.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.25.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.26.4.1 |
| 20-Nov-2011 |
mrg | make audiocs(4) compile. i don't have anything handy to actually test this easily, but this was just updating the alloc/free to kmem and hooking into ad1848_get_locks().
|
1.26.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.28.26.1 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.28.8.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.29.14.1 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
1.29.10.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.29.10.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|