Commit Graph

35166 Commits

Author SHA1 Message Date
mrg f68267163e fix several KASSERT()s and locking in a few places.
fixes DIAGNOSTIC kernels and still plays.
2018-01-12 05:59:20 +00:00
nat 91843a6b25 Allow open of audioctl devices whilst audio is open with the mixer
disabled.

XXX pullup -8
2018-01-12 04:10:10 +00:00
mlelstv e792951e0d Match Intel Dual Band Wireless AC 3168. The code already supports it. 2018-01-10 18:39:50 +00:00
jakllsch 56c110fb9b Use correct type with CTLTYPE_BOOL.
Fixes this sysctl on big endian.
2018-01-10 15:58:40 +00:00
christos cdd509fe61 tidy up debugging (make it compile with the 'ALL' kernel) 2018-01-09 17:58:09 +00:00
msaitoh 50355ed04b Regen. 2018-01-09 09:19:27 +00:00
msaitoh e96fb9c2c4 Add Intel Apollo Lake devices. 2018-01-09 09:19:05 +00:00
msaitoh 386ff67d69 Regen. 2018-01-09 08:24:42 +00:00
msaitoh d7a23054d7 - s/MMC/eMMC/ for Intel 0x0f14 (Bay Trail)
- Add Atom E3800 (Bay Trail) eMMC 4.5
2018-01-09 08:17:27 +00:00
nat 6a9f5fca12 Fix pad on systems with many cores/cpus:
* Introduce a lock to serialize attach/detach of pad devices.
	* Forcefully detach children of pad on close.
	* Be more carefull in pad_open with regards to config_detach only
	  if new instances of the pad device are created and fail to open.

Addresses PR kern/52889.

These changes were developed with and tested by pgoyette@.
2018-01-09 04:23:59 +00:00
nat 433e65b8f1 Forcefully detach children of audio instances.
This addresses part of PR kern/52889 as children of pad(4) were not
detaching.
2018-01-09 04:14:21 +00:00
nat df76725601 Rework of play/rec threads to ensure effective use of locks.
Addresses part of PR kern/52889 where the mixing thread would not exit on
audio detach.
2018-01-09 04:10:27 +00:00
mlelstv 451e80f07d Fix block address calculation for bad sectors. 2018-01-07 11:37:30 +00:00
nat ba7d7fa18b Only signal a pause change on a transition of a pause change.
This addresses a problem found in audio/sox causing high cpu usage.

Path and analysis by Onno van der Linden.
2018-01-06 23:15:36 +00:00
nat 29ac8c3c0c Whitespace. 2018-01-06 21:16:36 +00:00
christos 249cf59313 use some size_t, add whitespace between functions, rcsids. 2018-01-05 14:22:26 +00:00
christos 087be49549 PR/52900: Tomohiro Kusumi: Fix kernel panic when target's ->init() failed
Reliably unbusy the target in the *all* the destroy routines, so ioctl
does not need to do it.
2018-01-05 14:22:05 +00:00
uwe f89964526a Driver for EM Microelectronic EM3027 RTC and temperature sensor. 2018-01-05 03:07:15 +00:00
msaitoh a566db57e8 Add ASPM workaround for 8257[1234] and 82583 to prevent device timeout or
hangup. Fixes PR#52818 reported by Shinichi Doyashiki.
2018-01-04 09:43:27 +00:00
khorben db8ce746e1 Fix off-by-one when calling snprintf(9) in hdafg_getdev()
This is actually harmless, since:
- the offset is too short rather than too long (no overflow)
- the struct audio_device comes from userland (no information leak)

"looks good to me" nat@
2018-01-04 00:09:12 +00:00
pgoyette b0ab52e7b1 Now that watchdog support has been added, make sure that a modular driver
requires the sysmon_wdog module.
2018-01-02 00:47:14 +00:00
christos 9c08206436 PR/52887: HITOSHI Osada: wbsio needs sysmon_wdog. 2018-01-02 00:25:35 +00:00
jnemeth 6e0fe2c664 PR/52885 - Shinichi Doyashiki -- typo in comment 2018-01-01 08:33:28 +00:00
christos 43e3a4888e fixes from Brad Spenser 2017-12-30 03:18:26 +00:00
christos aa56d549ad add RCSID's 2017-12-29 02:20:47 +00:00
christos b15dc8743d Fix modules build. 2017-12-29 02:19:45 +00:00
christos ee4352f2da PR/52848: Brad Spencer: Two environment sensor drivers: AM2315 and SI70xx
XXX: Please check that my refactoring did not break them!
2017-12-28 23:23:47 +00:00
maxv 2889ab3cc1 Style, export struct acpisrat_node, and add acpisrat_get_node. 2017-12-28 08:49:28 +00:00
msaitoh 9c3646449e Don't use MSI-X if we can use only one queue to save interrupt resource.
Written by knakahara and tested by me.
2017-12-28 06:13:50 +00:00
msaitoh 2475e37a6e Fallback from MSI-X to MSI or INTx if MSI-X setup failed. 2017-12-28 06:10:01 +00:00
msaitoh 60b9e9d968 - Fix panic in xhci_pci_detach() if xhci_pci_attach() failed.
- Fallback from MSI to INTx correctly.
2017-12-28 05:43:42 +00:00
christos d46374d8f4 PR/52868: Petar Bogdanovic: Add support for Manhattan 158220 card 2017-12-27 20:27:02 +00:00
nat 6f00cf71ad mulaw/alaw_to_linearN macros replaced with individual faster filters.
NFC.
2017-12-27 00:12:06 +00:00
khorben 8fba197a62 Fix typo in a comment 2017-12-26 18:44:52 +00:00
msaitoh ee5189c301 - Fix a panic while cleaning PCI interrupt.
- Fallback to INTx if MSI allocation succeeded but the establish failed.
2017-12-25 08:39:38 +00:00
jmcneill c971c5fba1 Add a no-rx-delay device property for RGE8211E that disables RX internal
delay using some undocumented registers. Required for stable gigabit links
on Pine64+.
2017-12-23 12:49:54 +00:00
jakllsch 4e48b9131a missing comma 🙄 2017-12-22 14:41:55 +00:00
jakllsch cec2d2110e Add RT Systems RTS-03 2017-12-22 14:18:29 +00:00
jakllsch 2a19607f25 Add West Mountain Radio RIGblaster. From OpenBSD uslcom(4). 2017-12-22 14:13:55 +00:00
jakllsch f3e100f345 regen 2017-12-22 14:06:40 +00:00
jakllsch a9fd4f0c6b Add West Mountain Radio IDs from OpenBSD 2017-12-22 14:03:39 +00:00
jakllsch 4d49ac27a5 Add RT Systems RTS-03 USB to Serial Adapter 2017-12-22 13:59:32 +00:00
tsutsui db12eb1bdb Update a URL of Am53c974A technical manual. 2017-12-22 13:58:11 +00:00
macallan bc471ab0c1 overhaul the dbri driver and make it work again in the New Order Of Things
- fix switching between control and data mode
- make sure interrupts can happen in control mode
- implement audioif.commit_settings()
- switch to control mode only if needed - for changes in sample rate or format
  but not for things like volume control
should fix PR 52786
2017-12-21 21:56:29 +00:00
hannken a59aeb0cc1 Pass residual back to b_resid for persistent snapshots. 2017-12-21 15:51:39 +00:00
hannken daec163d65 Bounds check against media size for non-persistent snapshots. 2017-12-21 15:51:07 +00:00
hannken 2449af78f2 Treat partial read from backing store as I/O error. 2017-12-21 15:50:33 +00:00
martin 77d8e0d59e Don't KASSERT that we are MPSAFE if ! DWCGMAC_MPSAFE 2017-12-21 12:09:43 +00:00
msaitoh 29438a0e19 - If MSI can't be used on some environment, fallback to INTx correctly.
- Use single vector MSI when number of CPU is 1 to save interrupt slot.
2017-12-21 09:24:45 +00:00
msaitoh 9305b98e86 Fix panic when only link interrupt can't be established. 2017-12-21 06:49:26 +00:00