summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* - Improve tracer, to handle more cases of input-to-output monitoringmav2010-01-221-60/+84
| | | | | | | | | loopback. - Change the meaning of "mix" OSS control. Now it controls loopback level, according to comments in soundcard.h. - Allow AD1981HD codecs to use playback mixer. Now driver should be able to really use it. - Fix bug in shared muters operation.
* Print playback channels paths in order of their sequence numbers, not nids.mav2010-01-211-7/+7
|
* Hide from default sndstat some information not used on daily basis,mav2010-01-132-11/+16
| | | | to make it readable by average user with average screen size.
* Make OSS_GETVERSION ioctl supported also for DSP devices,mav2010-01-121-0/+4
| | | | | | same as 4Front and Linux do. MFC after: 1 month
* Make default recording source choosing more intelligent.mav2010-01-121-3/+9
| | | | | Change default recording level from 0 to 75. It should increase chances for things to work just out of the box.
* Align buffer size to LCM of 128bytes, required by hardware, and alignment ofmav2010-01-121-4/+28
| | | | | | current format. This fixes problems with non-power-of-2 number of channels. Enable 5.1 formats support, as they are working fine now.
* Make OSS_GETVERSION ioctl really work. It has 'M' group, not 'P',mav2010-01-122-42/+32
| | | | | | | | | | as different nearby ones, and was grabbed by MIXER_xxx() handler. While there, replace '(cmd & MIXER_xxx(0)) == MIXER_xxx(0)' expressions with more correct '(cmd & ~0xff) == MIXER_READ(0)'. Use of bit operations to compare numeric fields doesn't looks sane. MFC after: 1 month
* Add multichannel (4.0 and 7.1) playback support. 5.1 mode support blockedmav2010-01-112-43/+82
| | | | | | | | | now due to unidentified synchonization problem. For 7.1 soundcards 5.1 support handled correctly via software upmix done by sound(4). Stereo stream is no more duplicated to all ports. If you loose sound, check you are using right connectors. Front speakers connector is usually green, center/LFE - orange, rear - black, side - gray.
* Remove extraneous semicolons, no functional changes.mbr2010-01-071-1/+1
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 1 week
* Update d_mmap() to accept vm_ooffset_t and vm_memattr_t.rnoland2009-12-291-1/+2
| | | | | | | | | | | | | This replaces d_mmap() with the d_mmap2() implementation and also changes the type of offset to vm_ooffset_t. Purge d_mmap2(). All driver modules will need to be rebuilt since D_VERSION is also bumped. Reviewed by: jhb@ MFC after: Not in this lifetime...
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-282-2/+2
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* - add support for more than 2 audio channels. [1]thompsa2009-12-221-70/+146
| | | | | | - add support for more sample rates Submitted by: [1] ariff (earlier version), Hans Petter Selasky
* Add one more set of codec IDs.mav2009-12-111-0/+8
|
* Add two Cirrus Logic codec IDs.mav2009-11-261-0/+10
| | | | | | Add GPIO setting quirk for Apple MacBookPro5,5. Submitted by: ed
* add support for MIDI devices without audio control stream.thompsa2009-11-221-0/+7
| | | | Submitted by: Hans Petter Selasky
* remove volume alignment (was previously not correctly implemented)thompsa2009-11-201-13/+7
| | | | | Submitted by: HPS Reported by: Jaakko Heinonen
* Add more codec IDs.mav2009-11-131-1/+23
|
* Improve support for High-speed USB audio devices.thompsa2009-11-081-121/+120
| | | | | | | | - fix issues regarding the mixer, where the interface number was not set in time. - fix wrong use of resolution parameter. Submitted by: Hans Petter Selasky
* Fix typo in previous commit.mav2009-09-301-1/+3
| | | | Add Realtek ALC887 codec ID.
* Add some bits of HDMI/DisplayPort support from later specification updates.mav2009-09-292-13/+100
| | | | | It may be not enough to make them work, but at least should give some information about these beasts.
* Move es137x.c and es137x.h to a 2-clause BSD license. Also move a fewjoel2009-09-222-14/+34
| | | | | | | comments. Submitted by: Joachim Kuebart Approved by: core, Russell Cattelan <cattelan@thebarn.com>
* - According to Linux, the ALi M5451 can do 31-bit DMA instead of justmarius2009-09-221-18/+78
| | | | | | | | | | | | | | | | | | | | | | 30-bit like the reset of the controllers supported by this driver. Actually ALi M5451 can be setup up to generate 32-bit addresses by setting the 31st bit via the accompanying ISA bridge, which allows it to work in sparc64 machines whose IOMMU require at least 32-bit DMA. Even though other architectures would also benefit from 32-bit DMA, enabling this bit is limited to sparc64 as bus_dma(9) doesn't generally guarantee that a low address of BUS_SPACE_MAXADDR_32BIT results in a buffer in the 32-bit range. - According to Tatsuo YOKOGAWA's ali(4), the the DMA transfer size of ALi M5451 is fixed to 64k and in fact using the default size of 4k - The 4DWAVE DX and NX require the recording buffer to be 8-byte aligned so adjust the bus_dma_tag_create(9) accordingly. - Unlike the rest of the controllers supported by this driver, the ALi M5451 only has 32 hardware channels instead of 64 so limit the loop in tr_intr() accordingly. [1] Submitted by: yongari [1] Reviewed by: yongari (superset of what is committed) MFC after: 3 days
OpenPOWER on IntegriCloud