| #
7635878d |
| 27-Aug-2023 |
andvar <andvar@NetBSD.org> |
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 o
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.
show more ...
|
| #
c509fb12 |
| 29-Feb-2020 |
isaki <isaki@NetBSD.org> |
Remove rounding by 4 bytes on round_blocksize(). For drivers which supports only 16bit * 2channels sampling, rounding by 4 bytes no longer meaningful.
|
| #
ede47d01 |
| 08-Jun-2019 |
isaki <isaki@NetBSD.org> |
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 CA
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.
show more ...
|
| #
e622eac4 |
| 08-May-2019 |
isaki <isaki@NetBSD.org> |
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.
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
show more ...
|
| #
6291b134 |
| 16-Mar-2019 |
isaki <isaki@NetBSD.org> |
Use C99 style struct initializer to audio_hw_if.
|
| #
26a64d43 |
| 22-Jan-2014 |
christos <christos@NetBSD.org> |
gcc-4.8.x unused variable fixes
|
| #
d860f590 |
| 09-Dec-2013 |
wiz <wiz@NetBSD.org> |
Fix typo ("then" instead of "than")
|
| #
8a962f23 |
| 23-Nov-2011 |
jmcneill <jmcneill@NetBSD.org> |
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
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.
show more ...
|
| #
3a45360b |
| 19-Jul-2011 |
dyoung <dyoung@NetBSD.org> |
Change <machine/bus.h> to <sys/bus.h> throughout.
|
| #
ff2f721f |
| 02-Jun-2011 |
tsutsui <tsutsui@NetBSD.org> |
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_i
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
show more ...
|
| #
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
| #
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
| #
93293b9e |
| 15-Jan-2005 |
kent <kent@NetBSD.org> |
ansify and KNF
|
| #
23b5d914 |
| 10-Jan-2005 |
kent <kent@NetBSD.org> |
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_en
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
show more ...
|
| #
18f717bb |
| 29-Oct-2004 |
yamt <yamt@NetBSD.org> |
constify audio_hw_if, midi_hw_if, and radio_hw_if.
|
| #
87374696 |
| 10-Jan-2004 |
is <is@NetBSD.org> |
remove forgotten debug printf from development.
|
| #
7e681f70 |
| 06-Jan-2003 |
wiz <wiz@NetBSD.org> |
interrupt with two rs.
|
| #
c5e91d44 |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
| #
9a711d69 |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Declare all cfattach structures const.
|
| #
db95aa87 |
| 27-Mar-2002 |
christos <christos@NetBSD.org> |
fix compilo in debugging code. Reported by: Klaus Heinz
|
| #
1ea4df81 |
| 28-Jan-2002 |
aymeric <aymeric@NetBSD.org> |
add __KERNEL_RCSID as suggested by Luke Mewburn
|
| #
5e5bb729 |
| 21-Jan-2002 |
is <is@NetBSD.org> |
First draft of a Toccata driver.
|