-
-
Notifications
You must be signed in to change notification settings - Fork 37.8k
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
[Audio] Add support for audio shutdown pin #22731
Conversation
Co-authored-by: Ryan <fauxpark@gmail.com>
d309577
to
619c141
Compare
98a32cb
to
faed692
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, arent things generally modelled as an enable pin?
Wasn't sure about the naming, but yeah, enable pin is more accurate for the functionality. |
data/schemas/keyboard.jsonschema
Outdated
@@ -133,6 +133,14 @@ | |||
}, | |||
"macro_beep": {"type": "boolean"}, | |||
"pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"}, | |||
"enable_pin": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really happy with the name, but audio.enable just doesn't seem right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
power_control
perhaps?
audio.power_control.pin
, audio.power_control.on_state
, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's a much better name. Updated names.
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Description
Add support to core code for controlling shutdown pin for the audio driver. This is useful when using an amp like the PAM8302 2.5W class D amp from adafruit.
Types of Changes
Checklist