cg
53904fdeb6
implement SNDCTL_DSP_POST
2000-10-27 22:20:45 +00:00
cg
f395b4d615
add reinit functions to mixers
...
unstaticize chn_start()
add reset/resetdone functions to channels
2000-10-26 20:46:58 +00:00
cg
faddab638d
handle AFMT_QUERY right
2000-10-26 01:34:54 +00:00
cg
3e27c54902
prepare for adding a rate conversion feeder.
...
move format conversion feeders to feeder_fmt.c - no pertinent history so no
repo-copy.
2000-09-23 22:11:32 +00:00
cg
27a6dc9c5a
only probe mandatory channels on known bad codecs
2000-09-23 22:00:09 +00:00
cg
9bd1dd51e8
dynamify- probe codec for supported channels
...
add channel mappings for mixer
2000-09-17 23:51:00 +00:00
cg
b5350bb3a5
add 16bit mono/stereo conversion feeder
...
prefer feeder chains of length 1 over length 2
2000-09-09 21:24:03 +00:00
cg
a081b436a3
detach support
...
remove un-needed setdir functions
add bus_teardown_intr calls where necessary
destroy our dma tags where necessary
destroy ac97 before releasing resources
2000-09-09 19:21:04 +00:00
cg
4940b0a8a7
initial support for multiple ac97 codecs
2000-09-05 21:08:01 +00:00
cg
b878b7cbc6
allow a null setdir implementation
2000-09-05 21:00:45 +00:00
cg
55b00bdc52
be more verbose about failed unload attempts
2000-09-05 20:58:51 +00:00
cg
d76980428d
tidy up a little, add a mask for 32bit formats
2000-09-05 20:56:31 +00:00
peter
fe3678e285
Fix warnings by moving static functions before they are used.
2000-09-03 05:32:09 +00:00
cg
31386ce34a
update for phk's last devfs commit
2000-09-02 23:14:46 +00:00
cg
0ab175f21b
add a missing return statement, doh.
2000-09-02 18:55:01 +00:00
cg
a6b7de97e3
change mixer api slightly
...
change channel interface - kobj implementation coming soonish
make pcm_makelinks not panic if modular
add pcm_unregister()
these changes support newpcm kld unloading, but this is only implemented
by ds1.c
2000-09-01 20:09:24 +00:00
cg
ca84dc3f91
make the test for hwptr going backwards more picky- now it only triggers if
...
15/16 of the buffer is skipped or we go backwards by < 1/16 of buffer size.
2000-08-29 16:32:26 +00:00
cg
db66cff047
add devfs support. when devfs is enabled, sysctl hw.sndunit is used to set
...
which sound unit the /dev/{dsp,mixer,dspW,audio} links point at. this can
also be set from the loader.
2000-08-29 16:21:33 +00:00
cg
cc65486f22
rework feeder sytem to allow feeders in klds
...
modify driver capability reporting format to list every audio format
seperately- required for above and because we could not previously indicate
that mono was unsupported.
there should be no functional impact.
2000-08-20 22:18:56 +00:00
cg
9bda127a3e
fix SNDCTL_DSP_GETODELAY
...
PR: kern/20340
Submitted by: Takashi SHIRAI <shirai@nintendo.co.jp>
2000-08-19 18:29:46 +00:00
cg
02ab8f7294
MFS: module macro changes
2000-08-09 18:46:48 +00:00
cg
ecc21b00b9
MFS: sync with peter's isadma fixup
2000-08-09 01:22:09 +00:00
cg
5d9a1c9f9c
warn if hwptr goes backwards
2000-08-09 00:42:00 +00:00
nsayer
b7b1206010
Simplex devices will always report EBUSY on 2nd (and subsequent)
...
opens if the reference count is not decremented on close.
Note that this may result in the reference count being corrupted
on full duplex devices (due to mismatching opens/closes), but the
code doesn't use the reference count for anything on full duplex
devices.
2000-08-02 22:47:44 +00:00
cg
8bfb4dc90b
fix a potential local DoS attack
2000-07-30 19:38:26 +00:00
cg
9446f7ff16
fix a bug where opening /dev/dsp twice resulted in it being busy until reboot
2000-07-30 19:36:13 +00:00
cg
1107e981d0
make this file suitable for 4-stable as well as 5-current
2000-07-18 21:23:48 +00:00
tanimura
7716c5370a
Finally merge newmidi.
...
(I had been busy for my own research activity until the last weekend)
Supported devices:
SB Midi Port (sbc + midi)
SB OPL3 (sbc + midi)
16550 UART (midi, needs a trick in your hint)
CS461x Midi Port (csa + midi)
OSS-compatible sequencer (seq)
Supported playing software:
playmidi (We definitely need more)
Notes:
/dev/midistat now reports installed midi drivers. /dev/sndstat reports
only pcm drivers. We need the new name(pcmstat?).
EMU8000(SB AWE) does not sound yet but does get probed so that the OPL3
synth on an AWE card works.
TODO:
MSS/PCI bridge drivers
Midi-tty interface to support general serial devices
Modules
2000-07-11 11:49:33 +00:00
cg
809e9b3b6c
add module metadata. this is a hack, sound drivers will eventually present a
...
bus to which pcm, mixer, etc will attach.
2000-07-03 20:52:27 +00:00
cg
cdd0f2dff3
add record channel irq timeouts too
2000-06-20 23:42:08 +00:00
cg
cc71ce279b
fix a bug where opening for write would not fail if channel allocation failed
...
when playing, if we stall for 1s with no data advancing, abort and mark the
channel dead - fail all future operations
2000-06-20 23:27:12 +00:00
cg
e9eaaa68ef
make mixer reads return the value written instead of the value set
...
people seem to want this even though it breaks oss spec compliance
2000-06-19 20:31:58 +00:00
cg
65a5eef02b
replace a line erroneously removed in 1.28, should fix xmms
...
make buf_clear handle unaligned lengths
2000-06-17 19:29:40 +00:00
cg
1c4f19e2d7
handle closing differently - should fix the end-of-sample cutoff bug
2000-06-13 23:18:43 +00:00
cg
3b62c472a0
handle duplex properly in the AIOGCAP ioctl - this may (partially?) fix rat
2000-06-07 11:51:30 +00:00
cg
d22fc7d403
improve recording
2000-06-06 22:30:22 +00:00
cg
abb00fd380
don't panic if we try to add a channel we said we wouldn't
2000-06-06 22:24:53 +00:00
cg
ba367be739
if a device has no play or no record channels, set its simplex flag.
2000-06-01 01:32:30 +00:00
cg
2d78819395
fix the return value of the SOUND_PCM_WRITE_CHANNELS ioctl
...
re-enable old pcm ioctls
2000-05-27 14:40:17 +00:00
cg
fe693a0d08
move various fields from pcm_channel to snd_dbuf
...
improve chn_read code- don't stop/restart on overrun, just dump data
more error checking on ioctls
2000-05-26 21:55:13 +00:00
cg
437ef4fa6b
if we have a codec init routine, fail the attach if init fails
2000-05-26 21:42:50 +00:00
cg
e7de7487d9
handle emulated dma reads
...
don't try to get sample size from snd_dbuf
2000-05-26 21:15:47 +00:00
nyan
61405e3c6a
Supported the mss on PC-98 and Sound Blaster 98.
...
Submitted by: "T.Yamaoka" <taka@windows.squares.net>
2000-05-19 15:41:52 +00:00
phk
36c3965ff9
Separate the struct bio related stuff out of <sys/buf.h> into
...
<sys/bio.h>.
<sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall
not be made a nested include according to bdes teachings on the
subject of nested includes.
Diskdrivers and similar stuff below specfs::strategy() should no
longer need to include <sys/buf.> unless they need caching of data.
Still a few bogus uses of struct buf to track down.
Repocopy by: peter
2000-05-05 09:59:14 +00:00
cg
05c83e1b4b
fix the 100% cpu in xmms issue
2000-05-04 19:06:34 +00:00
phk
ce2aa22c93
Remove unneeded #include <sys/kernel.h>
2000-04-29 15:36:14 +00:00
cg
dc9d94db23
duh, i forgot to change a bitmask, sorry alexander
...
Submitted by: Alexander Matey <matey@cis.ohio-state.edu>
2000-04-26 23:08:12 +00:00
cg
a036330123
fix minor numbers for multi-channel devices
...
Submitted by: Alexander Matey <matey@cis.ohio-state.edu>
2000-04-26 20:06:52 +00:00
cg
ea94bdbf08
implement settrigger according to spec
...
fixes for non-blocking mode
2000-04-23 18:09:18 +00:00
cg
57539462d6
more mmap fixes
2000-04-17 17:06:47 +00:00