augustss
33f1482ece
Make sure recording is started before we return EWOULDBLOCK in a read().
1998-12-27 23:25:32 +00:00
augustss
496387c419
Fold lines to 80 chars.
1998-12-27 22:52:23 +00:00
drochner
6292c7eda0
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)
1998-12-20 14:26:44 +00:00
mycroft
53698488ff
Do not permit a class to be recorded as a master or monitor port.
1998-11-25 13:44:13 +00:00
mrg
db3051d720
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!
1998-11-19 15:38:20 +00:00
christos
b12bfa760e
Make this compile again with no audio but with midi devices.
1998-09-27 16:43:56 +00:00
mycroft
b742b9ad67
Move some debugging output to more useful levels.
1998-09-01 07:27:06 +00:00
pk
535cdbe9f2
Slight optimization in audio_[pr]int().
1998-08-28 12:07:41 +00:00
augustss
c50af72c34
Handle the case of MIDI devices with no audio devices.
1998-08-28 07:44:12 +00:00
thorpej
1083dcb6ca
Back out previous.
1998-08-18 18:16:30 +00:00
thorpej
73d1752963
Deal with somewhat bogus uninitialized warning in new egcs. Behavior
...
is such that would inidicate that __attribute__((__noreturn__)) is not
being honored.
1998-08-18 06:16:45 +00:00
augustss
cd09067eb4
* 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.
1998-08-17 21:16:09 +00:00
mycroft
20ec08b84e
Oops.
1998-08-10 01:17:33 +00:00
mycroft
10148394d2
Call set_params if usemode changes.
1998-08-10 01:13:20 +00:00
mycroft
17431823fb
Add trigger_output and trigger_input entry points, which replace
...
init_{in,out}put and start_{in,out}put, and are only called once.
1998-08-09 20:28:07 +00:00
mycroft
a2fc689833
Make sure output is thoroughly halted on close, and remember that we stopped
...
it.
1998-08-09 07:25:58 +00:00
mycroft
9bedf069cd
Mask off extra usemode bits.
1998-08-09 05:44:51 +00:00
mycroft
b3853549b3
Always copy back both the record and play parameters, in case the driver had
...
to change one behind our back.
1998-08-09 04:54:44 +00:00
augustss
48bae9ee88
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).
1998-08-07 00:00:55 +00:00
augustss
28e2d6024a
Clarify a comment.
1998-08-05 16:38:09 +00:00
augustss
5b057ab09f
Allow option AUDIO_INTR_TIME even if the platform does not support
...
FP in the kernel.
1998-08-04 11:26:14 +00:00
mycroft
f37f08c48e
This doesn't need opt_compat_netbsd.h any more.
1998-07-09 09:27:33 +00:00
mycroft
401accfd7a
Don't #ifdef the encoding compatibility crud. It's needed for source
...
compatibility with other systems and much third party software.
1998-07-09 02:45:45 +00:00
jonathan
d275e56dee
* defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
...
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
augustss
54281b8662
Avoid spaces in tsleep() string.
1998-05-18 18:27:43 +00:00
augustss
88edb37522
Be more verbose if attaching the audio device fails.
1998-05-15 15:45:58 +00:00
augustss
df71a424d6
Change debug printing a littel again.
1998-04-28 23:19:20 +00:00
augustss
127acabd9c
Add a few more debug messages and clean up debug printing a little.
1998-04-28 09:07:12 +00:00
augustss
44c6ce78d2
Avoid the name free so the MALLOCLOG option works again.
...
Fix some typos.
1998-03-03 09:16:15 +00:00
thorpej
43ba4e27bd
Adjust for config changes.
1998-01-12 08:44:08 +00:00
augustss
a908b2b30e
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.
1997-12-03 01:01:19 +00:00
augustss
b366d54e2e
Fix slight glitch in last commit when AUDIO_DEBUG is on.
1997-10-29 02:11:45 +00:00
augustss
9f84e63746
Do audio attachment the right way. From Chris Demetriou.
...
(Maybe I'll get the hang of the configuration stuff one of these days. :-)
1997-10-29 02:00:20 +00:00
augustss
e7029fc0da
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.
1997-10-19 07:41:33 +00:00
is
25ea46120a
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
1997-10-16 23:57:56 +00:00
augustss
31ab81c6e4
Aignore interrupts if the device isn't open.
1997-10-16 16:41:18 +00:00
augustss
0d79fbe5c5
Don't test for unused methods.
1997-10-14 18:43:42 +00:00
mycroft
3cdff9d435
GETPROPS does not indicate whether the device is currently in full-duplex
...
mode. Reinstate GETFD to return this information.
1997-10-11 11:16:28 +00:00
augustss
4f2068ec29
Sanity check hi/lo water mark settings better.
1997-10-07 22:40:43 +00:00
augustss
ffcdaf144d
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.
1997-09-06 01:14:48 +00:00
thorpej
d2a9d1970d
Don't deference a bad pointers if you try to open an audio device that's
...
not configured.
1997-08-27 18:54:28 +00:00
augustss
955e1e9119
Make sure audio device starts in half-duplex mode and document the fact.
1997-08-26 19:03:55 +00:00
augustss
6616d47838
- 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.
1997-08-24 22:31:23 +00:00
augustss
332ad95e76
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.
1997-08-19 23:49:33 +00:00
augustss
e5b75f05d4
Make a slight change to when blocksize, hi- and lo-water marks are
...
recalculated. The new semantics is more intuitive(?) and makes Doom
work :-)
1997-08-18 23:20:09 +00:00
augustss
34085fae66
Implement /dev/audioctl. It behaves much like /dev/sound, but only
...
allows ioctl() and can be opened at any time.
1997-08-18 21:19:02 +00:00
augustss
8f096d087f
Implement delivery of SIGIO on changes to /dev/mixer.
1997-08-11 01:38:12 +00:00
augustss
9a770a177f
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).
1997-08-08 00:03:26 +00:00
augustss
3c6f8bc89e
Restructure a little to make sure AUDIO_FLUSH restarts the looping DMA.
1997-08-06 23:08:26 +00:00
fair
aae99e192d
%x -> 0x%x
1997-08-06 07:39:59 +00:00