Up to [cvs.NetBSD.org] / src / sys / dev
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.261 / (download) - annotate - [select for diffs], Mon Apr 30 02:16:46 2012 UTC (13 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
tls-maxphys-nbase,
tls-maxphys-base,
tls-maxphys,
khorben-n900,
jmcneill-usbmp-base10,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.260: +4 -4
lines
Diff to previous 1.260 (colored)
ensure that the intr lock is held for all audio_clear() callers.
Revision 1.260 / (download) - annotate - [select for diffs], Fri Apr 6 06:15:13 2012 UTC (14 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
jmcneill-usbmp-base9
Changes since 1.259: +14 -14
lines
Diff to previous 1.259 (colored)
don't hold the thread lock while calling allocm() or freem(). fixes PR#46121
Revision 1.259 / (download) - annotate - [select for diffs], Mon Mar 26 18:26:10 2012 UTC (14 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8
Changes since 1.258: +19 -11
lines
Diff to previous 1.258 (colored)
deal with PR#46232: ensure locking around audio_clear() is handled consistently and avoid locking against self.
Revision 1.258 / (download) - annotate - [select for diffs], Tue Feb 21 20:53:34 2012 UTC (15 months, 3 weeks ago) by nonaka
Branch: MAIN
CVS Tags: jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Changes since 1.257: +3 -3
lines
Diff to previous 1.257 (colored)
kern/45927: fix incorrect assert.
Revision 1.257 / (download) - annotate - [select for diffs], Tue Dec 13 12:26:32 2011 UTC (18 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.256: +4 -4
lines
Diff to previous 1.256 (colored)
- convert the audio softintr's to SOFTINT_SERIAL. right now they're on the same priority level as USB and if an audio softintr is blocked waiting for a usb event, they'll dead lock. also, audio being higher priority is a fine idea. - revert the previous audio.c changes as they were unsafe and this change obviates the need for them. XXX: convert the audio softint's to use a high priority thread or a XXX: workqueue would be better again.
Revision 1.256 / (download) - annotate - [select for diffs], Fri Dec 9 05:08:25 2011 UTC (18 months, 1 week ago) by mrg
Branch: MAIN
Changes since 1.255: +4 -2
lines
Diff to previous 1.255 (colored)
drop the thread lock in a couple of error cases that were missing.
Revision 1.255 / (download) - annotate - [select for diffs], Fri Nov 25 03:13:06 2011 UTC (18 months, 3 weeks ago) by jakllsch
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.254: +4 -4
lines
Diff to previous 1.254 (colored)
Correct copy/paste/modify issue in audio_suspend().
Revision 1.254 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:31 2011 UTC (18 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.253: +661 -419
lines
Diff to previous 1.253 (colored)
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.
Revision 1.253 / (download) - annotate - [select for diffs], Tue Sep 6 01:16:44 2011 UTC (21 months, 1 week ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base
Branch point for: yamt-pagecache,
jmcneill-audiomp3
Changes since 1.252: +4 -2
lines
Diff to previous 1.252 (colored)
Add AUDIO_ENCODING_AC3 encoding type.
Revision 1.252 / (download) - annotate - [select for diffs], Sat Nov 20 18:03:49 2010 UTC (2 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.251: +4 -4
lines
Diff to previous 1.251 (colored)
Fix botches in rev 1.185 (kent-audio1 merge) which cause buffer overrun and "tlb_exception: no copyin/out fault hander" panic in audio_fill_silence() after audio playback on dreamcast. The problem is tracked and fix is provieded by Ryo SHIMIZU, who is the auther of aica(4) audio driver for dreamcast.
Revision 1.251 / (download) - annotate - [select for diffs], Wed Feb 24 22:37:56 2010 UTC (3 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.250: +6 -6
lines
Diff to previous 1.250 (colored)
A pointer typedef entails trading too much flexibility to declare const and non-const types, and the kernel uses both const and non-const PMF qualifiers and device suspensors, so change the pmf_qual_t and device_suspensor_t typedefs from "pointers to const" to non-pointer, non-const types.
Revision 1.250 / (download) - annotate - [select for diffs], Fri Jan 8 20:05:15 2010 UTC (3 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.249: +6 -6
lines
Diff to previous 1.249 (colored)
Expand PMF_FN_* macros.
Revision 1.249 / (download) - annotate - [select for diffs], Sun Dec 6 22:42:48 2009 UTC (3 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.248: +6 -9
lines
Diff to previous 1.248 (colored)
Simplify these device-activation hooks using the following semantic
patch.
XXX sc_dying must die.
@@
type device_t;
identifier act, midi_softc, midiactivate, sc, self;
@@
int
midiactivate(device_t self, enum devact act)
{
(
struct midi_softc *sc = device_private(self);
|
- struct midi_softc *sc;
+ struct midi_softc *sc = device_private(self);
...
- sc = device_private(self);
)
...
switch (act) {
- case DVACT_ACTIVATE:
- return (EOPNOTSUPP);
-
case DVACT_DEACTIVATE:
(
sc->dying
|
sc->sc_dying
)
=
(
1
|
true
)
;
- break;
+ return 0;
+ default:
+ return EOPNOTSUPP;
}
- return (0);
}
Revision 1.248 / (download) - annotate - [select for diffs], Tue Sep 29 15:58:54 2009 UTC (3 years, 8 months ago) by sborrill
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.247: +146 -70
lines
Diff to previous 1.247 (colored)
Add support for playback- or capture-only devices by adding AUDIO_PROP_PLAYBACK and AUDIO_PROP_CAPTURE properties. From jmcneill@. Fixes PR#42050
Revision 1.247 / (download) - annotate - [select for diffs], Thu Sep 24 16:03:11 2009 UTC (3 years, 8 months ago) by sborrill
Branch: MAIN
Changes since 1.246: +5 -8
lines
Diff to previous 1.246 (colored)
Revert previous and instead select whether to call mixer_ioctl() or audio_ioctl() based on whether the command smells like a mixer ioctl or not.
Revision 1.246 / (download) - annotate - [select for diffs], Thu Sep 24 11:13:38 2009 UTC (3 years, 8 months ago) by sborrill
Branch: MAIN
Changes since 1.245: +8 -2
lines
Diff to previous 1.245 (colored)
OSS audio allows mixer operations on the dsp device. NetBSD would return EINVAL in these circumstances. This can break audio in apps running under Linux emulation (e.g. Citrix ICA client will mute all audio when volume control used). Therefore, pass unrecognised ioctls attempted on dsp devices to mixer_ioctl.
Revision 1.245 / (download) - annotate - [select for diffs], Wed Sep 16 16:34:50 2009 UTC (3 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.244: +7 -7
lines
Diff to previous 1.244 (colored)
In pmf(9), improve the implementation of device self-suspension
and make suspension by self, by drvctl(8), and by ACPI system sleep
play nice together. Start solidifying some temporary API changes.
1. Extract a new header file, <sys/device_if.h>, from <sys/device.h> and
#include it from <sys/pmf.h> instead of <sys/device.h> to break the
circular dependency between <sys/device.h> and <sys/pmf.h>.
2. Introduce pmf_qual_t, an aggregate of qualifications on a PMF
suspend/resume call. Start to replace instances of PMF_FN_PROTO,
PMF_FN_ARGS, et cetera, with a pmf_qual_t.
3. Introduce the notion of a "suspensor," an entity that holds a
device in suspension. More than one suspensor may hold a device
at once. A device stays suspended as long as at least one
suspensor holds it. A device resumes when the last suspensor
releases it.
Currently, the kernel defines three suspensors,
3a the system-suspensor: for system suspension, initiated
by 'sysctl -w machdep.sleep_state=3', by lid closure, by
power-button press, et cetera,
3b the drvctl-suspensor: for device suspension by /dev/drvctl
ioctl, e.g., drvctl -S sip0.
3c the system self-suspensor: for device drivers that suspend
themselves and their children. Several drivers for network
interfaces put the network device to sleep while it is not
administratively up, that is, after the kernel calls if_stop(,
1). The self-suspensor should not be used directly. See
the description of suspensor delegates, below.
A suspensor can have one or more "delegates". A suspensor can
release devices that its delegates hold suspended. Right now,
only the system self-suspensor has delegates. For each device
that a self-suspending driver attaches, it creates the device's
self-suspensor, a delegate of the system self-suspensor.
Suspensors stop a system-wide suspend/resume cycle from waking
devices that the operator put to sleep with drvctl before the cycle.
They also help self-suspension to work more simply, safely, and in
accord with expectations.
4. Add the notion of device activation level, devact_level_t,
and a routine for checking the current activation level,
device_activation(). Current activation levels are DEVACT_LEVEL_BUS,
DEVACT_LEVEL_DRIVER, and DEVACT_LEVEL_CLASS, which respectively
indicate that the device's bus is active, that the bus and device are
active, and that the bus, device, and the functions of the device's
class (network, audio) are active.
Suspend/resume calls can be qualified with a devact_level_t.
The power-management framework treats a devact_level_t that
qualifies a device suspension as the device's current activation
level; it only runs hooks to reduce the activation level from
the presumed current level to the fully suspended state. The
framework treats a devact_level_t qualifying device resumption
as the target activation level; it only runs hooks to raise the
activation level to the target.
5. Use pmf_qual_t, devact_level_t, and self-suspensors in several
drivers.
6. Temporarily add an unused power-management workqueue that I will
remove or replace, soon.
Revision 1.244 / (download) - annotate - [select for diffs], Fri Apr 17 20:04:35 2009 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jymxensuspend-base,
jym-xensuspend-base
Changes since 1.243: +5 -4
lines
Diff to previous 1.243 (colored)
Detach audio(4) during shutdown.
Revision 1.243 / (download) - annotate - [select for diffs], Tue Jun 10 22:53:08 2008 UTC (5 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
nick-hppapmap-base2,
netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
mjf-devfs2-base,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base
Branch point for: nick-hppapmap,
netbsd-5,
matt-nb5-mips64,
jym-xensuspend,
ad-audiomp2
Changes since 1.242: +9 -9
lines
Diff to previous 1.242 (colored)
device_private(device_lookup()) -> device_lookup_private() ok cube@
Revision 1.242 / (download) - annotate - [select for diffs], Sun Jun 8 18:18:33 2008 UTC (5 years ago) by tsutsui
Branch: MAIN
Branch point for: simonb-wapbl
Changes since 1.241: +3 -3
lines
Diff to previous 1.241 (colored)
Use device_lookup_private() rather than using cd_devs[] directly to get softc.
XXX maybe we should change a type of cd_devs[] in struct cfdriver
from (void *) to device_t.
Revision 1.241 / (download) - annotate - [select for diffs], Tue Jun 3 06:21:17 2008 UTC (5 years ago) by bjs
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.240: +13 -9
lines
Diff to previous 1.240 (colored)
- Fix the conditions for POLLOUT to match those elsewhere - Refactor pause attribute handling so that it it's preserved appropriately and reset in audio_clear(). Now audio/jack-devel works with the native driver.
Revision 1.240 / (download) - annotate - [select for diffs], Tue Jun 3 02:16:18 2008 UTC (5 years ago) by jmcneill
Branch: MAIN
Changes since 1.239: +34 -17
lines
Diff to previous 1.239 (colored)
pmf: in audio_volume_up and audio_volume_down, honour the mixer control's delta field rather than arbitrary '32' when stepping up or down master volume.
Revision 1.239 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:27 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp,
wrstuden-revivesa
Changes since 1.238: +8 -8
lines
Diff to previous 1.238 (colored)
Network protocol interrupts can now block on locks, so merge the globals proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications: - Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread. - As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock. - The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.238 / (download) - annotate - [select for diffs], Tue Apr 1 00:52:11 2008 UTC (5 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.237: +4 -4
lines
Diff to previous 1.237 (colored)
Fix audio_volume_toggle. How did this ever work for me? Thinkpad T61 mutes audio automatically when the mute key is pressed.
Revision 1.237 / (download) - annotate - [select for diffs], Wed Mar 12 18:02:21 2008 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Changes since 1.236: +11 -11
lines
Diff to previous 1.236 (colored)
Use device_t and its accessors throughout. Use aprint_*_dev().
Improve PMF-ability.
Add a 'flags' argument to suspend/resume handlers and
callers such as pmf_system_suspend().
Define a flag, PMF_F_SELF, which indicates to PMF that a
device is suspending/resuming itself. Add helper routines,
pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
that call pmf_device_suspend(dev, PMF_F_SELF) and
pmf_device_resume(dev, PMF_F_SELF), respectively. Use
PMF_F_SELF to suspend/resume self in ath(4), audio(4),
rtw(4), and sip(4).
In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
callbacks, provided by the bus front-end, with
self-suspension/resumption. Also, clean up the bus
front-ends. Make sure that the interrupt handler is
disestablished during suspension. Get rid of driver-private
flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
device_is_active()/device_has_power() calls, instead.
In the network-class suspend handler, call if_stop(, 0)
instead of if_stop(, 1), because the latter is superfluous
(bus- and driver-suspension hooks will 'disable' the NIC),
and it may cause recursion.
In the network-class resume handler, prevent infinite
recursion through if_init() by getting out early if we are
self-suspending (PMF_F_SELF).
rtw(4) improvements:
Destroy rtw(4) callouts when we detach it. Make rtw at
pci detachable. Print some more information with the "rx
frame too long" warning.
Remove activate() methods:
Get rid of rtw_activate() and ath_activate(). The device
activate() methods are not good for much these days.
Make ath at cardbus resume with crypto functions intact:
Introduce a boolean device property, "pmf-powerdown". If
pmf-powerdown is present and false, it indicates that a
bus back-end should not remove power from a device.
Honor this property in cardbus_child_suspend().
Set this property to 'false' in ath_attach(), since removing
power from an ath at cardbus seems to lobotomize the WPA
crypto engine. XXX Should the pmf-powerdown property
propagate toward the root of the device tree?
Miscellaneous ath(4) changes:
Warn if ath(4) tries to write crypto keys to suspended
hardware.
Reduce differences between FreeBSD and NetBSD in ath(4)
multicast filter setup.
Make ath_printrxbuf() print an rx descriptor's status &
key index, to help debug crypto errors.
Shorten a staircase in ath_ioctl(). Don't check for
ieee80211_ioctl() return code ERESTART, it never happens.
Revision 1.236 / (download) - annotate - [select for diffs], Tue Mar 4 18:23:44 2008 UTC (5 years, 3 months ago) by cube
Branch: MAIN
Changes since 1.235: +31 -33
lines
Diff to previous 1.235 (colored)
Split device_t and softc for audio(4), and other related cosmetic changes.
Revision 1.235 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:50 2008 UTC (5 years, 3 months ago) by rmind
Branch: MAIN
Changes since 1.234: +9 -4
lines
Diff to previous 1.234 (colored)
Welcome to 4.99.55: - Add a lot of missing selinit() and seldestroy() calls. - Merge selwakeup() and selnotify() calls into a single selnotify(). - Add an additional 'events' argument to selnotify() call. It will indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown, zero may be used. Note: please pass appropriate value of 'events' where possible. Proposed on: <tech-kern>
Revision 1.234 / (download) - annotate - [select for diffs], Wed Feb 13 18:31:51 2008 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Changes since 1.233: +26 -2
lines
Diff to previous 1.233 (colored)
Disable audio idle timer. It was a fun experiment, but causes more issues than it was worth.
Revision 1.233 / (download) - annotate - [select for diffs], Wed Jan 23 14:14:55 2008 UTC (5 years, 4 months ago) by gson
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase
Changes since 1.232: +5 -4
lines
Diff to previous 1.232 (colored)
Don't enter an infinite loop in audio_read() when the sc->sc_rustream buffer is full. Fixes kern/34659.
Revision 1.232 / (download) - annotate - [select for diffs], Sun Dec 23 19:14:03 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base3,
matt-armv6-base,
bouyer-xeni386-base
Changes since 1.231: +4 -2
lines
Diff to previous 1.231 (colored)
Deregister activity handler on detach.
Revision 1.231 / (download) - annotate - [select for diffs], Sat Dec 22 18:34:56 2007 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.230: +3 -3
lines
Diff to previous 1.230 (colored)
Use M_NOWAIT in audio_stream_ctor; it can be called from a softintr context through pmf_resume.
Revision 1.230 / (download) - annotate - [select for diffs], Thu Dec 13 14:40:36 2007 UTC (5 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.229: +11 -10
lines
Diff to previous 1.229 (colored)
Don't count poll(2) and select(2) as device activity. Don't activate the device on write(2) if it is suspended and was not idle.
Revision 1.229 / (download) - annotate - [select for diffs], Thu Dec 13 14:02:53 2007 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.228: +8 -2
lines
Diff to previous 1.228 (colored)
When resuming the audio device, call audiosetinfo with the last known good parameters. Fixes an issue with suspending the audio device while playback is paused.
Revision 1.228 / (download) - annotate - [select for diffs], Tue Dec 11 00:08:14 2007 UTC (5 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Changes since 1.227: +3 -2
lines
Diff to previous 1.227 (colored)
When collecting mixer values while suspending, initialize the number of channels from the mixer device info. Fixes PR kern/37512. OK: jmcneill
Revision 1.227 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:51 2007 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
Branch point for: bouyer-xeni386
Changes since 1.226: +270 -36
lines
Diff to previous 1.226 (colored)
Merge jmcneill-pm branch.
Revision 1.226 / (download) - annotate - [select for diffs], Wed Dec 5 17:19:47 2007 UTC (5 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base,
vmlocking2-base2,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base
Branch point for: yamt-kmem
Changes since 1.225: +3 -3
lines
Diff to previous 1.225 (colored)
Do not "return 1" from kqfilter for errors. That value is passed directly to the userland caller and results in a mysterious EPERM. Instead, return EINVAL or something else sensible depending on the case.
Revision 1.225 / (download) - annotate - [select for diffs], Sat Dec 1 05:11:08 2007 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base1,
vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.224: +12 -10
lines
Diff to previous 1.224 (colored)
aprintify
Revision 1.224 / (download) - annotate - [select for diffs], Mon Oct 8 16:18:02 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.223: +10 -9
lines
Diff to previous 1.223 (colored)
Use the softint API.
Revision 1.223 / (download) - annotate - [select for diffs], Tue Aug 14 21:34:03 2007 UTC (5 years, 10 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-x86pmap-base2,
yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap,
matt-armv6
Changes since 1.222: +6 -4
lines
Diff to previous 1.222 (colored)
au_setup_ports - don't hide ports->nports++ inside another expression, especially if that other expression is the right hand side operand of && which is short-circuiting. The effect was that audiorecord(1) would always fail trying to set recording port with AUDIO_SETINFO. Tested on wss@pnpbios. It looks like this problem has been reported as PR/35239, filed against port-hp700.
Revision 1.222 / (download) - annotate - [select for diffs], Mon Jun 11 13:05:46 2007 UTC (6 years ago) by joerg
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Changes since 1.221: +31 -12
lines
Diff to previous 1.221 (colored)
Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but doesn't obtain the ports, gain and balance related parameters. Those generally require reading from the hardware and therefore are much more expensive to obtain. Modify OSS emulation to use the new ioctl where possible. This reduces CPU usage of mplayer during mp3 playback with my Thinkpad from 20% to < 1% and from 50% to 20% during Xvid playback. Review and comments from jmcneill@
Revision 1.221 / (download) - annotate - [select for diffs], Fri Mar 9 13:20:12 2007 UTC (6 years, 3 months ago) by kent
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Changes since 1.220: +3 -3
lines
Diff to previous 1.220 (colored)
return information about playing buffer, not recording bufer, for AUDIO_WSEEK. PR#35171
Revision 1.220 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:40 2007 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.219: +7 -7
lines
Diff to previous 1.219 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.219 / (download) - annotate - [select for diffs], Thu Mar 1 17:31:35 2007 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.218: +54 -54
lines
Diff to previous 1.218 (colored)
TRUE -> true, FALSE -> false
Revision 1.218 / (download) - annotate - [select for diffs], Wed Feb 21 22:59:58 2007 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base
Branch point for: ad-audiomp
Changes since 1.217: +5 -5
lines
Diff to previous 1.217 (colored)
Replace the Mach-derived boolean_t type with the C99 bool type. A future commit will replace use of TRUE and FALSE with true and false.
Revision 1.217 / (download) - annotate - [select for diffs], Thu Feb 15 18:12:05 2007 UTC (6 years, 4 months ago) by ad
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.216: +6 -9
lines
Diff to previous 1.216 (colored)
Defer wakeup() to the soft interrupt also.
Revision 1.216 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:26 2007 UTC (6 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.215: +59 -15
lines
Diff to previous 1.215 (colored)
Merge newlock2 to head.
Revision 1.215 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:44 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
newlock2-nbase,
newlock2-base,
netbsd-4-base
Branch point for: netbsd-4
Changes since 1.214: +16 -16
lines
Diff to previous 1.214 (colored)
__unused removal on arguments; approved by core.
Revision 1.214 / (download) - annotate - [select for diffs], Wed Nov 1 10:13:37 2006 UTC (6 years, 7 months ago) by cbiere
Branch: MAIN
Changes since 1.213: +6 -6
lines
Diff to previous 1.213 (colored)
Set oldpblksize and oldrblksize early enough so that zero-initialisation isn't necessary. The GCC warning was not a false-positive, AFAICS.
Revision 1.213 / (download) - annotate - [select for diffs], Wed Nov 1 09:36:52 2006 UTC (6 years, 7 months ago) by xtraeme
Branch: MAIN
Changes since 1.212: +4 -2
lines
Diff to previous 1.212 (colored)
Initialize old[pr]blksize to 0 to avoid gcc warnings.
Revision 1.212 / (download) - annotate - [select for diffs], Wed Nov 1 06:39:19 2006 UTC (6 years, 7 months ago) by cbiere
Branch: MAIN
Changes since 1.211: +26 -22
lines
Diff to previous 1.211 (colored)
Fix for kern/17446. Restore the audio settings if an error occured.
Revision 1.211 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:50 2006 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.210: +18 -15
lines
Diff to previous 1.210 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.210 / (download) - annotate - [select for diffs], Sun Sep 24 03:53:08 2006 UTC (6 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.209: +4 -3
lines
Diff to previous 1.209 (colored)
Add "name" parameter to powerhook_establish, to aid debugging. No objections on tech-kern@
Revision 1.209 / (download) - annotate - [select for diffs], Sun Aug 27 23:54:50 2006 UTC (6 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.208: +5 -5
lines
Diff to previous 1.208 (colored)
add missing initializers.
Revision 1.208 / (download) - annotate - [select for diffs], Tue Jun 27 02:07:08 2006 UTC (6 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.207: +4 -2
lines
Diff to previous 1.207 (colored)
Protect audio_powerhook with '#if NAUDIO > 0'. PR kern/33832.
Revision 1.207 / (download) - annotate - [select for diffs], Mon Jun 19 10:19:08 2006 UTC (7 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6,
chap-midi-nbase,
chap-midi-base
Changes since 1.206: +41 -2
lines
Diff to previous 1.206 (colored)
Halt input/output on soft suspend if currently running, and restore them on soft resume.
Revision 1.206 / (download) - annotate - [select for diffs], Tue May 16 13:46:19 2006 UTC (7 years, 1 month ago) by kent
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base,
gdamore-uart-base
Branch point for: gdamore-uart,
chap-midi
Changes since 1.205: +15 -9
lines
Diff to previous 1.205 (colored)
If one or more playback filters are applied, minimize loading size of the hardware buffer to improve accuracy of AUDIO_GETIOFFS.
Revision 1.205 / (download) - annotate - [select for diffs], Wed May 10 01:56:21 2006 UTC (7 years, 1 month ago) by kent
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.204: +8 -6
lines
Diff to previous 1.204 (colored)
Fixes a bug that audio_offset_t::samples for AUDIO_GETxOFFS has incorrect value. It also affects SNDCTL_DSP_GETOPTR of ossaudio. PR: kern/32405 by Stephane Witzman
Revision 1.204 / (download) - annotate - [select for diffs], Wed Apr 19 14:10:58 2006 UTC (7 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.203: +15 -13
lines
Diff to previous 1.203 (colored)
Don't use simple_locks; we can't hold them while calling malloc and friends.
Revision 1.203 / (download) - annotate - [select for diffs], Tue Apr 18 19:15:27 2006 UTC (7 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.202: +29 -4
lines
Diff to previous 1.202 (colored)
Protect audio_write's filter graph from being modified in the middle of a write. Fixes the 'audioctl of death' problem (PR#32563).
Revision 1.202 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:29 2006 UTC (7 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Changes since 1.201: +3 -3
lines
Diff to previous 1.201 (colored)
Use device_unit().
Revision 1.201 / (download) - annotate - [select for diffs], Tue Mar 7 15:17:47 2006 UTC (7 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2,
peter-altq-base
Branch point for: peter-altq,
elad-kernelauth
Changes since 1.200: +12 -2
lines
Diff to previous 1.200 (colored)
Add a 'powerstate' callback to audio_hw_if, to allow hw drivers to power themselves down when not in use.
Revision 1.200 / (download) - annotate - [select for diffs], Sat Feb 25 11:32:51 2006 UTC (7 years, 3 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy
Changes since 1.199: +8 -3
lines
Diff to previous 1.199 (colored)
In mixer_remove() it's better to check if lwp is not NULL before trying to access a children node of it. Fixes PR 32823, by Yours Truly. I guess I should read the code before sending a PR.
Revision 1.199 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:29 2005 UTC (7 years, 5 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Changes since 1.198: +10 -10
lines
Diff to previous 1.198 (colored)
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.198 / (download) - annotate - [select for diffs], Sun Dec 11 12:20:53 2005 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.197: +39 -38
lines
Diff to previous 1.197 (colored)
merge ktrace-lwp.
Revision 1.197 / (download) - annotate - [select for diffs], Tue Jun 21 14:01:11 2005 UTC (8 years ago) by ws
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.196: +8 -8
lines
Diff to previous 1.196 (colored)
PR-30566: Poll must not return <sys/errno.h> values. Start with those places I can easily test.
Revision 1.196 / (download) - annotate - [select for diffs], Sat Jun 11 08:14:19 2005 UTC (8 years ago) by is
Branch: MAIN
Changes since 1.195: +9 -19
lines
Diff to previous 1.195 (colored)
Make sure buffer sizes are initialized correctly even when the pause state is explicitly set. Without this, the machine would crash in the audio interupt when the driver needs to divide by the block size (e.g., cs4281.c/cs4280.c). Idea for the fix by yamt.
Revision 1.195 / (download) - annotate - [select for diffs], Wed May 18 20:10:25 2005 UTC (8 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.194: +5 -4
lines
Diff to previous 1.194 (colored)
Allow the audio device to be opened for read resp. write by separate calls to open(). Previously only one call to open() was allowed. This change should allow some Linux derived programs to work unaltered. XXX This isn't really possible to implement correctly in a simple way. So this implementation is incorrect: It is not until device has been closed by both the reader and writer that it is possible to open it at all again.
Revision 1.194 / (download) - annotate - [select for diffs], Wed May 4 01:57:23 2005 UTC (8 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.193: +4 -11
lines
Diff to previous 1.193 (colored)
When audioclose is called it's the last close of the device, so there is no need to fiddle with resetting individual bits. Just clear them.
Revision 1.193 / (download) - annotate - [select for diffs], Mon Apr 25 13:19:46 2005 UTC (8 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.192: +3 -5
lines
Diff to previous 1.192 (colored)
Enable full-duplex mode by default on drivers that support it if the underlying audio device was opened read/write. This is consistent with Linux OSS behaviour and fixes a bug with certain applications (including Skype) that assume this behaviour. Fixes PR# 30044.
Revision 1.192 / (download) - annotate - [select for diffs], Sun Feb 13 23:53:20 2005 UTC (8 years, 4 months ago) by fredb
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
matt-timespec
Branch point for: netbsd-3
Changes since 1.191: +53 -11
lines
Diff to previous 1.191 (colored)
For the "record.port", choose "record.source" over "inputs.source" if the former exists. Partial fix for PR kern/29178.
Revision 1.191 / (download) - annotate - [select for diffs], Sun Feb 13 23:50:22 2005 UTC (8 years, 4 months ago) by fredb
Branch: MAIN
Changes since 1.190: +12 -2
lines
Diff to previous 1.190 (colored)
Comment as to why we run through the devinfo list twice, in audioattach().
Revision 1.190 / (download) - annotate - [select for diffs], Sun Feb 13 17:05:15 2005 UTC (8 years, 4 months ago) by kent
Branch: MAIN
Changes since 1.189: +3 -3
lines
Diff to previous 1.189 (colored)
fix a typo in audiogetinfo(). No behaviour changes though the code was wrong.
Revision 1.189 / (download) - annotate - [select for diffs], Sat Jan 29 18:16:49 2005 UTC (8 years, 4 months ago) by kent
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.188: +39 -11
lines
Diff to previous 1.188 (colored)
* audiosetinfo() call audio_clear() only when blocksizes are actually changed. This fixes a problem on some audio devices and applications which use ossaudio and call SNDCTL_DSP_GETOSPACE repeatedly while playing. * audiostartp() add some debug prints.
Revision 1.188 / (download) - annotate - [select for diffs], Mon Jan 17 14:13:19 2005 UTC (8 years, 5 months ago) by minoura
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.187: +3 -3
lines
Diff to previous 1.187 (colored)
Fix panic when precision < 8. From kent@.
Revision 1.187 / (download) - annotate - [select for diffs], Sat Jan 15 16:23:03 2005 UTC (8 years, 5 months ago) by kent
Branch: MAIN
Branch point for: kent-audio2
Changes since 1.186: +150 -105
lines
Diff to previous 1.186 (colored)
minor KNF
Revision 1.186 / (download) - annotate - [select for diffs], Sat Jan 15 04:57:18 2005 UTC (8 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.185: +3 -3
lines
Diff to previous 1.185 (colored)
fix a typo in audiostartp(). This change fixes a problem introduced by kent-audio1 merger with some audio hardware such as emuxki.
Revision 1.185 / (download) - annotate - [select for diffs], Mon Jan 10 22:01:37 2005 UTC (8 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.184: +855 -708
lines
Diff to previous 1.184 (colored)
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
Revision 1.184 / (download) - annotate - [select for diffs], Fri Oct 29 12:57:16 2004 UTC (8 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-beforemerge,
kent-audio1-base
Branch point for: kent-audio1
Changes since 1.183: +15 -15
lines
Diff to previous 1.183 (colored)
constify audio_hw_if, midi_hw_if, and radio_hw_if.
Revision 1.183 / (download) - annotate - [select for diffs], Wed Jul 7 22:30:22 2004 UTC (8 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.182: +5 -3
lines
Diff to previous 1.182 (colored)
If we're short-circuiting audiostartp() because there isn't enough data present, do an extra wakeup() on the write channel. This happens when we change parameters during playback, at which point we flush the buffer, and would stall.
Revision 1.182 / (download) - annotate - [select for diffs], Sat Jan 31 00:07:56 2004 UTC (9 years, 4 months ago) by fredb
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.181: +149 -88
lines
Diff to previous 1.181 (colored)
Fix a couple of long-standing bugs in the volume control(s) part of the audio device interface: 1) When attempting to match the appropriate mixer control, we weren't checking the class label, but only the second level label, so for devices that had both an "inputs.cd" and a "record.cd", for example, we could never do the right thing except by chance. For this reason, evidently, all the record masters were labeled (by the underlying drivers) either "record.record" or "record.volume", to distinguish from "outputs.master". We'll now accept "record.master", and document that as the the new preferred way. 2) More importantly, the model was deficient. Selecting a port on many chips completely disables most of the level controls, which doesn't play nice with other applications which are trying to use the interface. Now, selecting a port simply sets which mixer input control shall be changed, setting state in the audio layer. In other words, the "mixerout" port is really selected all the time, enabling the final stage mixer, and setting "gain" sets the level of the appropriate input. It should be possible for separate applications to each control the mic, dac, and cd inputs at the same time using this interface, simply by reiterating their port selections with each change, but applications that don't bother to do that aren't any worse off than they were before. The user is expected to set the master output with another application, dedicated to that task. Though it is now meaningful to select "no port" with the audio device interface, to manipulate the master output, there's no particular reason for an audio device consumer to do that. (I added the capability in order to restore the initial state of the audio device, for testing purposes. It might also be useful to users of broken binary- only applications.) Observe that the mixer device interface (and so, "mixerctl") still retains all capabilities, including the ability to set the actual input port on the chip, overriding the level controls. No change is being made to the mixer device interface. The mixer device simply presents all the controls on the chip, with no attempt at abstraction, so there are no bugs there. The upshot is, that applications that have been trying to use the audio device interface to change the volume, such as mplayer, now "just work". I've tested these changes extensively with "eso" and "eap" since first proposing them on tech-kern last January, and somewhat with "esm" and a few others. This closes both PR kern/10221, and PR kern/17159.
Revision 1.181 / (download) - annotate - [select for diffs], Thu Oct 2 07:15:20 2003 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.180: +105 -97
lines
Diff to previous 1.180 (colored)
A bit of cleanup: * Separate the code to set the default parameters into a new function, audio_set_defaults(). Make it use audiosetinfo(), which properly initializes the block size and whatnot. Use this in both audioattach() and the /dev/audio case of audio_open(). * Do not force a reinitialization when /dev/sound is opened. * Do all of the block size sanity checks in auto_init_ringbuffer(), not in both audio_calc_blksize() and audiosetinfo(). * Fix a bug in audiosetinfo() that caused the block size to not be recalculated immediately if we set it to 0. * For AUDIO_GET[IO]OFFS, modify the deltablks calculation so that it gives us the number of block boundaries crossed.
Revision 1.180 / (download) - annotate - [select for diffs], Sun Jun 29 22:29:56 2003 UTC (9 years, 11 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.179: +36 -37
lines
Diff to previous 1.179 (colored)
Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
Revision 1.179 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:29 2003 UTC (9 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.178: +39 -38
lines
Diff to previous 1.178 (colored)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Revision 1.178 / (download) - annotate - [select for diffs], Mon May 26 12:43:35 2003 UTC (10 years ago) by augustss
Branch: MAIN
Changes since 1.177: +6 -2
lines
Diff to previous 1.177 (colored)
Add FIONREAD ioctl().
Revision 1.177 / (download) - annotate - [select for diffs], Sat May 3 18:11:08 2003 UTC (10 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.176: +4 -4
lines
Diff to previous 1.176 (colored)
DMA, not dma nor Dma.
Revision 1.176 / (download) - annotate - [select for diffs], Fri Apr 25 03:02:11 2003 UTC (10 years, 1 month ago) by gmcgarry
Branch: MAIN
Changes since 1.175: +7 -22
lines
Diff to previous 1.175 (colored)
Fix full-duplex mode (again). Back-out revision 1.170 and and 1.166. Revision 1.170 fixes some problems introduced in revision 1.166. It isn't clear what problem revision 1.166 was attempting to address. It seems bogus anyway, since we later check the modes in audio_check_params().
Revision 1.175 / (download) - annotate - [select for diffs], Sun Apr 6 18:20:11 2003 UTC (10 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.174: +3 -3
lines
Diff to previous 1.174 (colored)
Respect the law: Use A-law and mu-law as spellings as far as easily possible. Inspired by Igor Sobrado in PR 19680.
Revision 1.174 / (download) - annotate - [select for diffs], Mon Mar 31 18:47:58 2003 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.173: +8 -8
lines
Diff to previous 1.173 (colored)
sprinkle const qualifiers to const stuff
Revision 1.173 / (download) - annotate - [select for diffs], Fri Jan 31 02:15:57 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.172: +3 -3
lines
Diff to previous 1.172 (colored)
Use aprint_*().
Revision 1.172 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:15 2003 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
fvdl_fs64_base
Changes since 1.171: +3 -3
lines
Diff to previous 1.171 (colored)
Use aprint_normal() in cfprint routines.
Revision 1.171 / (download) - annotate - [select for diffs], Tue Dec 31 00:33:10 2002 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.170: +3 -3
lines
Diff to previous 1.170 (colored)
Use correct values to compute record high water mark. From kern/19614 by Ron Roskens.
Revision 1.170 / (download) - annotate - [select for diffs], Fri Dec 20 18:30:01 2002 UTC (10 years, 6 months ago) by fredette
Branch: MAIN
Changes since 1.169: +10 -4
lines
Diff to previous 1.169 (colored)
If the user is providing a mode value in AUDIO_SETINFO, that value cannot change the recording or playback mode of the device, it can only change other mode-like values (like AUMODE_PLAY_ALL). Be very explicit about fixing up the user's mode value based on the mode of the device. Before, giving AUMODE_PLAY_ALL could cause AUMODE_PLAY to become set on the device, and once AUMODE_PLAY_ALL was set it was impossible to clear.
Revision 1.169 / (download) - annotate - [select for diffs], Tue Nov 26 18:49:40 2002 UTC (10 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw
Changes since 1.168: +6 -6
lines
Diff to previous 1.168 (colored)
si_ -> sel_
Revision 1.168 / (download) - annotate - [select for diffs], Fri Nov 8 05:02:07 2002 UTC (10 years, 7 months ago) by kent
Branch: MAIN
Changes since 1.167: +11 -9
lines
Diff to previous 1.167 (colored)
Fix LR contrary problem of play.balance and record.balance. The change is based on PR kern/18901 by SUNAKAWA Hirokatsu.
Revision 1.167 / (download) - annotate - [select for diffs], Wed Oct 23 09:12:58 2002 UTC (10 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.166: +127 -6
lines
Diff to previous 1.166 (colored)
merge kqueue branch into -current kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2) based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
Revision 1.166 / (download) - annotate - [select for diffs], Wed Oct 16 21:07:08 2002 UTC (10 years, 8 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-beforemerge
Changes since 1.165: +14 -3
lines
Diff to previous 1.165 (colored)
for AUDIO_SETINFO, silently enforce same mode as the currently used one; this value is supposed to be read-only for this ioctl
Revision 1.165 / (download) - annotate - [select for diffs], Wed Oct 2 16:33:28 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.164: +3 -3
lines
Diff to previous 1.164 (colored)
Add trailing ; to CFATTACH_DECL.
Revision 1.164 / (download) - annotate - [select for diffs], Mon Sep 30 21:19:38 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.163: +4 -6
lines
Diff to previous 1.163 (colored)
Use CFATTACH_DECL().
Revision 1.163 / (download) - annotate - [select for diffs], Fri Sep 27 20:37:28 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.162: +3 -3
lines
Diff to previous 1.162 (colored)
Declare all cfattach structures const.
Revision 1.162 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:10 2002 UTC (10 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.161: +2 -3
lines
Diff to previous 1.161 (colored)
Remove breaks after returns, unreachable returns and returns after returns(!).
Revision 1.161 / (download) - annotate - [select for diffs], Mon Sep 23 03:44:56 2002 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.160: +3 -3
lines
Diff to previous 1.160 (colored)
fix unitialized variable. from simonb. OI
Revision 1.160 / (download) - annotate - [select for diffs], Fri Sep 6 13:22:57 2002 UTC (10 years, 9 months ago) by gehenna
Branch: MAIN
Changes since 1.159: +15 -5
lines
Diff to previous 1.159 (colored)
Merge the gehenna-devsw branch into the trunk. This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
Revision 1.159 / (download) - annotate - [select for diffs], Wed Jul 10 02:25:49 2002 UTC (10 years, 11 months ago) by gson
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.158: +3 -4
lines
Diff to previous 1.158 (colored)
When a recording interrupt happened in the middle of audio_read(), changes to cb->used by audio_rint() could be overwritten by audio_read().
Revision 1.158 / (download) - annotate - [select for diffs], Sun Jun 23 01:36:07 2002 UTC (10 years, 11 months ago) by gmcgarry
Branch: MAIN
Changes since 1.157: +4 -4
lines
Diff to previous 1.157 (colored)
Back out revision 1.132. This revision broke binary compatibility with binaries which were working fine on NetBSD 1.5. We defer this change until a longer-term fix is found as explain in the commit message in revision 1.132. Further details can be found in PR17159.
Revision 1.157 / (download) - annotate - [select for diffs], Sun Jun 2 02:00:30 2002 UTC (11 years ago) by gson
Branch: MAIN
Changes since 1.156: +15 -4
lines
Diff to previous 1.156 (colored)
The logic in audio_poll() was incorrect in full duplex mode; among other things, it behaved as if full-duplex audio devices were always ready for writing. Also commented the code in case. This fixes PRs kern/11179 and kern/13829.
Revision 1.156 / (download) - annotate - [select for diffs], Mon May 27 17:13:14 2002 UTC (11 years ago) by gson
Branch: MAIN
Changes since 1.155: +6 -2
lines
Diff to previous 1.155 (colored)
When audio recording was paused or dropping samples, the "outp" of the recording ring buffer could overrun the end of the buffer. When recording resumed, memory after the end of the buffer would be read, sometimes causing a system crash.
Revision 1.155 / (download) - annotate - [select for diffs], Sat Mar 23 17:17:10 2002 UTC (11 years, 2 months ago) by kent
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6,
gehenna-devsw
Changes since 1.154: +143 -140
lines
Diff to previous 1.154 (colored)
whitespace and folding fix.
Revision 1.154 / (download) - annotate - [select for diffs], Thu Mar 21 05:22:24 2002 UTC (11 years, 3 months ago) by isaki
Branch: MAIN
CVS Tags: eeh-devprop-base,
eeh-devprop
Changes since 1.153: +5 -3
lines
Diff to previous 1.153 (colored)
Fix previous commit. modifying cc is only when factor_denom > 1. reviewed by kent@netbsd.org
Revision 1.153 / (download) - annotate - [select for diffs], Sun Mar 17 03:20:40 2002 UTC (11 years, 3 months ago) by isaki
Branch: MAIN
Changes since 1.152: +4 -3
lines
Diff to previous 1.152 (colored)
Fix infinate loop in recoding on vs0.
Revision 1.152 / (download) - annotate - [select for diffs], Sat Mar 16 08:58:49 2002 UTC (11 years, 3 months ago) by isaki
Branch: MAIN
Changes since 1.151: +45 -34
lines
Diff to previous 1.151 (colored)
Add factor_denom, a denominator of factor,
in 'struct audio_param' for vs0 on x68k.
{hw,user}_bytes_per_sample is changed to {hw,user}_bits_per_sample
to handle 4bit/sampling.
Revision 1.151 / (download) - annotate - [select for diffs], Fri Mar 15 14:55:03 2002 UTC (11 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.150: +4 -4
lines
Diff to previous 1.150 (colored)
audio.c: revert a part of previous change. auconv.c: correct handling of size parameter.
Revision 1.150 / (download) - annotate - [select for diffs], Fri Mar 15 14:35:32 2002 UTC (11 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.149: +8 -7
lines
Diff to previous 1.149 (colored)
Fix a bug of audio_read() in a case that params->factor is not 1.
Revision 1.149 / (download) - annotate - [select for diffs], Sat Mar 9 20:30:43 2002 UTC (11 years, 3 months ago) by kent
Branch: MAIN
CVS Tags: newlock-base,
newlock
Changes since 1.148: +40 -2
lines
Diff to previous 1.148 (colored)
Move sampling rate conversion functions to aurateconv.c. Introduce "aurateconv" attribute for audio devices. Add aurateconv to uaudio and auich. (due to kern/15845 and kern/15848)
Revision 1.148 / (download) - annotate - [select for diffs], Sat Mar 9 07:25:41 2002 UTC (11 years, 3 months ago) by toshii
Branch: MAIN
Changes since 1.147: +3 -3
lines
Diff to previous 1.147 (colored)
Fix splaudio/splx botch.
Revision 1.147 / (download) - annotate - [select for diffs], Fri Mar 8 02:30:54 2002 UTC (11 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.146: +4 -4
lines
Diff to previous 1.146 (colored)
Fix printf format on LP64.
Revision 1.146 / (download) - annotate - [select for diffs], Thu Mar 7 14:37:02 2002 UTC (11 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.145: +275 -73
lines
Diff to previous 1.145 (colored)
Sampling rate and mono-stereo conversion described in http://mail-index.netbsd.org/tech-kern/2002/03/04/0005.html auconv.c: Add conversion functions audio.c: Sample alignment, calling conversion functions, etc. audio_if.h: Add four hw_* members to "struct audio_params" audiovar.h: Add conversion buffers, etc. auich and uaudio: Add conversion request code to *_set_params().
Revision 1.145 / (download) - annotate - [select for diffs], Fri Jan 18 21:59:41 2002 UTC (11 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: ifpoll-base,
ifpoll
Changes since 1.144: +6 -11
lines
Diff to previous 1.144 (colored)
drop completely superfluous PRINT() macro
Revision 1.144 / (download) - annotate - [select for diffs], Sat Nov 17 05:31:27 2001 UTC (11 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.143: +3 -3
lines
Diff to previous 1.143 (colored)
fix a trivial lint warning
Revision 1.143 / (download) - annotate - [select for diffs], Tue Nov 13 05:32:49 2001 UTC (11 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.142: +4 -1
lines
Diff to previous 1.142 (colored)
add RCSIDs
Revision 1.142 / (download) - annotate - [select for diffs], Wed Oct 3 20:48:41 2001 UTC (11 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3
Changes since 1.141: +5 -6
lines
Diff to previous 1.141 (colored)
Fix pasto in type of dev_ioctl method.
Revision 1.141 / (download) - annotate - [select for diffs], Wed Oct 3 00:04:49 2001 UTC (11 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.140: +12 -4
lines
Diff to previous 1.140 (colored)
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).
Revision 1.140 / (download) - annotate - [select for diffs], Tue Oct 2 23:31:54 2001 UTC (11 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.139: +128 -265
lines
Diff to previous 1.139 (colored)
ANSIfy.
Revision 1.139 / (download) - annotate - [select for diffs], Sun Sep 16 16:34:36 2001 UTC (11 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-devvp-base2
Changes since 1.138: +2 -2
lines
Diff to previous 1.138 (colored)
Spell 'occurred' with two 'r's.
Revision 1.138 / (download) - annotate - [select for diffs], Mon Sep 3 18:51:43 2001 UTC (11 years, 9 months ago) by is
Branch: MAIN
CVS Tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.137: +24 -16
lines
Diff to previous 1.137 (colored)
Allow 24 and 32bit linear audio. Actually, the silence filler can do any multiple of 8 bits now, but I didn't allow the parameter check to accept more than 32 bit to avoid confusion of drivers that fail to check the parameters themselves thoroughly. This should be changed later.
Revision 1.137 / (download) - annotate - [select for diffs], Sun Jun 3 23:52:51 2001 UTC (12 years ago) by jhawk
Branch: MAIN
Branch point for: kqueue
Changes since 1.136: +2 -2
lines
Diff to previous 1.136 (colored)
s/printf/DPRINTF/ for kern/13101.
Revision 1.136 / (download) - annotate - [select for diffs], Wed May 2 12:49:41 2001 UTC (12 years, 1 month ago) by minoura
Branch: MAIN
Changes since 1.135: +5 -2
lines
Diff to previous 1.135 (colored)
X68k built-in voice synthesizer supports 4bit ADPCM.
Revision 1.135 / (download) - annotate - [select for diffs], Thu Jan 25 15:25:34 2001 UTC (12 years, 4 months ago) by toshii
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.134: +3 -1
lines
Diff to previous 1.134 (colored)
The previous revision was my fault. audio_calcwater() needs to be called at every open. Thanks Witold J. Wnuk for pointing out this problem.
Revision 1.134 / (download) - annotate - [select for diffs], Mon Jan 22 08:37:54 2001 UTC (12 years, 4 months ago) by toshii
Branch: MAIN
Changes since 1.133: +1 -2
lines
Diff to previous 1.133 (colored)
Remove the line in audio_open which zeroes sc_[pr]r.blksize. Because zeroing them causes zero division panic with devices which don't support 8kHz mulaw, and the effect of this line was to force calling audio_calcwater even when unnecessary.
Revision 1.133 / (download) - annotate - [select for diffs], Fri Dec 29 10:00:08 2000 UTC (12 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.132: +2 -1
lines
Diff to previous 1.132 (colored)
Add a field in mixer_devinfo_t that indicates the minimum delta to change mixer value. A value of 0 indicates that the driver doesn't supply a delta. The change is backwards compatible.
Revision 1.132 / (download) - annotate - [select for diffs], Mon Dec 25 00:01:39 2000 UTC (12 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.131: +3 -3
lines
Diff to previous 1.131 (colored)
Back out changes from 1.124 since the additions of *ports.master=-1 wasn't documented as to why it was added in and it breaks the ability to set the gain on playback. A longer term fix to set these correctly should be done but none of the drivers today are doing this and not being able to set the playback volume otherwise is a bit silly.
Revision 1.131 / (download) - annotate - [select for diffs], Wed Jul 19 13:44:24 2000 UTC (12 years, 11 months ago) by nathanw
Branch: MAIN
Changes since 1.130: +2 -2
lines
Diff to previous 1.130 (colored)
More printf format munging for off_t: when printing as %lld, cast to long long.
Revision 1.130 / (download) - annotate - [select for diffs], Thu Jul 6 00:43:04 2000 UTC (12 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.129: +9 -12
lines
Diff to previous 1.129 (colored)
Use device_lookup().
Revision 1.129 / (download) - annotate - [select for diffs], Tue Jun 27 21:25:02 2000 UTC (12 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.128: +2 -2
lines
Diff to previous 1.128 (colored)
Make it compile with AUDIO_DEBUG after the mmap API change.
Revision 1.128 / (download) - annotate - [select for diffs], Tue Jun 27 17:58:22 2000 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.127: +1 -3
lines
Diff to previous 1.127 (colored)
remove include of <vm/vm.h>
Revision 1.127 / (download) - annotate - [select for diffs], Mon Jun 26 04:56:17 2000 UTC (12 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.126: +9 -7
lines
Diff to previous 1.126 (colored)
Change the kernel mmap interface so that the offset to map is an "off_t" and the return value is a "paddr_t" to allow mappings at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which only changed the offset to a "vm_offset_t". Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
Revision 1.126 / (download) - annotate - [select for diffs], Sun Jun 25 13:26:19 2000 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.125: +1 -2
lines
Diff to previous 1.125 (colored)
remove some redundant <vm/vm_xxx.h> includes
Revision 1.125 / (download) - annotate - [select for diffs], Tue May 2 00:00:00 2000 UTC (13 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.124: +15 -1
lines
Diff to previous 1.124 (colored)
Support recording conversions that change the sample size. PR 10029, from Gregory McGarry.
Revision 1.124 / (download) - annotate - [select for diffs], Mon May 1 17:10:40 2000 UTC (13 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.123: +7 -3
lines
Diff to previous 1.123 (colored)
Add some more debug output.
Revision 1.123 / (download) - annotate - [select for diffs], Sun Mar 26 10:01:32 2000 UTC (13 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.122: +2 -2
lines
Diff to previous 1.122 (colored)
Avoid a pointless debug message.
Revision 1.122 / (download) - annotate - [select for diffs], Wed Mar 1 00:44:35 2000 UTC (13 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.121: +13 -13
lines
Diff to previous 1.121 (colored)
Change the cmd argument in {audio,mixer}_ioctl() to u_long.
Revision 1.121 / (download) - annotate - [select for diffs], Wed Dec 15 12:09:34 1999 UTC (13 years, 6 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
chs-ubc2-newbase
Changes since 1.120: +19 -5
lines
Diff to previous 1.120 (colored)
Report all AUDIO_PROP_* properties when attaching an audio device.
Revision 1.120 / (download) - annotate - [select for diffs], Tue Nov 23 08:38:30 1999 UTC (13 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.119: +7 -1
lines
Diff to previous 1.119 (colored)
Avoid 0 blocksize.
Revision 1.119 / (download) - annotate - [select for diffs], Tue Nov 9 16:50:47 1999 UTC (13 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.118: +5 -2
lines
Diff to previous 1.118 (colored)
Make sure to call vdevgone() on all devices when deteching.
Revision 1.118 / (download) - annotate - [select for diffs], Mon Nov 1 18:06:36 1999 UTC (13 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base,
comdex-fall-1999
Changes since 1.117: +8 -1
lines
Diff to previous 1.117 (colored)
Be cautious about the blocksize returned by the hardware driver to avoid division by 0.
Revision 1.117 / (download) - annotate - [select for diffs], Thu Sep 23 11:53:13 1999 UTC (13 years, 8 months ago) by kleink
Branch: MAIN
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.116: +2 -2
lines
Diff to previous 1.116 (colored)
Minor output formatting buglet.
Revision 1.116 / (download) - annotate - [select for diffs], Thu Sep 9 10:24:39 1999 UTC (13 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.115: +235 -97
lines
Diff to previous 1.115 (colored)
Add support for detaching audio devices.
Revision 1.115 / (download) - annotate - [select for diffs], Mon Jun 7 19:24:38 1999 UTC (14 years ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.114: +10 -4
lines
Diff to previous 1.114 (colored)
Don't clobber the error returned by uiomove() when starting the audio output (in case we got a partial block). Fixes PR #7722, from Antti Kantee <pooka@iki.fi>.
Revision 1.114 / (download) - annotate - [select for diffs], Sun May 30 00:21:08 1999 UTC (14 years ago) by nathanw
Branch: MAIN
Changes since 1.113: +3 -3
lines
Diff to previous 1.113 (colored)
Fix two small bugs:
(1) Fix sense of a strcmp() test so that the monitor subdevice of the
mixer is properly identified.
(2) Use hw_if->set_port() instead of hw_if->get_port() when changinh
the monitor level in audiosetinfo().
Fixes PR kern/7661.
Revision 1.113 / (download) - annotate - [select for diffs], Fri Feb 26 01:18:09 1999 UTC (14 years, 3 months ago) by nathanw
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
kame_14_19990705,
kame_14_19990628
Branch point for: netbsd-1-4,
kame,
chs-ubc2
Changes since 1.112: +7 -7
lines
Diff to previous 1.112 (colored)
Make these compile on the alpha when AUDIO_DEBUG is defined.
Revision 1.112 / (download) - annotate - [select for diffs], Fri Feb 19 17:09:16 1999 UTC (14 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.111: +6 -3
lines
Diff to previous 1.111 (colored)
Indicate whether the decive is full or half duplex at attach time.
Revision 1.111 / (download) - annotate - [select for diffs], Wed Feb 17 02:37:38 1999 UTC (14 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.110: +18 -16
lines
Diff to previous 1.110 (colored)
Pass the direction to the allocm and round_buffersize methods. Some drivers need this to properly allocate DMAable memory.
Revision 1.110 / (download) - annotate - [select for diffs], Sun Dec 27 23:25:32 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.109: +5 -5
lines
Diff to previous 1.109 (colored)
Make sure recording is started before we return EWOULDBLOCK in a read().
Revision 1.109 / (download) - annotate - [select for diffs], Sun Dec 27 22:52:23 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.108: +83 -52
lines
Diff to previous 1.108 (colored)
Fold lines to 80 chars.
Revision 1.108 / (download) - annotate - [select for diffs], Sun Dec 20 14:26:44 1998 UTC (14 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.107: +4 -4
lines
Diff to previous 1.107 (colored)
Make midi_attach_mi() and audioprint() available also if MIDIBUS (but not necessarily MIDI) is defined. Fixes PR port-i386/6615 (Krister Walfridsson <cato@ulysses.df.lth.se>). (XXX this should probably go into a separate file to get rid of the #ifdef mess)
Revision 1.107 / (download) - annotate - [select for diffs], Wed Nov 25 13:44:13 1998 UTC (14 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach
Changes since 1.106: +3 -1
lines
Diff to previous 1.106 (colored)
Do not permit a class to be recorded as a master or monitor port.
Revision 1.106 / (download) - annotate - [select for diffs], Thu Nov 19 15:38:25 1998 UTC (14 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.105: +2 -2
lines
Diff to previous 1.105 (colored)
fix problems in many d_mmap routines: - returned EOPNOTSUPP rather than -1. - no check for negative offset. many of these fix potential security problems in these drivers. XXX XXX XXX the d_mmap cdev routine should be changed to have a prototype like: paddr_t (*d_mmap) __P((dev_t, off_t, int)); by someone!
Revision 1.105 / (download) - annotate - [select for diffs], Sun Sep 27 16:43:56 1998 UTC (14 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: chs-ubc-base,
chs-ubc
Changes since 1.104: +9 -1
lines
Diff to previous 1.104 (colored)
Make this compile again with no audio but with midi devices.
Revision 1.104 / (download) - annotate - [select for diffs], Tue Sep 1 07:27:06 1998 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.103: +4 -4
lines
Diff to previous 1.103 (colored)
Move some debugging output to more useful levels.
Revision 1.103 / (download) - annotate - [select for diffs], Fri Aug 28 12:07:41 1998 UTC (14 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.102: +31 -25
lines
Diff to previous 1.102 (colored)
Slight optimization in audio_[pr]int().
Revision 1.102 / (download) - annotate - [select for diffs], Fri Aug 28 07:44:12 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.101: +37 -32
lines
Diff to previous 1.101 (colored)
Handle the case of MIDI devices with no audio devices.
Revision 1.101 / (download) - annotate - [select for diffs], Tue Aug 18 18:17:17 1998 UTC (14 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.100: +0 -3
lines
Diff to previous 1.100 (colored)
Back out previous.
Revision 1.100 / (download) - annotate - [select for diffs], Tue Aug 18 06:16:45 1998 UTC (14 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.99: +4 -1
lines
Diff to previous 1.99 (colored)
Deal with somewhat bogus uninitialized warning in new egcs. Behavior is such that would inidicate that __attribute__((__noreturn__)) is not being honored.
Revision 1.99 / (download) - annotate - [select for diffs], Mon Aug 17 21:16:11 1998 UTC (14 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.98: +17 -16
lines
Diff to previous 1.98 (colored)
* Redo the way the way the MIDI driver attaches to audio devices. * Improve the midisyn layer a little. * Add a driver for the Yamaha OPL[23] FM synths. The opl driver is not finished yet; it sounds pretty awful. For some strange reason I cannot get any FM sound from my SB64 cards, but a regular SB16 works fine.
Revision 1.98 / (download) - annotate - [select for diffs], Mon Aug 10 01:17:33 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.97: +2 -2
lines
Diff to previous 1.97 (colored)
Oops.
Revision 1.97 / (download) - annotate - [select for diffs], Mon Aug 10 01:13:20 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.96: +6 -6
lines
Diff to previous 1.96 (colored)
Call set_params if usemode changes.
Revision 1.96 / (download) - annotate - [select for diffs], Sun Aug 9 20:28:07 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.95: +45 -28
lines
Diff to previous 1.95 (colored)
Add trigger_output and trigger_input entry points, which replace
init_{in,out}put and start_{in,out}put, and are only called once.
Revision 1.95 / (download) - annotate - [select for diffs], Sun Aug 9 07:25:58 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.94: +13 -8
lines
Diff to previous 1.94 (colored)
Make sure output is thoroughly halted on close, and remember that we stopped it.
Revision 1.94 / (download) - annotate - [select for diffs], Sun Aug 9 05:44:51 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.93: +3 -2
lines
Diff to previous 1.93 (colored)
Mask off extra usemode bits.
Revision 1.93 / (download) - annotate - [select for diffs], Sun Aug 9 04:54:44 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.92: +3 -5
lines
Diff to previous 1.92 (colored)
Always copy back both the record and play parameters, in case the driver had to change one behind our back.
Revision 1.92 / (download) - annotate - [select for diffs], Fri Aug 7 00:00:58 1998 UTC (14 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.91: +1 -9
lines
Diff to previous 1.91 (colored)
Add MIDI support. The MIDI devices can be accessed as ``raw'' through the /dev/rmidiN devices, or with a sequencer interface via /dev/music. So far the only supported MIDI device is the MPU401 port on SoundBlaster (and only on SB on isapnp, since we do not have locators with multiple values yet).
Revision 1.91 / (download) - annotate - [select for diffs], Wed Aug 5 16:38:09 1998 UTC (14 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.90: +6 -5
lines
Diff to previous 1.90 (colored)
Clarify a comment.
Revision 1.90 / (download) - annotate - [select for diffs], Tue Aug 4 11:26:14 1998 UTC (14 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.89: +10 -9
lines
Diff to previous 1.89 (colored)
Allow option AUDIO_INTR_TIME even if the platform does not support FP in the kernel.
Revision 1.89 / (download) - annotate - [select for diffs], Thu Jul 9 09:27:33 1998 UTC (14 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.88: +1 -3
lines
Diff to previous 1.88 (colored)
This doesn't need opt_compat_netbsd.h any more.
Revision 1.88 / (download) - annotate - [select for diffs], Thu Jul 9 02:45:45 1998 UTC (14 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.87: +1 -3
lines
Diff to previous 1.87 (colored)
Don't #ifdef the encoding compatibility crud. It's needed for source compatibility with other systems and much third party software.
Revision 1.87 / (download) - annotate - [select for diffs], Sun Jul 5 08:49:41 1998 UTC (14 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.86: +3 -1
lines
Diff to previous 1.86 (colored)
* defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
Revision 1.86 / (download) - annotate - [select for diffs], Mon May 18 18:27:43 1998 UTC (15 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.85: +5 -5
lines
Diff to previous 1.85 (colored)
Avoid spaces in tsleep() string.
Revision 1.85 / (download) - annotate - [select for diffs], Fri May 15 15:45:58 1998 UTC (15 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.84: +3 -1
lines
Diff to previous 1.84 (colored)
Be more verbose if attaching the audio device fails.
Revision 1.84 / (download) - annotate - [select for diffs], Tue Apr 28 23:19:20 1998 UTC (15 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.83: +4 -4
lines
Diff to previous 1.83 (colored)
Change debug printing a littel again.
Revision 1.83 / (download) - annotate - [select for diffs], Tue Apr 28 09:07:12 1998 UTC (15 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.82: +42 -92
lines
Diff to previous 1.82 (colored)
Add a few more debug messages and clean up debug printing a little.
Revision 1.82 / (download) - annotate - [select for diffs], Tue Mar 3 09:16:15 1998 UTC (15 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.81: +7 -6
lines
Diff to previous 1.81 (colored)
Avoid the name free so the MALLOCLOG option works again. Fix some typos.
Revision 1.81 / (download) - annotate - [select for diffs], Mon Jan 12 08:44:08 1998 UTC (15 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +2 -4
lines
Diff to previous 1.80 (colored)
Adjust for config changes.
Revision 1.80 / (download) - annotate - [select for diffs], Wed Dec 3 01:01:19 1997 UTC (15 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.79: +20 -6
lines
Diff to previous 1.79 (colored)
Fix three problems spotted by mycroft: - Closing the audio device should stop recording. - Manipulating the pause function could accidentally start playing or recording. - AUDIO_FLUSH could accidentally start playing or recording.
Revision 1.79 / (download) - annotate - [select for diffs], Wed Oct 29 02:11:45 1997 UTC (15 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.78: +3 -3
lines
Diff to previous 1.78 (colored)
Fix slight glitch in last commit when AUDIO_DEBUG is on.
Revision 1.78 / (download) - annotate - [select for diffs], Wed Oct 29 02:00:20 1997 UTC (15 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.77: +39 -13
lines
Diff to previous 1.77 (colored)
Do audio attachment the right way. From Chris Demetriou. (Maybe I'll get the hang of the configuration stuff one of these days. :-)
Revision 1.77 / (download) - annotate - [select for diffs], Sun Oct 19 07:41:56 1997 UTC (15 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.76: +454 -41
lines
Diff to previous 1.76 (colored)
Make the audio API (almost) SunOS compatible. The changes is to allow some limited mixer manipulation through the audio device (instead of the mixer device). This rendered 4 methods in audio_hw_if unused so garbage collect these.
Revision 1.76 / (download) - annotate - [select for diffs], Thu Oct 16 23:58:01 1997 UTC (15 years, 8 months ago) by is
Branch: MAIN
Changes since 1.75: +14 -1
lines
Diff to previous 1.75 (colored)
TMS320AV110 (mpeg layer 2 decoder chip) and ZBUS Melody board, which uses it. No optionboards yet for Melody, only audio driver. MPEG data types for audio.c
Revision 1.75 / (download) - annotate - [select for diffs], Thu Oct 16 16:41:18 1997 UTC (15 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.74: +7 -1
lines
Diff to previous 1.74 (colored)
Aignore interrupts if the device isn't open.
Revision 1.74 / (download) - annotate - [select for diffs], Tue Oct 14 18:43:42 1997 UTC (15 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.73: +1 -3
lines
Diff to previous 1.73 (colored)
Don't test for unused methods.
Revision 1.73 / (download) - annotate - [select for diffs], Sat Oct 11 11:16:28 1997 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.72: +3 -6
lines
Diff to previous 1.72 (colored)
GETPROPS does not indicate whether the device is currently in full-duplex mode. Reinstate GETFD to return this information.
Revision 1.72 / (download) - annotate - [select for diffs], Tue Oct 7 22:40:43 1997 UTC (15 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.71: +7 -3
lines
Diff to previous 1.71 (colored)
Sanity check hi/lo water mark settings better.
Revision 1.71 / (download) - annotate - [select for diffs], Sat Sep 6 01:14:48 1997 UTC (15 years, 9 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal
Changes since 1.70: +46 -34
lines
Diff to previous 1.70 (colored)
Move around splaudio() to (hopefully) get rid of some rare race conditions. Add a missing call to round_blocksize. Add some MIDI stuff that will be used in the future.
Revision 1.70 / (download) - annotate - [select for diffs], Wed Aug 27 18:54:28 1997 UTC (15 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +7 -5
lines
Diff to previous 1.69 (colored)
Don't deference a bad pointers if you try to open an audio device that's not configured.
Revision 1.69 / (download) - annotate - [select for diffs], Tue Aug 26 19:04:00 1997 UTC (15 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.68: +5 -3
lines
Diff to previous 1.68 (colored)
Make sure audio device starts in half-duplex mode and document the fact.
Revision 1.68 / (download) - annotate - [select for diffs], Sun Aug 24 22:31:29 1997 UTC (15 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.67: +198 -137
lines
Diff to previous 1.67 (colored)
- Change audio_hw_if a little: set_param now sets the play and record modes at the same time instead by using two different calls. This enables it to check more easily if the combined mode is all right. - Improve the error checking in audio.c. - Add a new audio property, AUDIO_PROP_INDEPENDENT, show if the play and record settings are independent. - Fix some buglets in audio.c.
Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 19 23:49:56 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.66: +166 -167
lines
Diff to previous 1.66 (colored)
Change the MI audio driver so it attaches to the MD driver in the normal way. This requires adding a line to the config files to get audio to work again.
Revision 1.66 / (download) - annotate - [select for diffs], Mon Aug 18 23:20:09 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.65: +18 -6
lines
Diff to previous 1.65 (colored)
Make a slight change to when blocksize, hi- and lo-water marks are recalculated. The new semantics is more intuitive(?) and makes Doom work :-)
Revision 1.65 / (download) - annotate - [select for diffs], Mon Aug 18 21:19:02 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.64: +45 -10
lines
Diff to previous 1.64 (colored)
Implement /dev/audioctl. It behaves much like /dev/sound, but only allows ioctl() and can be opened at any time.
Revision 1.64 / (download) - annotate - [select for diffs], Mon Aug 11 01:38:12 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.63: +65 -14
lines
Diff to previous 1.63 (colored)
Implement delivery of SIGIO on changes to /dev/mixer.
Revision 1.63 / (download) - annotate - [select for diffs], Fri Aug 8 00:03:26 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.62: +8 -1
lines
Diff to previous 1.62 (colored)
Make setting the audio block size sticky. Change the calculated block size to correspond to 50 ms of sound (was 20 ms, it seems needlessly small).
Revision 1.62 / (download) - annotate - [select for diffs], Wed Aug 6 23:08:26 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.61: +55 -61
lines
Diff to previous 1.61 (colored)
Restructure a little to make sure AUDIO_FLUSH restarts the looping DMA.
Revision 1.61 / (download) - annotate - [select for diffs], Wed Aug 6 07:39:59 1997 UTC (15 years, 10 months ago) by fair
Branch: MAIN
Changes since 1.60: +8 -8
lines
Diff to previous 1.60 (colored)
%x -> 0x%x
Revision 1.60 / (download) - annotate - [select for diffs], Mon Aug 4 09:29:51 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.59: +33 -10
lines
Diff to previous 1.59 (colored)
Audio: * Make it possible to use software assisted encodings that expand the sample size. * Use 16 bits per sample when emulating mulaw coding on the SB. * Prepare for SB16 without CT1745 mixer.
Revision 1.59 / (download) - annotate - [select for diffs], Fri Aug 1 17:04:00 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.58: +4 -1
lines
Diff to previous 1.58 (colored)
Implement FIONBIO in audio_ioctl.
Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 31 22:33:18 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.57: +27 -14
lines
Diff to previous 1.57 (colored)
Audio changes: - Change the way attach and open works to allow multiple audio devices. - Split the mulaw.c file into two to avoid dragging in mulaw convertsion when they are not needed. Add 16 bit alaw/mulaw tables. - Change the way audio properties are gotten. - Recognize more versions os SoundBlaster.
Revision 1.57 / (download) - annotate - [select for diffs], Mon Jul 28 20:56:09 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.56: +24 -29
lines
Diff to previous 1.56 (colored)
Audio: Remove the machine dependant code I put in audio.c by mistake. This adds another method to audio_hw_if. Also remove a field from audio_hw_if that was not read-only.
Revision 1.56 / (download) - annotate - [select for diffs], Mon Jul 28 09:28:04 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.55: +8 -4
lines
Diff to previous 1.55 (colored)
Temporary fix to make it compile on non-i386.
Revision 1.55 / (download) - annotate - [select for diffs], Mon Jul 28 01:31:50 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.54: +6 -5
lines
Diff to previous 1.54 (colored)
audio: Minor cleanup and enable looping DMA for PSS and PAS.
Revision 1.54 / (download) - annotate - [select for diffs], Sun Jul 27 23:51:53 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.53: +39 -27
lines
Diff to previous 1.53 (colored)
audio: Simplify handling of AUDIO_SETFD and committing of encoding mode.
Revision 1.53 / (download) - annotate - [select for diffs], Sun Jul 27 23:06:04 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.52: +7 -3
lines
Diff to previous 1.52 (colored)
Fix divide by 0 bug in audio driver.
Revision 1.52 / (download) - annotate - [select for diffs], Sun Jul 27 01:16:44 1997 UTC (15 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.51: +835 -592
lines
Diff to previous 1.51 (colored)
Changes to the sudio system:
- It is now possible to handle devices that want "looping" DMA,
e.g. the SoundBlaster correctly. The WSS and SB drivers use this.
To do this several new methods were introduced in audio_hw_if.
- Different silence handling (forced by previous change).
- The audio driver can now be mmap()-ed, but due to problems in
the VM system only for writing for now.
- The OSS (Linux) audio emulation takes advantage of some of the
new features.
Revision 1.51 / (download) - annotate - [select for diffs], Tue Jul 15 07:46:11 1997 UTC (15 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.50: +22 -8
lines
Diff to previous 1.50 (colored)
In the name of backwards compatibility AUDIO_ENCODING_LINEAR has been renamed AUDIO_ENCODING_SLINEAR and AUDIO_ENCODING_LINEAR reverts to the NetBSD 1.2 sematics. A kernel with COMPAT_12 defined will accept AUDIO_ENCODING_LINEAR and treat it as before, without COMPAT_12 it will be rejected.
Revision 1.50 / (download) - annotate - [select for diffs], Tue May 27 23:24:56 1997 UTC (16 years ago) by augustss
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.49: +34 -19
lines
Diff to previous 1.49 (colored)
Allow more than one hardware driver to attach to the audio upper layer.
Revision 1.49 / (download) - annotate - [select for diffs], Tue May 20 12:51:43 1997 UTC (16 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.48: +2 -2
lines
Diff to previous 1.48 (colored)
Make the audio default parameters into a globally accessible constant.
Revision 1.48 / (download) - annotate - [select for diffs], Sat May 17 23:26:33 1997 UTC (16 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.47: +2 -2
lines
Diff to previous 1.47 (colored)
Change lowater calculation a little. Fix mixer setting bug and add some missing splaudio(). Set SB drq16 to 5 and don't pretend to be SB v1.0.
Revision 1.47 / (download) - annotate - [select for diffs], Sun May 11 00:41:12 1997 UTC (16 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.46: +12 -33
lines
Diff to previous 1.46 (colored)
Clean up audio_silence_copyout().
Revision 1.46 / (download) - annotate - [select for diffs], Sat May 10 19:01:53 1997 UTC (16 years, 1 month ago) by jtk
Branch: MAIN
Changes since 1.45: +2 -2
lines
Diff to previous 1.45 (colored)
fix typo: LINEAR should have been ULINEAR
Revision 1.45 / (download) - annotate - [select for diffs], Fri May 9 22:16:30 1997 UTC (16 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.44: +19 -23
lines
Diff to previous 1.44 (colored)
Change the interface between high and lowlevel audio drivers again: Set the encoding parameters slightly differently. Remove the SW encoding/decodinf functions from this interface and move them to the audio_parameter struct; this is both more efficient and flexible.
Revision 1.44 / (download) - annotate - [select for diffs], Wed May 7 19:24:34 1997 UTC (16 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.43: +2 -1
lines
Diff to previous 1.43 (colored)
Return audio buffer size in audio_info_t with ioctl() AUDIO_GETINFO. Use the buffer size to implement one more OSS ioctl().
Revision 1.43 / (download) - annotate - [select for diffs], Wed May 7 18:51:39 1997 UTC (16 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.42: +53 -25
lines
Diff to previous 1.42 (colored)
Convert to new orthogonal audio encoding scheme and implement some of the new encodings. The change to ioctl AUDIO_GETENC is NOT backwards compatible.
Revision 1.42 / (download) - annotate - [select for diffs], Thu May 1 12:27:10 1997 UTC (16 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.41: +2 -2
lines
Diff to previous 1.41 (colored)
Fix typo in last commit; from Thorsten Frueauf <frueauf@ira.uka.de> in PR/3566.
Revision 1.41 / (download) - annotate - [select for diffs], Tue Apr 29 21:01:46 1997 UTC (16 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.40: +119 -141
lines
Diff to previous 1.40 (colored)
Change the interface between the high and low level audio drivers so that all audio encoding parameters are set at once. This simplifies the interface and make error checking easier.
Revision 1.40 / (download) - annotate - [select for diffs], Sat Apr 19 21:25:43 1997 UTC (16 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.39: +5 -2
lines
Diff to previous 1.39 (colored)
Remove bogus pointer cast. Accept FIONBIO ioctls.
Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 20 16:13:55 1997 UTC (16 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.38: +47 -40
lines
Diff to previous 1.38 (colored)
Make sure to recalculate the block size after changing the sampling rate. Also, nuke the global variable audio_blocksize.
Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 20 06:48:48 1997 UTC (16 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +64 -30
lines
Diff to previous 1.37 (colored)
Combine set_encoding and set_precision into a single set_format interface.
Revision 1.37 / (download) - annotate - [select for diffs], Thu Mar 20 03:19:53 1997 UTC (16 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +34 -4
lines
Diff to previous 1.36 (colored)
Fill in silence-padded blocks so we don't get gaps. From PR 3357, by Lennart Augustsson.
Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 13 02:45:07 1997 UTC (16 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +11 -12
lines
Diff to previous 1.35 (colored)
Modify audio_fill_silence() to take an encoding number rather than a softc* and mode.
Revision 1.35 / (download) - annotate - [select for diffs], Thu Mar 13 02:19:44 1997 UTC (16 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.34: +46 -41
lines
Diff to previous 1.34 (colored)
Don't share the silence block between devices. Make silence filling work for more encodings, and make it device-independent. From Lennart Augustsson, in PR kern/3305.
Revision 1.34 / (download) - annotate - [select for diffs], Sat Jan 18 04:02:58 1997 UTC (16 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Changes since 1.33: +2 -2
lines
Diff to previous 1.33 (colored)
close 3079 from Jason Baker -- fixes a test in audio_poll
Revision 1.33 / (download) - annotate - [select for diffs], Fri Nov 1 23:05:45 1996 UTC (16 years, 7 months ago) by pk
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.32: +2 -1
lines
Diff to previous 1.32 (colored)
Reset `sc_async' on device close.
Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 16 01:12:22 1996 UTC (16 years, 8 months ago) by jtk
Branch: MAIN
Changes since 1.31: +3 -1
lines
Diff to previous 1.31 (colored)
fix compile errors & warnings
Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 13 01:37:04 1996 UTC (16 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.30: +12 -12
lines
Diff to previous 1.30 (colored)
backout kprintf changes
Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 10 22:25:05 1996 UTC (16 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.29: +13 -13
lines
Diff to previous 1.29 (colored)
printf -> kprintf, sprintf -> ksprintf
Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 7 12:40:53 1996 UTC (16 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +29 -42
lines
Diff to previous 1.28 (colored)
Implement poll(2).
Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 1 23:54:53 1996 UTC (16 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +2 -2
lines
Diff to previous 1.27 (colored)
Fix typo.
Revision 1.27 / (download) - annotate - [select for diffs], Sun Sep 1 21:33:43 1996 UTC (16 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +59 -44
lines
Diff to previous 1.26 (colored)
Add mmap method for audio devices. XXX This is just a placeholder to avoid updating conf.h again. Also, clean up some error values.
Revision 1.26 / (download) - annotate - [select for diffs], Mon May 13 02:26:15 1996 UTC (17 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Changes since 1.25: +1 -5
lines
Diff to previous 1.25 (colored)
Remove intr.h for now. This requires more work.
Revision 1.25 / (download) - annotate - [select for diffs], Mon May 13 01:01:55 1996 UTC (17 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.24: +6 -2
lines
Diff to previous 1.24 (colored)
Use intr.h on alpha and i386.
Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 30 22:51:23 1996 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.23: +4 -13
lines
Diff to previous 1.23 (colored)
- Don't use dev_conf.h - Remove unnecessary prototypes - Fix ioctl arguments - Don't use kprintf(...TO_LOG...); directly. This does not set the log priority, and uses priority of the previous message. Use log() with %:
Revision 1.23 / (download) - annotate - [select for diffs], Fri Mar 29 00:11:42 1996 UTC (17 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +7 -7
lines
Diff to previous 1.22 (colored)
Use %p as appropriate.
Revision 1.22 / (download) - annotate - [select for diffs], Thu Mar 14 19:08:32 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.21: +2 -1
lines
Diff to previous 1.21 (colored)
Bring prototypes into scope.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 7 15:00:07 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.20: +64 -39
lines
Diff to previous 1.20 (colored)
prototypes for ccd audio and ncr5380
Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 20 11:47:22 1996 UTC (17 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +21 -17
lines
Diff to previous 1.19 (colored)
Check for errors while changing gain.
Revision 1.19 / (download) - annotate - [select for diffs], Tue Feb 20 10:00:31 1996 UTC (17 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +16 -1
lines
Diff to previous 1.18 (colored)
Trivial (and probably not very good) implementation of SIGIO.
Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 17 02:29:10 1996 UTC (17 years, 4 months ago) by jtk
Branch: MAIN
Changes since 1.17: +32 -14
lines
Diff to previous 1.17 (colored)
Fix PR#2060 (add AUDIO_PERROR ioctl to query # of playback drops), also fix semantics of AUDIO_WERROR (now returns a count). Also repair audio driver back to "real-time mode" where user must provide data quickly enough for real time audio or silence is played until user catches up. Add optional "play all" mode (additional bit in mode field) to play all samples provided, with silence when needed to avoid buffer underrun.
Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 16 02:25:43 1996 UTC (17 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +17 -7
lines
Diff to previous 1.16 (colored)
Eliminate sc_silence, and handle output interrupts somewhat differently. From John Kohl, slightly edited.
Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 8 03:05:34 1996 UTC (17 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +12 -18
lines
Diff to previous 1.15 (colored)
Adjust the low and high watermarks. Based on a suggestion from Lennart Augustsson.
Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 5 21:11:10 1996 UTC (17 years, 4 months ago) by scottr
Branch: MAIN
Changes since 1.14: +6 -2
lines
Diff to previous 1.14 (colored)
Don't adjust the number of blocks in the ring buffer if the driver is currently outputting silence. Fix from Lennart Augustsson <augustss@cs.chalmers.se>, closes PR #2010.
Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 7 06:21:02 1996 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +5 -6
lines
Diff to previous 1.13 (colored)
Make the block size always a whole number of samples.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 5 13:16:30 1996 UTC (17 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.12: +3 -1
lines
Diff to previous 1.12 (colored)
Avoid zero blocksize (from David Huang; PR#1770).
Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 24 23:45:40 1995 UTC (17 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.11: +1 -2
lines
Diff to previous 1.11 (colored)
delete extra (blank) line in comment block
Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 19 19:58:16 1995 UTC (17 years, 11 months ago) by brezak
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.10: +4 -4
lines
Diff to previous 1.10 (colored)
GUS audio driver from John Kohl.
Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 7 01:52:30 1995 UTC (17 years, 11 months ago) by brezak
Branch: MAIN
Changes since 1.9: +110 -82
lines
Diff to previous 1.9 (colored)
Make mode a flag set. Full-dpulex fixes from John Kohl.
Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 4 15:33:50 1995 UTC (18 years ago) by brezak
Branch: MAIN
Changes since 1.8: +2 -2
lines
Diff to previous 1.8 (colored)
call hw->setfd with param not ptr to it
Revision 1.8 / (download) - annotate - [select for diffs], Mon May 8 22:01:34 1995 UTC (18 years, 1 month ago) by brezak
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
Remove strings
Revision 1.7 / (download) - annotate - [select for diffs], Mon May 8 17:42:07 1995 UTC (18 years, 1 month ago) by brezak
Branch: MAIN
Changes since 1.6: +3 -10
lines
Diff to previous 1.6 (colored)
Don't call hardware close in mixer_close(). From Rolf Grossmann <grossman@informatik.tu-muenchen.de>
Revision 1.6 / (download) - annotate - [select for diffs], Mon May 8 16:06:38 1995 UTC (18 years, 1 month ago) by brezak
Branch: MAIN
Changes since 1.5: +4 -2
lines
Diff to previous 1.5 (colored)
Set mixer type for rec and play level set. PR#1027
Revision 1.5 / (download) - annotate - [select for diffs], Fri May 5 22:36:14 1995 UTC (18 years, 1 month ago) by brezak
Branch: MAIN
Changes since 1.4: +16 -2
lines
Diff to previous 1.4 (colored)
Auto-select open mode when opened half-duplex. From John Kohl. PR#1006
Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 24 19:13:52 1995 UTC (18 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.3: +10 -7
lines
Diff to previous 1.3 (colored)
A couple of fixes frm Rolf Grossmann.
Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 17 23:04:31 1995 UTC (18 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +8 -8
lines
Diff to previous 1.2 (colored)
Make some functions non-static.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 25 00:04:08 1995 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +6 -6
lines
Diff to previous 1.1 (colored)
Use void* rather than caddr_t in many places.
Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 21 01:36:56 1995 UTC (18 years, 4 months ago) by brezak
Branch: MAIN
New audio subsystem