summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2007-07-31Add first version to enable auto association (best signal AP). ThereforeMarcus Glocker
remove experimental, hard-coded MAC address block. Also tested by claudio@
2007-07-31Add missing splx(s); calls. OK mglocker@Claudio Jeker
2007-07-31Plug a mbuf leak in the TX path and replace a handbuilt m_copydata()Claudio Jeker
implementation with m_copydata(). Remove the CMALO_DEBUG that slipped in somehow. OK mglocker@
2007-07-31don't duplicate .numt in .desc; 'In this driver, whatever you want' deraadt@Constantine A. Murenin
2007-07-31change sensor type: if .value can only ever be 0 or 1, .type should be indicatorConstantine A. Murenin
2007-07-31remove magic numbers: use PCAGPIO_NPINS instead (no binary change); ok deraadt@Constantine A. Murenin
2007-07-31Our audio layer doesn't know anything about mixer names likeDeanna Phillips
"selector" and "front", so instead create the items that it actually needs. This unbreaks the mute button in wscons, and allows setting the volume in programs like xmms and xine. This is for STAC9200 only - similiar fixes for other codecs coming soon. Tested and ok krw@
2007-07-31In the mixer to device level conversions, round down to the nearestDeanna Phillips
valid step, and keep them in sync. This lets audio(4) set exact gain levels based on the mixer delta, and unbreaks volume up/down buttons in wscons. This also avoids a divide by zero that could occur if the generic mixer init found an amplifier with zero steps. Problem noticed and tested by jmc@, similar diff tested by krw@
2007-07-31Start to improve TX/RX path; don't accept further packets from TX queueMarcus Glocker
unless the last packet has been processed by the device. Protect RX routine with splnet(). This changes let me scp with ~575KB/s in 11b for now.
2007-07-31Simplify TX path.Marcus Glocker
2007-07-31always ignore attempts to set the record or play port to 0.Jacob Meuser
this interface to mixer functionality is very limited, and is only used for recording. it only recognizes 'mic', 'cd', and 'line' as valid recording inputs. many devices have other inputs. because of the way AUDIO_INITINFO works, it is impossible to expand this API to include all devices. this fixes another common cause of audioctl(1) problems. AUDIO_GETINFO returns 0 for record.port when the recording port is something other than 'mic', 'cd', or 'line', and the subsequent AUDIO_SETINFO would fail on this.
2007-07-30After two weeks of fumbling arround in the association FW command, i foundMarcus Glocker
a trick to correct the wrong generated rates-element-id in the FW association mgmt packet. Makes it possible to associate to more AP's.
2007-07-30syncTodd T. Fries
2007-07-30AXIM pda and V360 phone, ok mk@Todd T. Fries
2007-07-29regenChris Kuethe
2007-07-29add a bunch of new nvidia devicesChris Kuethe
ok matthieu
2007-07-28regenJasper Lievisse Adriaanse
2007-07-28add biometric coprocessorJasper Lievisse Adriaanse
2007-07-27Missing $OpenBSD$ tag.Xavier Santolaria
2007-07-27Commiting for xsa@ who dosent want to for some reason. He has KNFed andGordon Willem Klok
de-proplibed some of the netbsd bluetooth drives for HID devices (mice and keyboards) they will however NOT BUILD YET as they lack the glue device bthidev and our replacement for the problib. no objections from uwe
2007-07-27Correct the length of the usb_string_descriptor_t and fix a possibleMarc Balmer
buffer overflow. Problem found by (and original diff from) Marc Winiger <mw@msys.ch>, comment by me on jsg's request. ok jsg, claudio
2007-07-27Add ids for two Conexant codecs; not sure they're officialIan Darwin
("does not exist outside of mentions in linux/netbsd on the web"), gleaned from http://www.ussg.iu.edu/hypermail/linux/kernel/0504.0/1146.html. "sure" deraadt@, ok with above comment jsg@
2007-07-25Back out the tracking of procs in struct selinfo. There's one seriousArtur Grabowski
bug in the code, but as soon as I try to fix it, it seems to trigger some other bugs. Instead of trying to figure out what's going on while everyone suffers, it's better to back out and figure out the bugs outside the tree.
2007-07-25Add a missing splx() and while there update the printf() to match the formatClaudio Jeker
of the other ones. From Marc Winiger mw at msys . ch
2007-07-25define and use CDCE_DEBUG and DPRINTF/DPRINTFN to be less noisy on theMarc Balmer
console. From Marc Winiger <mw@msys.ch> ok jsg, claudio
2007-07-24hardware WEP in the TX path.Damien Bergamini
make sure to clear the SCAN lock in case the scan is interrupted.
2007-07-23This shouldn't be needs-count -- especially because it breaks config.Michael Knudsen
Revert it to needs-flag. Noticed by xsa.
2007-07-23bthub needs-countMichael Knudsen
2007-07-23This improves cdce(4) and makes some devices work that previously did notMarc Balmer
(like the Sony Ericsson K610 mobile phone). - Read hardware address from ethernet descriptor makes the Sony Ericsson K610 work. - Add support for status notifications (interrupt endpoint). - Recognize if there is a union descriptori (thus remove CDCE_NO_UNION). - Handle wrong union descriptors (master/slave values are swapped) (Ambit NTL 250) Diff done by Marc Winiger <mw@msys.ch>, tested by many on different platforms and with various devices: cable modems, mobile phones, and, zaurus as USB function. ok jsg, claudio, kili
2007-07-23Some style/knf nits.Michael Knudsen
Also, don't restrict to only opening dev minor 0.
2007-07-23Add glue for a control device for bthub(4). Will be used to configureMichael Knudsen
device inquiry/discovery parameters, pairings, and what else might be needed. From discussion with gwk. MAKEDEV goo follows later. ok and lots of input from miod.
2007-07-23STAC7661:Deanna Phillips
- enable internal mic and select it as the default recording source, - create mixerctl record.source for selecting between internal and external mics, - mute input by default.
2007-07-23Fix a typo in a comment: VAIO SE -> VAIO SZ.Deanna Phillips
2007-07-23STAC7661: rename "inputs.mic" to "record.volume". This is what theDeanna Phillips
audio layer wants, and is a more accurate description. Use the correct number of steps.
2007-07-23STAC7661:Deanna Phillips
- Add set_port and get_port functions and use them to create a stereo master volume out of the headphone and speaker dacs. Unbreaks setting the volume in ports like xmms. - Use the correct number of steps for the dac volumes.
2007-07-23We will never make a mixer item out of the pin control operation, soDeanna Phillips
move it out of azalia_generic_mixer_set into its own function, azalia_generic_mixer_pinctrl. From kent@netbsd. In azalia_stac9200_mixer_init, let the unsolicited event handler make the initial headphone vs speaker choice. Removes some duplicate code. These changes only affect STAC9200. Tested by krw@ on a Latitude D620.
2007-07-22clear the IFF_ALLMULTI flag when the interface goes down.David Gwynne
2007-07-22the softc variable is sc, not sp.David Gwynne
2007-07-21no need to say in two ways "a set of usb devices went away"; ok by a fewTheo de Raadt
2007-07-20Don't show debug output when an interrupt is not for us.Marc Balmer
From Marc Winiger <mw@msys.ch> ok dlg, claudio.
2007-07-18- when traversing mixer fields in the attach routine and connectingJacob Meuser
the mixer layer to the audio layer, differentiate between the 'monitor' class and the 'outputs' class instead of lumping them together. not all mixers have a monitor class entry which was causing the outputs class to be ignored. - look for monitor port in the monitor class, but if the monitor port is not found in the monitor class look in the outputs class as well. the code was effectively looking in both the monitor and outputs classes before, so this is no real change. sets up audio_info.play.[gain|balance] correctly on at least emu(4), auich(4), auvia(4) and snapper(4) ... probably most other AC'97 devices as well. as a result, audioctl(1) works much better and the overall volume can be set with /dev/audio instead of needing to go through /dev/mixer. from deanna@ thanks again to those who tested this change
2007-07-18unbreak build.Damien Bergamini
pointed out by mglocker@
2007-07-18move the processing of the pause attribute to the end of audiosetinfo(),Jacob Meuser
to allow buffer sizes and pointer to the buffer to be set to reasonable values for the sample size of the data to be read/written. fixes kernel corruption seen with azalia and probably other drivers that are using something other than 8kHz monaural mulaw as the default encoding when doing 'dd if=/dev/audio of=foo' as the first audio operation after boot. problem reported by deanna@
2007-07-18convert code under #if 0 to the new ieee80211_key structure.Damien Bergamini
2007-07-18replace the ieee80211_wepkey structure with a more generic ieee80211_keyDamien Bergamini
one that can be used with other ciphers than WEP.
2007-07-17Add missing '};' to end struct declaration. Compiles again.Kenneth R Westerback
2007-07-17more places where the difference between the hardware sample sizeJacob Meuser
and the userland sample size matters. there may be different sample size factors for play and record, so use the appropriate factor when userland sets the blocksize. the reported blocksize, hiwat and lowat are only for the play buffer. IMO, it would be good to report the record blocksize, hiwat and lowat as well, but that is another issue. tested with emu(4) and an auvia(4) modified to only do stereo in hardware.
2007-07-17ident/ansify/de-registerJasper Lievisse Adriaanse
2007-07-17- the data in the read buffer, that was put there by the hardware,Jacob Meuser
may not be the same sample size as what userland is to receive. account for the discrepency between the sample sizes when comparing how much to copy out with what userland expects. - only copy out the part of the buffer that is in the format userland expects. emu(4) can now record with all encodings it claims to be able to. that is, dd if=/dev/audio of=foo does as audio(4) says (monaural mu-law) and does it correctly. AFAIKS, the only other driver that sets a read factor is uaudio(4), and that depends on what the hardware supports. tested on i386, amd64 and sgi with 3 different emu(4) cards
2007-07-17when looping through an array and advancing your pointer to the arrayJacob Meuser
2x on each loop, only loop .5x times fixes hard hangs on i386 and "hiccups" on sgi when these functions are used through e.g. dd if=/dev/audio of=foo, since mulaw is the default encoding. the commit history wrt this code is interesting. I am responsible for introducing this braindamage to OpenBSD ... and note that linear16_to_linear8_[lb]e had it right ...