Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microphones via AOP (+ a few SEP bits). #342

Draft
wants to merge 19 commits into
base: asahi-wip
Choose a base branch
from

Conversation

WhatAmISupposedToPutHere
Copy link

@WhatAmISupposedToPutHere WhatAmISupposedToPutHere commented Nov 9, 2024

This adds the AOP driver, microphone support, lid angle sensor driver, and ambient light sensor driver (disabled pending some m1n1 work). Also contains just enough of a SEP driver to unlock SECDIS on base m1.

Obsoletes #151

Draft, since the mic output is basically useless without correct userspace configs (coming soontm).

@WhatAmISupposedToPutHere WhatAmISupposedToPutHere changed the title Microphones via AOP. Microphones via AOP (+ a few SEP bits). Nov 10, 2024
The ADMAC attached to the AOP has complex power sequencing, and is
power gated when the probe callback runs. Move the register reads
to other functions, where we can guarantee that the hardware is
switched on.

Signed-off-by: Sasha Finkelstein <[email protected]>
To be used by RTKit consumers to check if an endpoint
is present and should be enabled.

Signed-off-by: Sasha Finkelstein <[email protected]>
This system endpoint is advertised by AOP and also needs to be
turned on for it to function.

Signed-off-by: Sasha Finkelstein <[email protected]>
Signed-off-by: Sasha Finkelstein <[email protected]>
Similar in function to the one from std, but takes GFP flags.

Signed-off-by: Sasha Finkelstein <[email protected]>
Just a wrapper over dev->parent.

Signed-off-by: Sasha Finkelstein <[email protected]>
This is the base device for a multi-function co-processor present
on certain Apple SoCs. On M-series Macs it is in charge of internal
microphones, and various environmental sensors.

Signed-off-by: Sasha Finkelstein <[email protected]>
Apple SoCs have their microphones connected to the AOP
co-processor, in order to among other things implement
the "voicetrigger" functionality. Add a driver for the
"High power audio input" AOP endpoint.

Signed-off-by: Sasha Finkelstein <[email protected]>
The AOP co-processor present on certain Apple SoCs exposes
various environmental sensors as "HID" (really not) devices.
Add drivers for the ambient light and lid angle sensors
exposed that way.

Signed-off-by: Sasha Finkelstein <[email protected]>
This is a co-processor in charge of various security-related
features on Apple SoCs. This driver only boots the firmware,
which is needed to unlock the mic secure disable on certain
laptop models.

Signed-off-by: Sasha Finkelstein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants