diff options
author | Dana Conrad <dconrad@fastmail.com> | 2023-01-22 12:33:15 -0600 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-22 15:11:35 -0500 |
commit | 66519000f47cfb5c58be68ab2335b7cbc0bce35b (patch) | |
tree | 92701a200a68da3afd6336a3954fe02c840ae82d /firmware/target/mips/ingenic_x1000/erosqnative/gpio-target.h | |
parent | c307d98e3fbe5e867cd6e6e3c61f4937021c6b4c (diff) | |
download | rockbox-66519000f47cfb5c58be68ab2335b7cbc0bce35b.tar.gz rockbox-66519000f47cfb5c58be68ab2335b7cbc0bce35b.zip |
ErosQNative: Enable Line Out capabilities on new revision players
The newer players have some changed hardware, but most importantly
the line out now appears to be routed through the stereo switch
instead of being hardwired directly off the DAC.
Disable muting the headphone amp, enable switching the stereo switch,
and rename some of the GPIOs to be more generic since the DAC,
headphone amp, and stereo switch all appear to have changed.
Change-Id: I220fe5e37bcbcd959b544183e1fcf70673a83c13
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/erosqnative/gpio-target.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/erosqnative/gpio-target.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/gpio-target.h b/firmware/target/mips/ingenic_x1000/erosqnative/gpio-target.h index 376eae136e..3318a39786 100644 --- a/firmware/target/mips/ingenic_x1000/erosqnative/gpio-target.h +++ b/firmware/target/mips/ingenic_x1000/erosqnative/gpio-target.h | |||
@@ -24,26 +24,26 @@ DEFINE_PINGROUP(I2S, GPIO_B, 0x1f << 0, GPIOF_DEVICE(1)) | |||
24 | DEFINE_PINGROUP(I2C2, GPIO_D, 3 << 0, GPIOF_DEVICE(1)) | 24 | DEFINE_PINGROUP(I2C2, GPIO_D, 3 << 0, GPIOF_DEVICE(1)) |
25 | 25 | ||
26 | /* Name Pin Function */ | 26 | /* Name Pin Function */ |
27 | /* mute DAC - 0 - mute, 1 - play. Affects both HP and LO. */ | 27 | /* mute DAC: 0 - mute, 1 - play */ |
28 | DEFINE_GPIO(PCM5102A_XMIT, GPIO_PB(12), GPIOF_OUTPUT(0)) | 28 | DEFINE_GPIO(DAC_XMIT, GPIO_PB(12), GPIOF_OUTPUT(0)) |
29 | 29 | ||
30 | /* mute HP amp, no effect on LO. 0 - mute, 1 - play */ | 30 | /* mute HP amp: 0 - mute, 1 - play */ |
31 | DEFINE_GPIO(MAX97220_SHDN, GPIO_PB(8), GPIOF_OUTPUT(0)) | 31 | DEFINE_GPIO(HPAMP_SHDN, GPIO_PB(8), GPIOF_OUTPUT(0)) |
32 | 32 | ||
33 | /* mute audio mux, only affects Headphone out. | 33 | /* mute audio mux: 0 - play, 1 - mute */ |
34 | * 0 - play, 1 - mute */ | 34 | DEFINE_GPIO(STEREOSW_MUTE, GPIO_PB(15), GPIOF_OUTPUT(1)) |
35 | DEFINE_GPIO(ISL54405_MUTE, GPIO_PB(15), GPIOF_OUTPUT(1)) | ||
36 | 35 | ||
37 | /* switches HP on/off - 0 HP on, 1 hp off, has no effect on LO. | 36 | /* |
38 | * As best I can tell, it switches HP Out sources between HP amp and something | 37 | * Original devices: switches HP on/off - 0 HP on, 1 HP off, no effect on LO. |
39 | * not implemented - there seem to be resistors missing. */ | 38 | * Newer devices: switches between HP and LO - 0 HP, 1 LO. |
40 | DEFINE_GPIO(ISL54405_SEL, GPIO_PB(5), GPIOF_OUTPUT(0)) | 39 | */ |
40 | DEFINE_GPIO(STEREOSW_SEL, GPIO_PB(5), GPIOF_OUTPUT(0)) | ||
41 | 41 | ||
42 | /* DAC AVDD */ | 42 | /* DAC AVDD */ |
43 | DEFINE_GPIO(PCM5102A_ANALOG_PWR, GPIO_PB(9), GPIOF_OUTPUT(0)) | 43 | DEFINE_GPIO(DAC_ANALOG_PWR, GPIO_PB(9), GPIOF_OUTPUT(0)) |
44 | 44 | ||
45 | /* Headphone Amp power */ | 45 | /* Headphone Amp power */ |
46 | DEFINE_GPIO(MAX97220_POWER, GPIO_PB(6), GPIOF_OUTPUT(0)) | 46 | DEFINE_GPIO(HPAMP_POWER, GPIO_PB(6), GPIOF_OUTPUT(0)) |
47 | 47 | ||
48 | /* SD card */ | 48 | /* SD card */ |
49 | DEFINE_GPIO(MSC0_CD, GPIO_PB(11), GPIOF_INPUT) | 49 | DEFINE_GPIO(MSC0_CD, GPIO_PB(11), GPIOF_INPUT) |