Audio icon indicating copy to clipboard operation
Audio copied to clipboard

sgtl5000: headphoneSelect correct bits

Open elgiano opened this issue 1 year ago • 0 comments

Fixes headphoneSelect: we are currently writing 1 to select DAC and 0 to select LINEIN. However, SGTL5000 datasheet (page 39) says the opposite:

Select the headphone input.
0x0 = DAC
0x1 = LINEIN

And in fact I observe the wrong behavior: I get LINEIN out when calling headphoneSelect(AUDIO_HEADPHONES_DAC), and DAC out when calling heaphoneSelect(AUDIO_HEADPHONES_LINEIN). This PR fixes it.

elgiano avatar Dec 12 '23 16:12 elgiano