mycroft
4ffebebb25
Several things:
...
* Use the new trigger_{in,out}put interface.
* Allow the play and record channels to have different encodings (but the
same sample rate).
* Play u-law and a-law as 16-bit data. (This may not work yet...)
1998-08-09 20:32:34 +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
8cbcfa0df2
Add mulaw_to_slinear16 and alaw_to_slinear16.
1998-08-09 19:22:15 +00:00
wrstuden
b1bb9aa490
Oops. We do still need to set t_dev in the first open part of zsopen,
...
so we get ttyXX vs cuaXX right. Leave the initialization in attach.
1998-08-09 18:36:45 +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
b4e0bf5dfb
Use 4- and 8-byte DMA transfers.
1998-08-09 06:52:57 +00:00
mycroft
0611fc34f8
Don't actually touch the hardware in set_params; defer that until we actually
...
start a transfer. Instead, just check that the parameters are valid.
Also, use 16-bit output for u-law and a-law.
1998-08-09 06:38:30 +00:00
wrstuden
26e55969e4
Initialize the struct tty's t_dev field at attach rather than first open.
...
The attach routine calls zsparam if we're setting up the console, and
zsparam needs this field to tell which zstty to set up. Otherwise, we
set up zstty0 even if it's not the console!
1998-08-09 06:17:07 +00:00
mycroft
9bedf069cd
Mask off extra usemode bits.
1998-08-09 05:44:51 +00:00
mycroft
5eba82397c
Oops; fix typo.
1998-08-09 04:59:55 +00:00
mycroft
017b9af5fe
Clarify with a specific reference to the manual page in question.
1998-08-09 04:58:08 +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
mycroft
12f5a41e1f
Make the previous slightly more robust, and set AUDIO_PROP_INDEPENDENT.
1998-08-09 04:40:55 +00:00
mycroft
c8532af3b2
Make sure the sample rate is the same on both channels, tracking the change
...
from one channel to the other if only one is active.
1998-08-09 04:14:47 +00:00
mycroft
759ca5ee0c
The manual says to use the other crystal for 22050Hz.
1998-08-09 03:48:42 +00:00
mycroft
565adbaffb
Set the FIFO control bits correctly so that stereo recording works.
1998-08-09 02:54:50 +00:00
mycroft
80457a2c65
Use auto-initialize DMA for recording.
1998-08-09 02:05:52 +00:00
mycroft
e2686d0a1b
Use splnet, not splimp.
1998-08-08 23:51:39 +00:00
mycroft
c49235f44c
Use splnet(), not splimp().
1998-08-08 23:44:12 +00:00
mycroft
7795559d04
Use splaudio on the arm32 port.
1998-08-08 23:40:03 +00:00
mycroft
254afcaecb
Sleeping forever kinda sucks.
1998-08-08 21:37:00 +00:00
mycroft
17932f0575
Set the correct modes for the record channel.
1998-08-08 20:55:36 +00:00
augustss
94e9a8651a
Forgotten to commit this in last change.
1998-08-08 11:00:33 +00:00
ross
815f9f2445
1. Untangle preprocessor conditionals for sanity and {} balance
...
2. Fix a race between the first callout and the first non-polled ncr_start()
1998-08-08 00:14:08 +00:00
drochner
49637cda8d
use an md keyboard beep replacement function on alpha too
1998-08-07 10:28:36 +00:00
thorpej
9bb616c621
Regen.
1998-08-07 06:59:31 +00:00
thorpej
88c6239026
Add product IDs for the 3Com Cyclone-based PCI Ethernet devices,
...
the 3c90xB DMA-only cards.
1998-08-07 06:58:57 +00:00
thorpej
558733ffc6
Track our carrier status and report it in the media status callback.
1998-08-07 05:55:14 +00:00
matt
202c97c54d
Add an isapnp frontend for the ess driver. It somewhat works
...
(sounds is made but one buffer is played continuously).
1998-08-07 00:53:23 +00:00
matt
7b044dea51
Make the irq checking logic somewhat less bogus.
1998-08-07 00:51:06 +00:00
augustss
51bb504a6e
Report a sensible MIDI device name.
1998-08-07 00:28:20 +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
02c9ad1755
And fix pastos.
1998-08-06 12:26:51 +00:00
augustss
a79bb0d7ae
Fix tyop.
1998-08-06 12:23:39 +00:00
drochner
e2a2525203
fix incorrect length of LOCATE CDB (reported in PR kern/5306 by
...
Dave Huang <khym@bga.com>)
1998-08-06 10:20:38 +00:00
augustss
0c6791d804
Add macro to test iobase validity.
1998-08-05 16:40:22 +00:00
augustss
28e2d6024a
Clarify a comment.
1998-08-05 16:38:09 +00:00
drochner
32fce55082
Improve generation of default disklabels:
...
-store printable product ID in cd's and sd's softc, use it as "typename"
-for this, add a "destination buffer length" argument to scsipi_strvis()
-return ATAPI device type for ATAPI devices
1998-08-05 16:29:04 +00:00
augustss
a0aeff98c4
Fix two pastos.
1998-08-05 10:16:25 +00:00
augustss
f76fb48283
Use looping DMA for play channel.
...
More cleanup.
1998-08-04 13:14:42 +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
augustss
ac2b25e392
Improve some error messages.
...
Make some preparations for isochronous transfers.
1998-08-02 22:30:52 +00:00
augustss
607075abc6
Use wskbd enable function.
1998-08-02 22:27:01 +00:00
drochner
0dc548ce7d
Adapt to wskbd interface changes; add dummy enable/disable function.
1998-08-02 14:22:25 +00:00
drochner
86b0985e69
Adapt to wskbd interface changes; implement enable/disable function.
...
Disable the keyboard on attach if not console.
1998-08-02 14:21:02 +00:00
drochner
4ee71fe4f4
Split the wskbd_attach arguments into console and autoconfiguration parts
...
(again); put some constant data into shared structures. This makes it
more look like the mouse part, and it helps USB integration.
Implement wskbd_enable() to enable/disable the keyboard.
1998-08-02 14:18:07 +00:00
augustss
eba74b9369
Abort interrupt pipe on disconnect.
1998-08-01 20:52:45 +00:00
augustss
6aff95b06c
Make sure to abort the interrupt pipe on disconnect of a mouse or keyboard.
...
Improve some error messages.
1998-08-01 20:11:38 +00:00
augustss
f654e0188e
Switch from a global flag to tell if the host controller should use
...
polling to a local one for each controller.
1998-08-01 18:16:19 +00:00
augustss
5a1f4dd6bc
Complete the scancode conversion table.
...
Tell the keyboard not to send idle reports.
1998-08-01 17:46:22 +00:00