summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-09 09:22:22 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-09 13:24:14 +0000
commit65a91333efb55e3db7b275eb28f0d93d00ffe273 (patch)
tree107a18cf74754773ffc83b8347249a1c3affb4c7
parent5d8a1a305d3e80cf57f38d4206f2efc801e14d73 (diff)
downloadrockbox-65a91333efb55e3db7b275eb28f0d93d00ffe273.tar.gz
rockbox-65a91333efb55e3db7b275eb28f0d93d00ffe273.zip
FS#12082: Add Tuner support to the Nano2G (Bertrik Sikken)
(The serial portions of the patch were already present, this just pulls in the tuner enablements) Change-Id: I8090e318f34835769ac0a56d7a48b9250631eb4f
-rw-r--r--firmware/export/config/ipodnano2g.h8
-rw-r--r--firmware/target/arm/s5l8700/adc-target.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/firmware/export/config/ipodnano2g.h b/firmware/export/config/ipodnano2g.h
index 9d8c39ef7e..0693cedc14 100644
--- a/firmware/export/config/ipodnano2g.h
+++ b/firmware/export/config/ipodnano2g.h
@@ -14,7 +14,7 @@
/* Define bitmask of input sources - recordable bitmask can be defined
explicitly if different */
-#define INPUT_SRC_CAPS (SRC_CAP_LINEIN)
+#define INPUT_SRC_CAPS (SRC_CAP_LINEIN|SRC_CAP_FMRADIO)
/* define the bitmask of hardware sample rates */
#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
@@ -162,9 +162,9 @@
//#define HAVE_LCD_CONTRAST
/* Define Apple remote tuner */
-//#define CONFIG_TUNER IPOD_REMOTE_TUNER
-//#define HAVE_RDS_CAP
-//#define CONFIG_RDS RDS_CFG_PUSH
+#define CONFIG_TUNER IPOD_REMOTE_TUNER
+#define HAVE_RDS_CAP
+#define CONFIG_RDS RDS_CFG_PUSH
/* The exact type of CPU */
#define CONFIG_CPU S5L8701
diff --git a/firmware/target/arm/s5l8700/adc-target.h b/firmware/target/arm/s5l8700/adc-target.h
index b54d1bf4cc..0fb8bf52de 100644
--- a/firmware/target/arm/s5l8700/adc-target.h
+++ b/firmware/target/arm/s5l8700/adc-target.h
@@ -26,7 +26,7 @@
#define ADC_UNKNOWN_0 0
#define ADC_UNKNOWN_1 1
#define ADC_BATTERY 2
-#define ADC_UNKNOWN_3 3
+#define ADC_ACCESSORY 3 /* Complete Guess */
#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */