aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound
Commit message (Collapse)AuthorAgeFilesLines
* Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (2 of many)Pawel Biernacki2020-02-151-7/+11
| | | | | | | | | | | | | | | r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly marked). Use it in preparation for a general review of all nodes. This is non-functional change that adds annotations to SYSCTL_NODE and SYSCTL_PROC nodes using one of the soon-to-be-required flags. Reviewed by: hselasky, kib Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D23632 Notes: svn path=/head/; revision=357972
* Remove sparc64 kernel supportWarner Losh2020-02-034-1956/+1
| | | | | | | | | Remove all sparc64 specific files Remove all sparc64 ifdefs Removee indireeect sparc64 ifdefs Notes: svn path=/head/; revision=357455
* Fix some misleading indentation warnings reported by recent clang.John Baldwin2020-01-262-6/+8
| | | | | | | | | | | | | These should not be any functional change. While the change in emul10kx-pcm.c looks like a real bug fix (as opposed to inconsistent whitespace), the extra statements were not harmful. Reviewed by: kib Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D23363 Notes: svn path=/head/; revision=357146
* Configure headphone redirection for the Dell L780 and X1 Carbon 7th gen.Mark Johnston2019-12-092-2/+6
| | | | | | | | | | | | As we do for many other laptops, put the headphone jack and speakers in the same association by default so that the generic sound device automatically switches between them. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=355570
* Add support for new sound HDA hardwareScott Long2019-12-053-0/+4
| | | | | | | Sponsored by: Intel Notes: svn path=/head/; revision=355429
* Add device IDs for the next generation of Intel HDA audio.Scott Long2019-10-283-0/+18
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=354143
* snd_hda: style(9) whitespace fixupEd Maste2019-10-171-1/+1
| | | | | | | | PR: 241299 Submitted by: Neel Chauhan Notes: svn path=/head/; revision=353682
* snd_hda: Add Intel Cannon Lake supportOleksandr Tymoshenko2019-09-261-0/+1
| | | | | | | | | | Add missing header change ommitted in r352775 MFC after: 2 weeks X-MFC-with: 352775 Notes: svn path=/head/; revision=352776
* snd_hda: Add Intel Cannon Lake supportOleksandr Tymoshenko2019-09-261-0/+1
| | | | | | | | | | | | | | Add PCI ids for Intel Cannon Lake PCH Tested on: HP Spectre x360 13-p0043dx PR: 240574 Submitted by: Neel Chauhan <neel@neelc.org> Reviewed by: imp, mizhka, ray MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D21789 Notes: svn path=/head/; revision=352775
* Decrease the default audio playback latency to a maximum of 21.3ms.Hans Petter Selasky2019-09-051-1/+1
| | | | | | | | | | | This significantly improves the audio playback response time. Discussed with: mav@ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=351847
* Properly check for an interrupted cv_wait_sig().Mark Johnston2019-08-301-2/+2
| | | | | | | | | | | | The returned error number may be EINTR or ERESTART depending on whether or not the signal is supposed to interrupt the system call. Reported and tested by: pho MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=351624
* Fix sound on headset jack for ThinkPad T51.Xin LI2019-08-211-0/+9
| | | | Notes: svn path=/head/; revision=351325
* Use a sleepable lock for midistat functions.Mark Johnston2019-08-201-72/+58
| | | | | | | | | | | | Otherwise the mutex needs to be dropped when copying out the midistat sbuf, leading to a race which allows one to read kernel memory beyond the end of the sbuf buffer. Reported and tested by: pho Security: CVE-2019-5612 Notes: svn path=/head/; revision=351262
* Partially revert the previous commit.Jung-uk Kim2019-08-191-6/+4
| | | | | | | It was an experiment and not meant to be committed. :-( Notes: svn path=/head/; revision=351233
* Fix sound on headset jack for Lenovo Thinkpad X1 Carbon Gen 6 (model 20KH).Jung-uk Kim2019-08-192-4/+14
| | | | | | | | | Note this commit was inspired by r350433. MFC after: 2 weeks Notes: svn path=/head/; revision=351231
* Fix sound on headset jack for ALC255 and ALC256 codec.Marcelo Araujo2019-07-302-2/+16
| | | | | | | | | | | | | | | PR: 219350 [1], [2] Submitted by: Masachika ISHIZUKA (ish_at_amail.plala.or.jp) [1] Neel Chauhan (neel_at_neelc.org) [2] uri Momotyuk (yurkis_at_gmail.com) [3] Reported by: miwi Reviewed by: mav Obtained from: https://github.com/trueos/trueos/pull/279 [3] MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D19017 Notes: svn path=/head/; revision=350433
* I add the ability to accept the default pin widget configuration to helpSean Bruno2019-07-172-5/+12
| | | | | | | | | | | | with various laptops using hdaa(4) sound devices. We don't seem to know the "correct" configurations for these devices and the defaults are far superiour, e.g. they work if you don't nuke the default configs. PR: 200526 Differential Revision: https://reviews.freebsd.org/D17772 Notes: svn path=/head/; revision=350078
* Extract eventfilter declarations to sys/_eventfilter.hConrad Meyer2019-05-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This allows replacing "sys/eventfilter.h" includes with "sys/_eventfilter.h" in other header files (e.g., sys/{bus,conf,cpu}.h) and reduces header pollution substantially. EVENTHANDLER_DECLARE and EVENTHANDLER_LIST_DECLAREs were moved out of .c files into appropriate headers (e.g., sys/proc.h, powernv/opal.h). As a side effect of reduced header pollution, many .c files and headers no longer contain needed definitions. The remainder of the patch addresses adding appropriate includes to fix those files. LOCK_DEBUG and LOCK_FILE_LINE_ARG are moved to sys/_lock.h, as required by sys/mutex.h since r326106 (but silently protected by header pollution prior to this change). No functional change (intended). Of course, any out of tree modules that relied on header pollution for sys/eventhandler.h, sys/lock.h, or sys/mutex.h inclusion need to be fixed. __FreeBSD_version has been bumped. Notes: svn path=/head/; revision=347984
* Tune chipset naming.Alexander Motin2019-03-202-5/+5
| | | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=345332
* Export vendor specific USB MIDI device list to PnP info.Hans Petter Selasky2019-01-301-0/+1
| | | | | | | | MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=343584
* Add quirk to enable mic and headphones redirection on HP Spectre laptops.Vladimir Kondratyev2019-01-222-0/+13
| | | | | | | | | Tested on HP AF006UR. MFC after: 2 weeks Notes: svn path=/head/; revision=343327
* snd_uaudio: Add quirks for Edirol UA-25EX in advanced driver mode.Hans Petter Selasky2019-01-122-4/+4
| | | | | | | | | | | | Extend the vendor class USB audio quirk to cover devices without the USB audio control descriptor. PR: 234794 MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=342961
* Fix reading of USB sample rate descriptor for SPL Crimson Rev 1.Hans Petter Selasky2018-12-251-7/+46
| | | | | | | | | | | Read first one entry, then try to read the full rate descriptor table. PR: 234380 MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=342456
* Add a comment noting that the additional range checks are not needed.Konstantin Belousov2018-12-021-1/+4
| | | | | | | | | | | | | | The object size is set in the dsp_mmap_single() which provides the range limit by vm_fault(). Reported by: C Turt <ecturt@gmail.com> Reviewed by: alc, markj admbug: 781 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=341400
* Don't read the USB audio sync endpoint when we don't use it to saveHans Petter Selasky2018-11-081-1/+11
| | | | | | | | | | isochronous bandwidth. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=340248
* Adjust SiS 966/968 HDA controller naming.Alexander Motin2018-11-021-1/+1
| | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> Notes: svn path=/head/; revision=340071
* The event bytes should be unsigned char.Hans Petter Selasky2018-10-221-1/+1
| | | | | | | | | Found by: Peter Holm <peter@holm.cc> MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=339583
* Drop sequencer mutex around uiomove() and make sure we don't move more bytesHans Petter Selasky2018-10-221-2/+15
| | | | | | | | | | | than is available, else a panic might happen. Found by: Peter Holm <peter@holm.cc> MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=339582
* Fix off-by-one which can lead to panics.Hans Petter Selasky2018-10-221-1/+1
| | | | | | | | | Found by: Peter Holm <peter@holm.cc> MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=339581
* Revert r338423, reapplying r338422, which did get approval butGlen Barber2018-09-012-4/+290
| | | | | | | | | | | | communication lines got crossed. Apologies to avatar@ for the confusion. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=338424
* Revert r338422, which was did not get official approval from re@.Glen Barber2018-09-012-290/+4
| | | | | | | | Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=338423
* Adding support for CS46xx MIDI output. With this patch, users canTai-hwa Liang2018-09-012-4/+290
| | | | | | | | | | | | | | play the MIDI files through /dev/sequencer device with tools like playmidi. The audio output will go through the external MIDI device such like wavetable synthesis card. Reviewed by: matk (a long time ago), kib Approved by: re (kib) Tested with: Terratec SiXPack 5.1+ + Yamaha DB50XG MFC after: 4 weeks Notes: svn path=/head/; revision=338422
* Adding device ID for Terratec SiXPack 5.1+.Tai-hwa Liang2018-08-221-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=338200
* Extending the delay cycles to give the codec more time to pump ADC data ↵Tai-hwa Liang2018-08-191-1/+1
| | | | | | | | | | | | | | | | across the AC-link. Without this patch, some CS4614 cards will need users to reload the driver manually or the hardware won't be initialised properly. Something like: # kldload snd_csa # kldunload snd_csa # kldload snd_csa Tested with: Terratec SiXPack 5.1+ Notes: svn path=/head/; revision=338038
* snd_hda: Synchronize DMA buffers for the control pathJustin Hibbits2018-08-012-12/+13
| | | | | | | | | | | | | | | | Make sure both sides of the DMA buffer memory accesses for the CORB and RIRB (control buffers) in snd_hda (device and CPU) can see coherent memory. This is needed on weakly ordered architectures including PowerPC and ARM. Patch originally by mmel, with small changes. This does not cover the data path of snd_hda. We don't have sync operations for in-progress DMA buffers, to sync ranges of a map. Reviewed By: mmel Differential Revision: https://reviews.freebsd.org/D16517 Notes: svn path=/head/; revision=337043
* snd_hda: Byteswap the buffer descriptor entries as neededJustin Hibbits2018-07-311-4/+4
| | | | | | | | | The buffer descriptor list entries should be in little endian format. Byte swap them on BE. This is the last piece of the puzzle for snd_hda(4) to work on PowerPC. Notes: svn path=/head/; revision=336983
* snd_hda: Make codec control path endian safeJustin Hibbits2018-07-301-5/+7
| | | | | | | | | The CORB and RIRB buffers exist in DMA memory, but the device reads them as little-endian only. Read and write as LE into the DMA memory block, to work on BE platforms. Notes: svn path=/head/; revision=336931
* snd_hda: Print error codes in decimal, rather than hexJustin Hibbits2018-07-301-5/+5
| | | | | | | | It's easy to confuse the error code as naked it looks decimal (EINVAL is reported as error 16, instead of error 22, so first reading looks like EBUSY). Notes: svn path=/head/; revision=336912
* snd_hda: Only free streams DMA maps if the streams list has been createdJustin Hibbits2018-07-301-2/+3
| | | | | | | | If hdac_attach fails prior to allocating sc->streams, cleanup in the hdac_attach_fail label will dereference a NULL pointer, panicking. Notes: svn path=/head/; revision=336911
* Use https over http for FreeBSD pagesEitan Adler2018-07-272-2/+2
| | | | Notes: svn path=/head/; revision=336757
* Update modify counter when setting a mixer control.Hans Petter Selasky2018-07-231-0/+1
| | | | | | | | PR: 229969 MFC after: 1 week Notes: svn path=/head/; revision=336632
* hda(4)Sean Bruno2018-04-232-0/+10
| | | | | | | | | | | | | - add quirk for Dell XPS9560 audio gleaned and massages from linux https://github.com/freebsd/freebsd/pull/137 Submitted by: K Staring MFC after: 3 days Relnotes: yes Notes: svn path=/head/; revision=332890
* Add ISA PNP tables to ISA drivers. Fix a few incidental comments.Warner Losh2018-01-294-4/+4
| | | | | | | ACPI ISA PBP tables not tagged, there's bigger issues with them. Notes: svn path=/head/; revision=328524
* Revert r327828, r327949, r327953, r328016-r328026, r328041:Pedro F. Giffuni2018-01-212-11/+10
| | | | | | | | | | | | | | | | | | Uses of mallocarray(9). The use of mallocarray(9) has rocketed the required swap to build FreeBSD. This is likely caused by the allocation size attributes which put extra pressure on the compiler. Given that most of these checks are superfluous we have to choose better where to use mallocarray(9). We still have more uses of mallocarray(9) but hopefully this is enough to bring swap usage to a reasonable level. Reported by: wosch PR: 225197 Notes: svn path=/head/; revision=328218
* dev: make some use of mallocarray(9).Pedro F. Giffuni2018-01-132-10/+11
| | | | | | | | | | | | | | Focus on code where we are doing multiplications within malloc(9). None of these is likely to overflow, however the change is still useful as some static checkers can benefit from the allocation attributes we use for mallocarray. This initial sweep only covers malloc(9) calls with M_NOWAIT. No good reason but I started doing the changes before r327796 and at that time it was convenient to make sure the sorrounding code could handle NULL values. Notes: svn path=/head/; revision=327949
* kernel: Fix several typos and minor errorsEitan Adler2017-12-271-1/+1
| | | | | | | | | | | - duplicate words - typos - references to old versions of FreeBSD Reviewed by: imp, benno Notes: svn path=/head/; revision=327231
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-27134-1/+269
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Slightly fix bidirectional stream number allocation.Alexander Motin2017-11-251-2/+2
| | | | | | | | | | | | This logic is still imperfect, since it allows at most 15 bidirectional streams out of 30 allowed by specification, but at least now those should work better. On the other side I don't remember I ever saw controller supporting the bidirectional streams, so this is likely a nop change. MFC after: 1 month Notes: svn path=/head/; revision=326186
* Add Creative vendor ID.Alexander Motin2017-10-162-0/+5
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=324661
* Use "Ibex Peak" codename for "5 Series/3400 Series" chipsets.Alexander Motin2017-08-091-2/+2
| | | | | | | | | This is shorter and unifies naming with later chipsets. MFC after: 1 week Notes: svn path=/head/; revision=322309