summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-11-30don't rebuild the list of supported formats if it isn't goingJacob Meuser
to change.
2008-11-30- don't access nonexistent converter goupsJacob Meuser
- don't try to create formats for converter groups that don't exist - don't allow playback or recording if there is no corresponding converter group - don't try to set audio processing parameters on converter groups that don't exist allows playback (or record) only devices to work, such as the azalias found on ATI graphics devices. note, the ATI devices generally attach before the onboard devices do. that means they will be audio0 and onboard devices will be audio1. don't forget to make sure the /dev/{audio[ctl],mixer,sound} links point to the nodes of the device you want to be the default. tested by naddy@, thanks
2008-11-30- Remove unused if_reset "bus reset routine" field in the ifnet struct.Brad Smith
- Add if_stop "stop routine" field in the ifnet struct. ok mglocker@
2008-11-29syncTheo de Raadt
2008-11-29liebert ubs as ugenTheo de Raadt
2008-11-29need splvm() around the call to m_extfree() in the defraggerTheo de Raadt
2008-11-29use the the correct register mask. Fixes certain mixer settingsAlexandre Ratchov
being unreachable.
2008-11-29Fix damage done by brad@ and dlg@.Matthieu Herrb
2008-11-29revert 1.197 if_em.c, 1.38/1.39 if_em.h, requested by dlg, until a bugStuart Henderson
reported on misc@ can be tracked down. identical diff from jsing.
2008-11-29add sscom here too. Fixes armish build.Matthieu Herrb
2008-11-29Fix high-speed isoc USB transfers; 64bit capable USB host controllersMarcus Glocker
have a different transfer descriptor than non-64bit capable ones. This fixes isoc transfer issues (resulting in broken image data) for uvideo(4) devices attached to ehci(4) seen on USB Intel host controllers. From Jeremy Morse via NetBSD.
2008-11-29unbreak tree breakage snuck inTheo de Raadt
2008-11-29Iain Hibbert (plunky@netbsd) removed clauses 3 and 4 from hisRay Lai
licenses as well. Thanks! "Groovy" deraadt
2008-11-29Fix a possible NULL pointer dereference. Spotted by Tobias Ulmer; thanks!Owain Ainsworth
2008-11-28don't create a _source control on mixers if none of the sources areJacob Meuser
usable. better (generalized) solution forthcoming, but this is a reasonable check anyway. problem noted and fix tested by Alexey Suslikov, thanks.
2008-11-28AZ_TARGET_PINSENSE -> MI_TARGET_PINSENSEJacob Meuser
reminder from Alexey Suslikov, thanks
2008-11-28check the jack detect override bit before creating jack sense mixerJacob Meuser
items. BIOSes can set the jack detect override bit to tell us that the jack detection circuirty isn't actually attached. should remove the _sense controls that never change.
2008-11-28Welcome gpiodcf(4), a driver that attaches to a GPIO pin, decodes theMarc Balmer
signal from an attached DCF77, HG, or TDF receiver and provides a timedelta.
2008-11-28- remove a couple unneeded checksJacob Meuser
- another place to use azalia_nid_to_index
2008-11-28Garbage collect now unused field in the softc struct.Brad Smith
2008-11-28- use switch() instead of multiple if elseJacob Meuser
- put selectors that feed ADCs into the record class like we do for mixers - use azalia_nid_to_index more - shrink mixer items list by condensing mutes for multiple input sources into a single _source control of type AUDIO_MIXER_SET. for example, record.mix6_mic_mute=off record.mix6_mic2_mute=off record.mix6_line_mute=off record.mix6_hp_mute=off record.mix6_spkr_mute=off record.mix6_mix_mute=off is now represented as record.mix6_source=mic,mic2,line,hp,spkr,mix to mute all sources but the mic just do record.mix6_source=mic reduces mixer items by about 25% on my machine. also shortens the longest names.
2008-11-28- DACs don't have connection lists like ADCs doJacob Meuser
- we're only interested in ADCs in the ADC converter group
2008-11-28add paranoia helper function, azalia_nid_to_index. the nid isJacob Meuser
assumed in places to be the index of the widget in the widget_t array of the codec_t, but I'm paranoid. use it to shrink/simplify/fortify some parts. will be used more soon.
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-11-27widget initialization cleanup:Jacob Meuser
* configure widgets all in one place * add a flag on the widget_t to let us know if the widget is not connected; shaves a lot of connection checking code * be sure not to add power widgets as connectable sources/sinks * configure unconnected pins as output pins. should help some MacBooks and be benign to other devices. the last change has been tested by several as a separate diff. no real functional changes otherwise. from Alexey Suslikov. thanks!
2008-11-27finally, generic converter grouping that fits our needs and worksJacob Meuser
on all (at least all tested) devices. briefly, it works like so: group together all converters that can be reached from or can reach a connected input or output pin. ordering in the converter groups correlates to the association and sequence of the input/output pin. remove lots of static converter groupings in favor of the generic grouping method. the only static groups left are for codecs that still have static mixer configurations. tested by many. thanks to all who tested; this wouldn't have happened without your support.
2008-11-27Needs explicit <sys/malloc.h> include; Georg SchwarzMiod Vallat
2008-11-27intrdoduce DPRINTFN macro so debug messages can be selectively enabled.Jacob Meuser
use it to quiet some debug messages by default, so people don't get scared when testing completely unrelated changes when AZALIA_DEBUG is defined. print out ADC groupings when AZALIA_DEBUG is defined like we do for DAC groupings.
2008-11-27It turns out Motorola manufactured ECC 128MB memory boards for MVME188Miod Vallat
assemblies, so allow up to 512MB of memory on MVME188 systems. Thanks maz for the 128MB board!
2008-11-27ZAURUS -> GUMSTIX in guard symbols.Miod Vallat
2008-11-27Give the tags target a chance to work.Miod Vallat
2008-11-27On 88100 cpus, make sure userland processes start with SNIP and SFIP validMiod Vallat
(i.e. with the valid bit set in them). Found the hard way by Anders Gavare trying his latest gxemul, proves the hardware is more permitting than one would expect it to be...
2008-11-27initial import of Weongyo Jeon's FreeBSD driver for the RealTek RTL8187LKevin Lo
802.11 devices. currently it has issues scanning. ok jsg@
2008-11-27The Netgear WG1111v2 wifi dongle contains a RTL8187 chip,Kevin Lo
not a GW3887 chip. ok mglocker@
2008-11-27Add sscom to cdevswitch like fcom used to be.Dale Rahn
2008-11-27tx starting to work.Dale Rahn
2008-11-27Enable gpioow and gpioiic for runtime attachment, keep the previousMarc Balmer
synopsis as a comment (since it still works if needed). ok drahn
2008-11-27better.Dale Rahn
2008-11-26Doh, do not commit before compile. Found by sthen@Claudio Jeker
2008-11-26Do a quick return if m->m_next is NULL in m_defrag() because there is nothingClaudio Jeker
todo. Discussed with deraadt@ and dlg@
2008-11-26definition of the iscsi wire protocol stuff.David Gwynne
ok deraadt@
2008-11-26Stop maintaining internal queues of received scsi_xfer structures.Kenneth R Westerback
We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers. "Please do so" deraadt@
2008-11-26Disable some devices for now to make GENERIC build. ok drahn@.Matthieu Herrb
2008-11-26Enable Bluetooth (btd and btctl are not hooked into the build yet)Uwe Stuehler
2008-11-26only the pool_get() needs to be spl protected; ok claudio dlgTheo de Raadt
2008-11-26Avoid network livelock.Theo de Raadt
Use a 1 tick timeout() to determine if the kernel even manages to get below softclock (from an old diff by mpf). If our timeout comes late, reduce the high water marks (to half) for all network interfaces, thus starving them of future packet allocations for their RX rings. For a few ticks longer, also block the high water marks from rising even if RX ring empty conditions would prod us to do so. Cards may start dropping some packets off the end of their smaller RX rings, but we were not able to do the work required in any case. With less interrupt time and mbuf movement, the system finds time to make progress at the network queues. Userland even gets to run. A x40 tuned to 600MHz shows no real reduction in performance. But a soekris has a working console now. ok dlg claudio, and art liked it too
2008-11-26Use m_defrag instead of collapsing mbufs ourselves.Mark Kettenis
ok dlg@
2008-11-26dont have bpf.h expose the kernel ticks variable wherever it is includeing.David Gwynne
it is very confusing like this. ok deraadt@ canacar@
2008-11-26provide m_clsetlwm, an interface for an interface to raise its lowDavid Gwynne
watermark for mbuf cluster allocations. this is necessary for things like bge which cannot cope with less than a certain number of pkts on the ring. ok deraadt@
2008-11-26Make M_DUP_PKTHDR and M_MOVE_PKTHDR a bit saver by respecting the M_EXT &Claudio Jeker
M_CLUSTER flags from the target mbuf. Still these function are only allowed on newly allocated buffers. OK dlg@