summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Chicoine <mc2739@gmail.com>2010-10-27 21:30:04 +0000
committerMichael Chicoine <mc2739@gmail.com>2010-10-27 21:30:04 +0000
commit63da8c68751bbd9cac85e9f7abcf4e705d88af67 (patch)
tree02944ad6ae8caec7147d8bfcade0a58847d6ebcb /firmware
parent2eeb29bc04941cf34eab18efa233de0ea5c4c230 (diff)
downloadrockbox-63da8c68751bbd9cac85e9f7abcf4e705d88af67.tar.gz
rockbox-63da8c68751bbd9cac85e9f7abcf4e705d88af67.tar.bz2
rockbox-63da8c68751bbd9cac85e9f7abcf4e705d88af67.zip
Enable line out on c200v1 - part of FS#11367 by me - Thanks to Nate for testing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28368 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/audio/as3514.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
index 9b1359df3d..1774932c51 100644
--- a/firmware/drivers/audio/as3514.c
+++ b/firmware/drivers/audio/as3514.c
@@ -164,7 +164,7 @@ void audiohw_preinit(void)
#else
/* as3514/as3515 */
-#if defined(SANSA_E200V2) || defined(SANSA_FUZE)
+#if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200)
/* Set ADC off, mixer on, DAC on, line out on, line in off, mic off */
/* Turn on SUM, DAC */
as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_LOUT_on |
@@ -173,7 +173,7 @@ void audiohw_preinit(void)
/* Set ADC off, mixer on, DAC on, line out off, line in off, mic off */
/* Turn on SUM, DAC */
as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_SUM_on);
-#endif /* SANSA_E200V2 || SANSA_FUZE */
+#endif /* SANSA_E200V2 || SANSA_FUZE || SANSA_C200 */
/* Set BIAS on, DITH off, AGC off, IBR_DAC max reduction, LSP_LP on,
IBR_LSP max reduction (50%), taken from c200v2 OF
@@ -222,7 +222,7 @@ void audiohw_preinit(void)
/* Headphone ON, MUTE, Min volume */
as3514_write(AS3514_HPH_OUT_L, HPH_OUT_L_HP_ON | HPH_OUT_L_HP_MUTE | 0x00);
-#if defined(SANSA_E200V2) || defined(SANSA_FUZE)
+#if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200)
/* Line Out Stereo, MUTE, Min volume */
as3514_write(AS3514_LINE_OUT_L, LINE_OUT_L_LO_SES_DM_SE_ST |
LINE_OUT_L_LO_SES_DM_MUTE | 0x00);
@@ -236,14 +236,14 @@ static void audiohw_mute(bool mute)
{
if (mute) {
as3514_set(AS3514_HPH_OUT_L, HPH_OUT_L_HP_MUTE);
-#if defined(SANSA_E200V2) || defined(SANSA_FUZE)
+#if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200)
as3514_set(AS3514_LINE_OUT_L, LINE_OUT_L_LO_SES_DM_MUTE);
-#endif /* SANSA_E200V2 || SANSA_FUZE */
+#endif /* SANSA_E200V2 || SANSA_FUZE || SANSA_C200 */
} else {
as3514_clear(AS3514_HPH_OUT_L, HPH_OUT_L_HP_MUTE);
-#if defined(SANSA_E200V2) || defined(SANSA_FUZE)
+#if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200)
as3514_clear(AS3514_LINE_OUT_L, LINE_OUT_L_LO_SES_DM_MUTE);
-#endif /* SANSA_E200V2 || SANSA_FUZE */
+#endif /* SANSA_E200V2 || SANSA_FUZE || SANSA_C200 */
}
}
@@ -256,11 +256,11 @@ void audiohw_postinit(void)
ascodec_suppressor_on(false);
#endif
-#if defined(SANSA_E200V2) || defined(SANSA_FUZE)
+#if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200)
/* Set line out volume to 0dB */
as3514_write_masked(AS3514_LINE_OUT_R, 0x1b, AS3514_VOL_MASK);
as3514_write_masked(AS3514_LINE_OUT_L, 0x1b, AS3514_VOL_MASK);
-#endif /* SANSA_E200V2 || SANSA_FUZE */
+#endif /* SANSA_E200V2 || SANSA_FUZE || SANSA_C200 */
audiohw_mute(false);
}