diff --git a/control_sgtl5000.h b/control_sgtl5000.h index a6a355b4..9998d8f4 100644 --- a/control_sgtl5000.h +++ b/control_sgtl5000.h @@ -62,9 +62,9 @@ class AudioControlSGTL5000 : public AudioControl } bool headphoneSelect(int n) { if (n == AUDIO_HEADPHONE_DAC) { - return write(0x0024, ana_ctrl | (1<<6)); // route DAC to headphones out - } else if (n == AUDIO_HEADPHONE_LINEIN) { return write(0x0024, ana_ctrl & ~(1<<6)); // route linein to headphones out + } else if (n == AUDIO_HEADPHONE_LINEIN) { + return write(0x0024, ana_ctrl | (1<<6)); // route DAC to headphones out } else { return false; }