summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
Commit message (Collapse)AuthorAgeFilesLines
* Fix headphones pin configuration on Lenovo B450 laptop.mav2011-08-181-0/+8
| | | | | Submitted by: "Sergey V. Dyatko" <sergey.dyatko@gmail.com> Approved by: re (kib)
* Restore USB MIDI transmit buffer size to 1Kbyte.hselasky2011-07-141-1/+1
| | | | MFC after: 1 week
* Introduce a quirk for broken USB MIDI hardware instead of limiting performancehselasky2011-07-031-11/+11
| | | | | | in general. MFC after: 1 week
* Fix problem about USB MIDI TX data format, that some devices only accepthselasky2011-07-021-23/+30
| | | | | | | a maximum of 4 bytes (one command) per short terminated USB transfer. Optimise the TX case by sending multiple USB frames. MFC after: 1 week
* Do not attach to the sound device on G5 Xserves, which is actually annwhitehorn2011-06-261-0/+12
| | | | | | | LED controller used to run the load graph on the server's front panel. Reported by: Paul Mather <paul at gromit dot dlib dot vt dot edu> MFC after: 3 days
* - Move all USB device ID arrays into so-called sections,hselasky2011-06-241-0/+9
| | | | | | | | | | | | sorted according to the mode which they support: host, device or dual mode - Add generic tool to extract these data: tools/bus_autoconf Discussed with: imp Suggested by: Robert Millan <rmh@debian.org> PR: misc/157903 MFC after: 14 days
* Hide driver revision behind bootverbose.joel2011-06-151-1/+4
| | | | Approved by: mav
* Add bunch of Conexant codec IDs. For some of them add quirks to disablemav2011-06-131-0/+39
| | | | excessive signal paths to simplify tracer's life.
* Make automatic hw.snd.default_unit choice a bit more intelligent. Insteadmav2011-06-071-18/+36
| | | | | | | | | | | | of just setting it to the first registered device, reevaluate it for each device registered, trying to choose best candidate, unless one was forced. For now use such preference order: play&rec, play, rec. As side effect, this should workaround the situation when HDMI audio output of the video card, usually not connected to anything, becomes default, that requires manual user intervention to make sound working. If at some point this won't be enough, we can try to fetch some additional priority flags from the device driver.
* Add better names for the Intel HDMI audio codecs.mav2011-05-261-12/+14
|
* usb: change to one-pass probing of device driversavg2011-05-181-5/+2
| | | | | | | | | | | | | | | | | | | | | This brings USB bus more in line with how newbus is supposed to be used. Also, because of the two-pass probing the following message was produced by devd in default configuration when almost any USB device was connected: Unknown USB device: vendor <> product <> bus <> This should be fixed now. Note that many USB device drivers pass some information from probe method to attach method via ivars. For this to continue working we rely on the fact that the subr_bus code calls probe method of a winning driver again before calling its attach method in the case where multiple drivers claim to support a device. This is done because device description is set in successful probe methods and we want to get a correct device description from a winning driver. So now this logic is re-used for setting ivars too. Reviewed by: hselasky MFC after: 1 month
* fix build on 32-bit platforms for r221803avg2011-05-121-1/+1
| | | | | | | | | Casting a pointer to a wide integer is probably not that bad, but I am still guilty of not testing this. Pointyhat to: avg MFC after: 1 week X-MFC with: r221803
* dsp/pcm: allow to mmap both read and write buffers using the same fdavg2011-05-121-21/+35
| | | | | | | | | | This brings our implementation in line with OSS specification for systems that support mmap. The change should also improve compatibility with OSS software not specifically written for FreeBSD, e.g. PulseAudio OSS plugin. Reviewed by: kib, jhb MFC after: 1 week
* Correct a typojfv2011-05-121-1/+1
|
* Chipset support for the new Intel Panther Point PCH, thanksjfv2011-05-111-0/+2
| | | | to Seth Heasley for preparing the changes.
* Workaround for broken no-name USB audio devices sold by dealextremehselasky2011-05-091-1/+48
| | | | | | called "3D sound" and the alike. MFC after: 14 days
* SNDCTL_DSP_GETIPTR: set pointer to sndbuf_getfreeptr()avg2011-05-031-1/+1
| | | | | | | | | | | | | | Rationale: - unlike current behavior this seems to be compliant with OSS specification: http://manuals.opensound.com/developer/SNDCTL_DSP_GETIPTR.html - this seems to meet expectations of some OSS programs compiled for or ported from Linux, e.g. ALSA OSS plugin - this doesn't seem to break any programs as far as current testing shows Tested by: nox, hselasky MFC after: 4 days
* Only set the sample rate if the USB audio channel reportshselasky2011-04-201-4/+3
| | | | | | | that it supports the frequency control request. MFC after: 7 days Approved by: thompsa (mentor)
* Allocate the sound buffer DMA memory coherent. While NetBSD typicallymarius2011-03-111-1/+1
| | | | | | | | | | also does this for sound drivers it's probably not necessary for all combinations of controllers and drivers. However, given that our sound drivers completely lack bus_dmamap_sync(9) calls this at least serves as a workaround when enabling use of the IOMMU streaming buffers on sparc64 and generally for arm and mips. MFC after: 2 weeks
* - Add support for some non-standard USB MIDI devices from Roland, byhselasky2011-02-241-15/+32
| | | | | | | | | means of allowing vendor specific interface class for audio and MIDI devices. - Add new quirks for this. The vendor and product list in OpenBSD's dev/usb/umidi_quirks.c was used as reference. MFC after: 14 days Approved by: thompsa (mentor)
* Fix typos - remove duplicate "the".brucec2011-02-211-1/+1
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* - Make an enum for all the umidi USB transfers.hselasky2011-02-181-108/+62
| | | | | | | | | | | | - Use the USB stack's builtin clear-stall feature. - Wrap some long lines. - Use memcpy() instead of bcopy(). - Use memset() instead of bzero(). - Tested applications: /usr/ports/audio/fluidsynth MFC after: 7 days Approved by: thompsa (mentor)
* Correct signedness and off-by-one issues in parameters used for DMA tagmarius2011-02-092-2/+2
| | | | | | | | creation. PR: 154259 Submitted by: Vladislav Movchan (partially) MFC after: 3 days
* Support for the new Patsburg PCH chipset:jfv2011-02-011-1/+5
| | | | | | | | | | | - SMBus Controller - SATA Controller - HD Audio Controller - Watchdog Controller Thanks to Seth Heasley (seth.heasley@intel.com) for providing us code. MFC after 3 days
* Fix up a few more sysctl(9) mis-typing found in various LINT builds.mdf2011-01-131-2/+2
|
* sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly.mdf2011-01-121-1/+1
| | | | Commit the rest of the devices.
* Remove unneeded includes of <sys/linker_set.h>. Other headers that usejhb2011-01-111-1/+0
| | | | | | it internally contain nested includes. Reviewed by: bde
* Add device id for RDC M3010 which is found on Vortex86 SoC.yongari2010-12-281-0/+5
| | | | Reviewed by: mav
* Merge amd64 and i386 bus.h and move the resulting header to x86. Replacetijl2010-12-201-1/+1
| | | | | | | | | the original amd64 and i386 headers with stubs. Rename (AMD64|I386)_BUS_SPACE_* to X86_BUS_SPACE_* everywhere. Reviewed by: imp (previous version), jhb Approved by: kib (mentor)
* Use convenience functions where possible instead of accessing the PCItijl2010-12-182-12/+0
| | | | | | | | | | | | | configuration registers directly. Remove pci_enable_io calls where they are redundant. The PCI bus driver will set the right bits when the corresponding bus resource is activated. Remove redundant pci_* function calls from suspend/resume methods. The bus driver already saves and restores the PCI configuration. Reviewed by: jhb Approved by: kib (mentor)
* Fix typos.brucec2010-11-091-2/+2
| | | | | PR: bin/148894 Submitted by: olgeni
* Make hw.snd.vpc_0db to be also a loader tunable.mav2010-10-251-0/+1
|
* Fix a brain-o: wrong case statement semantics.rpaulo2010-10-132-2/+4
| | | | Found with: clang
* Add Intel Cougar Point PCH HD Audio Controller IDjfv2010-08-281-0/+2
| | | | MFC in a week
* Do not free sc if attach failed, as it was allocated by the busgavin2010-08-041-1/+0
| | | | | | | | | | infrastructure, not us. This appears to be a leftover from an older version of the driver. Submitted by: avg Tested by: Anton Shterenlikht <mexas bristol.ac.uk> MFC after: 1 week X-MFC-Note: To stable/8 and stable/7 only
* - fix for USB audio devices which use the 7-byte endpoint descriptor instead ofthompsa2010-06-222-54/+9
| | | | | | | | the 9-byte one. - remove sync-endpoint code, which is currently unused. Reported by: Antun Matanovi Submitted by: Hans Petter Selasky
* Reduce MIDI input buffer size to one USB packet, hence some USB devices don'tthompsa2010-06-221-8/+2
| | | | | | | | properly short terminate their transfers. This fixes a problem where input appears several seconds late. Reported by: Alexander Yerenkow Submitted by: Hans Petter Selasky
* sound/pcm: use non-const string as a value with SYSCTL_STRINGavg2010-06-153-3/+3
| | | | | | | | | | | | | Although the sysctls are marked with CTLFLAG_RD and the values will stay immutable, current sysctl implementation stores value pointer in void* type, which means that const qualifier is discarded anyway and some newer compilers complaint about that. We can't use de-const trick in sysctl implementation, because in that case we could miss an opposite situation where a const value is used with CTLFLAG_RW sysctl. Complaint from: gcc 4.4, clang MFC after: 2 weeks
* Add set of codec IDs.mav2010-06-091-0/+10
| | | | PR: kern/147466
* - Remove more dead code[1]. Since r207330, we only need to check divisionjkim2010-05-042-14/+11
| | | | | | | | | by zero of the second argument 'from'. - Prefer u_int32_t over unsigned int to make its intention more clearer. - Move the function to a header file and make it a static inline function. Pointed out by: Andrew Reilly (areilly at bigpond dot net dot au)[1] MFC after: 3 days
* Remove dead code. Calculated greatest common divisor was not used at all.jkim2010-04-281-11/+0
| | | | | | | | | On top of that, LLVM+Clang mis-compiles this code because of its register allocator bug. Analyzed by: Andrew Reilly (areilly at bigpond dot net dot au) Reviewed by: ariff, rdivacky MFC after: 3 days
* Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this hadthompsa2010-04-221-11/+11
| | | | | | the illusion of a tunable setting but was always turned on regardless. MFC after: 1 week
* Fix the gap between mute and lowest possible volume. The es1370 mixerjoel2010-04-011-2/+2
| | | | | | | | | | | volumes were incorrectly calculated. I've tested this with one of my es1370 cards and I can confirm that it works. PR: 98167 Submitted by: Joseph Terner <jtsn@gmx.de> Approved by: kib
* Start copyright notices with /*-joel2010-03-296-6/+6
|
* Fix lock leakage.mav2010-03-271-0/+1
| | | | PR: kern/145081
* Add some more codec IDs.mav2010-03-211-1/+15
|
* Looks like I forgot to add half of the copyright text when we switched tojoel2010-03-081-0/+12
| | | | our preferred license.
* Fix bug in headphones audio redirection using separate DAC. It was exposedmav2010-02-261-2/+2
| | | | by removing channel duplication during multichannel audio implementation.
* Rename usb2_ structures and variables to usb_.brucec2010-02-082-78/+78
| | | | | Approved by: rrs (mentor) Discussed with: hps
* Oops! r202789 broke recording from input mixer. Restore previous "mix"mav2010-01-221-4/+14
| | | | usage and use "igain" instead for input-to-output monitoring loopback.
OpenPOWER on IntegriCloud