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

[Audio] Add support for audio shutdown pin #22731

Merged
merged 22 commits into from
Mar 6, 2024

Conversation

drashna
Copy link
Member

@drashna drashna commented Dec 21, 2023

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

  • Core
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@drashna drashna requested a review from a team December 21, 2023 06:46
docs/feature_audio.md Outdated Show resolved Hide resolved
Co-authored-by: Ryan <fauxpark@gmail.com>
@drashna drashna requested review from fauxpark and a team December 21, 2023 17:30
Copy link
Member

@zvecr zvecr left a 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?

quantum/audio/audio.c Outdated Show resolved Hide resolved
@drashna
Copy link
Member Author

drashna commented Jan 9, 2024

Also, aren't things generally modelled as an enable pin?

Wasn't sure about the naming, but yeah, enable pin is more accurate for the functionality.

@@ -133,6 +133,14 @@
},
"macro_beep": {"type": "boolean"},
"pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"},
"enable_pin": {
Copy link
Member Author

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.

Copy link
Member

@tzarc tzarc Mar 5, 2024

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.

Copy link
Member Author

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.

@tzarc tzarc added breaking_change_2024q2 develop-fast-track Intended to be merged early in the next develop cycle. and removed breaking_change_2024q1 labels Feb 25, 2024
@tzarc tzarc merged commit 83e6ddb into qmk:develop Mar 6, 2024
4 of 5 checks passed
@drashna drashna deleted the audio/shutdown_pin branch March 6, 2024 11:37
mechlovin pushed a commit to mechlovin/qmk_firmware that referenced this pull request Apr 4, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
mechlovin pushed a commit to mechlovin/qmk_firmware that referenced this pull request Apr 4, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
mechlovin pushed a commit to mechlovin/qmk_firmware that referenced this pull request Apr 15, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
0x647262 pushed a commit to 0x647262/qmk_firmware that referenced this pull request Apr 26, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
PepperLola pushed a commit to PepperLola/qmk_firmware that referenced this pull request May 29, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
whoisjordangarcia pushed a commit to whoisjordangarcia/qmk_firmware that referenced this pull request Jun 8, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
nuphy-src pushed a commit to nuphy-src/qmk_firmware that referenced this pull request Jul 2, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
AJO-Python pushed a commit to AJO-Python/qmk_firmware that referenced this pull request Jul 7, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
jrtex pushed a commit to jrtex/qmk_firmware that referenced this pull request Jul 13, 2024
Co-authored-by: Ryan <fauxpark@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core dd Data Driven Changes develop-fast-track Intended to be merged early in the next develop cycle. documentation keyboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants