Commit Graph

2500 Commits

Author SHA1 Message Date
jmcneill 9bcb29f652 Add multiple voice support to the ESS Allegro-1 / Maestro-3 family of
audio accelerators.

Mixing is done in hardware by the ASSP, but is limited to 4 simultaneous
channels due to the restricted "minisrc" image that we are currently
working with.

Due to limitations in the audio subsystem, I'm currently attaching multiple
'audio' devices to 'esa', one for each voice. Because of this hack, the
default ESA_NUM_VOICES is 1.
2002-03-16 14:34:00 +00:00
tacha 52d9a1d306 Use appropriate emulation functions and set ADC rate(not DAC date!) for recording.
Now /dev/audio with auich becomes usable.
2002-03-15 07:16:10 +00:00
wiz 3c20f3f606 Fix some typos in comments. 2002-03-13 22:23:50 +00:00
ad b89e39b91a Reorganise the wsfont stuff slightly so that multiple display adapters
with different bit/byte order requirements can co-exist happily.
2002-03-13 15:05:13 +00:00
chs 5d8f761ba0 support the 4-port boards with the Cogent OUI as well. 2002-03-13 05:05:38 +00:00
chs fcbc075a7a support ANA-6944A boards (in addition to ANA-6922). 2002-03-13 04:15:05 +00:00
joda 642cb4cedf regen 2002-03-11 23:19:01 +00:00
joda e981250262 some devices found in a dell machine 2002-03-11 23:17:37 +00:00
kent 8574f78760 auich_set_params() sets 2 to hw_channels whenever monaural format is requested. 2002-03-10 16:48:58 +00:00
jmcneill 023d9c6eb8 Correctly enable/disable the low-pass filter, depending on the sample rate.
This fixes timing issues when playing back at 48kHz (noticable using
pkgsrc/graphics/mplayer and DivX ;-) streams).
2002-03-10 14:57:31 +00:00
kent a1f23f2a90 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)
2002-03-09 20:30:42 +00:00
christos 833f408cd1 stupid void pointers... tl_init() needs struct ifnet *... 2002-03-07 21:42:20 +00:00
kent c329c38eef 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().
2002-03-07 14:37:02 +00:00
jmcneill 9481b68d9a Fix another typo that I missed last time (foo -> ESA_foo) 2002-03-06 18:30:31 +00:00
jmcneill b9083c85dc Fix a few typos (foo -> ESA_foo). 2002-03-06 18:28:07 +00:00
tsutsui c155b0375f Major overhaul of trm(4) driver:
- Change structures for each device to make them more suitable with
  our scsipi mid-layer.
- Use ADAPTER_REQ_SET_XFER_MODE callback.
- Cleanup misc functions/structures/style.

XXX Tagged queuieng support is disabled for now.
XXX Maybe we should have common library of the scsi protocol engine
XXX to share it among all other drivers..
2002-03-06 12:32:49 +00:00
haya cff90ff521 Enforce 10-bit width for I/O addresses of 16-bit PC Cards when I/O
start address is assigned by a driver.
2002-03-05 11:56:33 +00:00
itojun ac36f7cb2c bring in latest ALTQ from kjc. ALTQify some of the drivers. 2002-03-05 04:12:57 +00:00
simonb 64c7743a05 Don't "extern int cold;" - this is in <sys/kernel.h>. 2002-03-04 02:19:07 +00:00
kleink 6d484242b0 Regen: add Motorola Raven, Falcon and Hawk product IDs. 2002-03-01 13:48:59 +00:00
kleink b1c2f47c30 Add Motorola Raven, Falcon and Hawk product IDs. 2002-03-01 13:47:30 +00:00
thorpej 8c51a03d7e If the upper layer says Write/Invalidate is okay, then make sure
it's enabled in the PCI CSR.
2002-02-28 23:52:37 +00:00
thorpej 2ba5de1eb1 Change the default Rx FIFO drain threshold to 128 bytes; this
reduces the likelihood of Rx FIFO overruns on machines with wimpy
PCI busses, while still allowing the interface to burst with a
reasonable size.
2002-02-28 20:08:11 +00:00
thorpej 07e108c7dc * On the DP83820, make sure to make the Tx DMA map large enough for
jumbo frames.
* Work around broken PXE firmware on some boards, which leave the ROM
  BAR enabled even after the PXE stack has been unloaded.
* Set up the initial values for sc_tx_fill_thresh, sc_tx_drain_thresh, and
  sc_rx_drain_thresh in sip_attach(), rather than in sip_init().
2002-02-28 19:10:16 +00:00
junyoung 66900b849e Regen. 2002-02-28 03:40:43 +00:00
junyoung c1670f1122 Oops, readd an ID for Rage XL which was removed in previous commit. 2002-02-28 03:39:37 +00:00
junyoung 36dc3b5f36 Regen; fix for duplicate ATI Rage Pro. 2002-02-28 02:34:15 +00:00
junyoung 1ce4367071 Better fix of duplicate ATI Rage Pro IDs. `_B' and `_P' mean BGA and
PQFP, respectively.
2002-02-28 02:32:50 +00:00
christos d487168d5f PR/15754: Sean Davis: Initialize if_softc before calling the mii init
routines to avoid NULL pointer de-referencing in the callbacks.
2002-02-28 00:52:21 +00:00
martin fe3a97c935 regen 2002-02-27 21:01:55 +00:00
martin b6b3e04f66 Avoid duplicate define for ATI Rage Pro PCI 2002-02-27 21:00:28 +00:00
junyoung 53e222d45c Regen. 2002-02-27 16:38:08 +00:00
junyoung ab2517393d Fully revise product IDs for ATI Mach64 and Rage graphics cards.
XXX Rage 128 not revised.
2002-02-27 16:36:41 +00:00
joda b57f5ccbca in esa_resume, call esa_codec_reset; makes it much more happy after a
suspend on my O500 (snatched from FreeBSD)
2002-02-26 11:05:05 +00:00
kleink 764103c61c Regen: add IBM 82660 PowerPC to PCI Bridge and Memory Controller. 2002-02-24 01:44:00 +00:00
kleink 914e8aef4a Add IBM 82660 PowerPC to PCI Bridge and Memory Controller. 2002-02-24 01:42:36 +00:00
mjacob 91f80cf3fc Implement F/W crashdumps for 2200 && 2300 cards (kernel compile option).
Distinguish between 2312 and 2300 cards (they *are* different). Enable
RIO (Reduced Interrupt Operation) for the LVD cards (hey- I've seen
batched completions of the 30 commands at a time with this,....)...

If we get a Port Logout on local loop topologies, we have to force the
f/w to log back in. The easiest way (for us) to do this is to force
a LIP. This also will wake up the disk that probably just had a f/w crash.

Implement mailbox 'continuations'- this allows interrupts to re-drive
a mailbox command if it's one that just essentially repeats the previous
mailbox command (e.g., f/w download). This saves a boatload of sleep/wakeup
twitches.

If we're not a 2300 and we're about to return with a 'bogus interrupt'- check
the semaphore register to be non-zero at all and outgoing mailbox 0- this
seems to be where some of the lost ISP1080 commands came from.
2002-02-21 22:32:40 +00:00
kleink e9dc13b243 As discussed with Jason Thorpe: while the `cacheline_size\' argument is
a byte-size quantity, the CacheLine Size configuration register specifies
the system cacheline size in units of 32-bit words; per PCI Local Bus
Specification, rev. 2.1, section 6.2.4.
2002-02-21 20:22:48 +00:00
simonb b0a8050029 regen: Use BCM prefix instead of SB prefix in previous. 2002-02-21 00:00:28 +00:00
simonb 1d958329b8 Use BCM prefix instead of SB prefix in previous. 2002-02-20 23:59:58 +00:00
simonb 1df79a37a8 regen: Add the SiByte/Broadcom SB1250 PCI and LDT bridge IDs. 2002-02-20 23:53:32 +00:00
simonb 034caadcd2 Add the SiByte/Broadcom SB1250 PCI and LDT bridge IDs. 2002-02-20 23:53:01 +00:00
simonb ee0bfb00bf regen: Rename the SIBYTE entry to "Broadcom Corp. (SiByte)". 2002-02-20 23:46:55 +00:00
simonb e4007a266b Rename the SIBYTE entry to "Broadcom Corp. (SiByte)". 2002-02-20 23:45:50 +00:00
thorpej 3285e44973 Regen: Add the Elan SC520 System Controller. 2002-02-16 16:36:36 +00:00
thorpej 1b6c81cacd Add the AMD Elan SC520 System Controller. 2002-02-16 16:35:48 +00:00
augustss 77beb7e099 Use the correct years for copyright. 2002-02-14 21:58:30 +00:00
augustss 4cb7d87b12 Oops, I messed up the last commit, try again. 2002-02-14 12:52:01 +00:00
chs 4ee45f845f add support for Adaptec ANA-69xx multi-port cards. 2002-02-14 07:59:55 +00:00
augustss 076c2a2de8 Make fixed rate codecs work. From Tsuyoshi Iguchi in kern/15606. 2002-02-14 03:22:36 +00:00