History log of /src/sys/arch/hpcmips/vr/vraiu.c |
Revision | | Date | Author | Comments |
1.20 |
| 13-Jan-2021 |
skrll | Don't advertise AUDIO_PROP_CAPTURE - no capture method is provided
[ 1.0000000] audio0 at vraiu0: missing capture method
|
1.19 |
| 23-Feb-2020 |
isaki | branches: 1.19.6; Make start_input/halt_input optional if the driver has no recording, make start_output/halt_output optional if the driver has no playback. And remove such never called functions.
|
1.18 |
| 08-Jun-2019 |
isaki | branches: 1.18.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.17 |
| 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.16 |
| 16-Mar-2019 |
isaki | branches: 1.16.2; Use C99 style struct initializer to audio_hw_if.
|
1.15 |
| 27-Oct-2012 |
chs | branches: 1.15.38; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.14 |
| 24-Nov-2011 |
mrg | branches: 1.14.8; put back IPL_AUDIO and splaudio(), at the request of rmind. they are aliases and now we can easily revert audio to IPL_VM if necessary, without having to revert the whole branch.
|
1.13 |
| 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.12 |
| 04-Mar-2007 |
christos | branches: 1.12.78; 1.12.80; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.11 |
| 11-Dec-2005 |
christos | branches: 1.11.26; merge ktrace-lwp.
|
1.10 |
| 15-Jan-2005 |
kent | branches: 1.10.10; 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 |
| 04-Feb-2004 |
jmcneill | The vraiu(4) hardware doesn't provide any interface for volume control. Added software volume control functionality in vraiu_volume(), called from vraiu_start(). Can be changed by the mixerctl 'inputs.dac' -- 0 is muted, 255 is the level that the driver previously outputted (quite loud on the IBM Workpad Z50), and everything else is a smooth transition between the two. Thanks to toddpw@ for lending me the hardware to test these changes.
|
1.6 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.5 |
| 03-May-2003 |
wiz | branches: 1.5.2; DMA, not dma nor Dma.
|
1.4 |
| 06-Apr-2003 |
wiz | Respect the law: Use A-law and mu-law as spellings as far as easily possible. Inspired by Igor Sobrado in PR 19680.
|
1.3 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.2 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.1 |
| 23-Mar-2002 |
hamajima | branches: 1.1.2; 1.1.8; add VR4121 Audio Interface Unit
|
1.1.8.3 |
| 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.8.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.1.8.1 |
| 23-Mar-2002 |
jdolecek | file vraiu.c was added on branch kqueue on 2002-06-23 17:36:56 +0000
|
1.1.2.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.1.2.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.1.2.1 |
| 23-Mar-2002 |
nathanw | file vraiu.c was added on branch nathanw_sa on 2002-04-01 07:40:28 +0000
|
1.5.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.5.2.4 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.5.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.5.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.5.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.8.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.8.2.1 |
| 03-Jan-2005 |
kent | adopt the filter pipeline framework
|
1.10.10.1 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.11.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.12.80.2 |
| 22-Nov-2011 |
jmcneill | get rid of unused 'powerstate' callback in audio_hw_if
|
1.12.80.1 |
| 20-Nov-2011 |
jmcneill | adapt to audiomp api changes
|
1.12.78.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.12.78.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.14.8.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.15.38.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.15.38.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.16.2.3 |
| 04-May-2019 |
isaki | Move dev/audio_if.h -> dev/audio/audio_if.h
|
1.16.2.2 |
| 04-May-2019 |
isaki | Remove sc_status flag. Such flag that indicates whether the device is opened is handled in the upper layer now. And it also fixes that was not able to call commit_setting() before open() since netbsd-8.
|
1.16.2.1 |
| 21-Apr-2019 |
isaki | Adapt to audio2.
|
1.18.4.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
1.19.6.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|