Skip to content

Commit e1ff5e3

Browse files
authored
Merge pull request #6 from relic-se/headphone_power_channel_swap
Fix headphone power and PLL prescale registers
2 parents 1471f44 + 0e727f9 commit e1ff5e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_wm8960/advanced.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,13 +1728,13 @@ def mono_mix(self, value: bool) -> None:
17281728

17291729
## Headphones
17301730

1731-
left_headphone: bool = WOBit(_REG_PWR_MGMT_2, 5)
1731+
left_headphone: bool = WOBit(_REG_PWR_MGMT_2, 6)
17321732
"""Whether or not the left channel of the headphone amplifier is powered on.
17331733
17341734
:default: `False`
17351735
"""
17361736

1737-
right_headphone: bool = WOBit(_REG_PWR_MGMT_2, 6)
1737+
right_headphone: bool = WOBit(_REG_PWR_MGMT_2, 5)
17381738
"""Whether or not the right channel of the headphone amplifier is powered on.
17391739
17401740
:default: `False`
@@ -2063,7 +2063,7 @@ def speaker_ac_gain(self, value: float) -> None:
20632063
:default: `False`
20642064
"""
20652065

2066-
pll_prescale_div2: bool = WOBit(_REG_PWR_MGMT_2, 4)
2066+
pll_prescale_div2: bool = WOBit(_REG_PLL_N, 4)
20672067
"""Divide MCLK by 2 before input to PLL.
20682068
20692069
:default: `False`

0 commit comments

Comments
 (0)