Age | Commit message (Collapse) | Author |
|
ok tedu
|
|
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
|
|
integrated in the Vortex86EX SoC. Based on a diff by sasano@.
ok tedu@
|
|
Fixes audio problems on an Acer Aspire E1 572G
reported by Mark Rowland.
|
|
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people
|
|
|
|
cleaning up some shutdown-hook related code on the way.
(A few drivers related to sparc are still skipped at kettenis' request)
ok kettenis mlarkin, tested by many others too
|
|
with the IPL_MPSAFE flag. In certain circumstances, this prevents
interrupt handlers from waiting the global kernel_lock possibly (hold
by slower code) to be released.
ok kettenis
|
|
structures (including sound-card registers) from concurent
access by syscall and interrupt code-paths. Since critical
sections remain the same, calls to splraise/spllower can be
safely replaced by calls to mtx_enter/mtx_leave with two
exceptions: (1) mutexes are not reentrant (the inner splraise
is thus removed), and (2) we're not allowed to sleep with a
mutex (either msleep is used or the mutex is released before
sleeping).
ok and help from kettenis, a lot of work from armani
|
|
modern brand new construct known as `switch'.
|
|
D3 state, so the attach funciton must do this.
ok kettenis
|
|
Tested by naddy@.
|
|
Cantero Hurtado <iam at juanfra.info>, thanks!
|
|
x220. Suggested before by jakemsr.
ok deraadt@, ratchov@
|
|
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.
ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago
|
|
"i think more pci_intr_map_msi should go in"
|
|
don't run it upon resume. We now save and restore the MSI registers in the
generic PCI code, so it is no longer necessary and will hurt us when we
actually start using MSI.
ok jakemsr@
|
|
* deal with the possibility of the hardware being detached, as could
happen with expresscard. from deraadt@
* only return 1 if an interrupt was actually serviced. fixes "constant
interrupts when the device isn't being used" issue reported by oga@.
|
|
detach happens after the hardware is gone, so don't try to touch
the hardware in the detach path
but azalia_pci_detach is called if the device coiuld not be initialized.
in that case, shut the hardware down.
|
|
by claudio to be related to this commit) until jakemsr has time to fix it
|
|
the hardware in the detach path
|
|
azalia_configure_pci(). use that function in azalia_attach() and
azalia_resume(). fixes post-resume "static" during playback for
some machines with ATI chipsets.
|
|
valid connection and a valid converter. fixes speaker auto-mute
for some IDT codecs.
ok miod@
|
|
number of widget connection list entries. if the high bit is set in
a connection list entry, all widgets between the previous and current
entry are connected. go through the connection list entry once to
figure out how many connections there are, then go through it again
to build the connection list.
ok miod@
|
|
|
|
|
|
|
|
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations
to get ready.
Discussed quite a while back with kettenis and jakemsr, oga suddenly needed
it as well and wrote half of it, so it was time to finish it.
proofread by miod.
|
|
|
|
silencing requested by deraadt
|
|
trigger a broken code path
|
|
|
|
tested by deraadt
|
|
rev 1.172. restore it so headphone/speaker switching can work
after resume.
ok deraadt
|
|
ok deraadt
|
|
means they lose their quirk fixups. check for widget quirks and
apply as necessary.
ok deraadt
|
|
than one block of data since the interrupt handler was last run.
when azalia detects these situations, it will print a line to the
dmesg buffer like:
stream 1: swpos XXXX hwpos XXXX, adding intr
getting these messages in itself is not bad, but if audio breaks, I
need to see these messages. this will be changed to a DPRINTF once
I get more feedback.
ok deraadt
|
|
if so, don't do anything on suspend/resume. should fix crash reported
by mlarkin.
|
|
for both structs, the new members are 'bps' and 'msb', which
describe the number of bytes per sample and data alignment in the
sample, respectively. drivers must properly set these fields in
the 'query_encoding', 'set_parameters' and 'get_default_params'
hardware interface methods.
discussed with ratchov, deraadt
|
|
is currently breaking resume.
ok pirofti
|
|
index
- we only care about unsolicited responses from the codec we're using
- no need to enable unsolicited responses until we know which codec
we're using
fixes crash reported by jacekm@
|
|
with codecs like the ALC269 that have pins that need to be configured but
don't have an associated mixer item.
ok jakemsr@
|
|
somewhere meaningful later on. Save the PCI device tag instead and use it
instead.
ok miod@, jakemsr@
|
|
|
|
macbooks that have a "normal" pair of stereo speakers as well
as subwoofer(s). problem reported and fix tested by Ted Roby.
|
|
ok kettenis@
|
|
instead, install a timeout(9) to run the queue. fixes a panic
reported by wilfried@
|