Skip to content

Fix headphone power and PLL prescale registers #6

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

Merged
merged 1 commit into from
Mar 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adafruit_wm8960/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -1728,13 +1728,13 @@ def mono_mix(self, value: bool) -> None:

## Headphones

left_headphone: bool = WOBit(_REG_PWR_MGMT_2, 5)
left_headphone: bool = WOBit(_REG_PWR_MGMT_2, 6)
"""Whether or not the left channel of the headphone amplifier is powered on.

:default: `False`
"""

right_headphone: bool = WOBit(_REG_PWR_MGMT_2, 6)
right_headphone: bool = WOBit(_REG_PWR_MGMT_2, 5)
"""Whether or not the right channel of the headphone amplifier is powered on.

:default: `False`
Expand Down Expand Up @@ -2063,7 +2063,7 @@ def speaker_ac_gain(self, value: float) -> None:
:default: `False`
"""

pll_prescale_div2: bool = WOBit(_REG_PWR_MGMT_2, 4)
pll_prescale_div2: bool = WOBit(_REG_PLL_N, 4)
"""Divide MCLK by 2 before input to PLL.

:default: `False`
Expand Down