summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-07 20:58:43 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-07 20:58:43 +0000
commit7831a23376d2316b09e74d9da3c8ab52deaa0024 (patch)
tree9f8102089a14306067d7053e471573dd1d3127c3 /firmware/export
parent7a994c1e7d5ca431a46b80c98ae9413799c57c55 (diff)
downloadrockbox-7831a23376d2316b09e74d9da3c8ab52deaa0024.tar.gz
rockbox-7831a23376d2316b09e74d9da3c8ab52deaa0024.zip
as3525v2: make sure volume is normal by writing Audioset2 register
If the bit 6 is set volume is much lower, without writing it explicitely it is undefined. According to linux sources this bit is related to mixer. Initialize Audioset2 with low power 'hph' (probably headphones) quality, as I couldn't make a difference with 'high quality' setting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25890 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/as3514.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h
index fac43c7b90..60f0e4c6d2 100644
--- a/firmware/export/as3514.h
+++ b/firmware/export/as3514.h
@@ -245,6 +245,10 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
245 AUDIOSET1_LIN1_on | AUDIOSET1_LIN2_on 245 AUDIOSET1_LIN1_on | AUDIOSET1_LIN2_on
246 246
247/* AUDIOSET2 (15h) */ 247/* AUDIOSET2 (15h) */
248#ifdef HAVE_AS3543
249#define AUDIOSET2_HPH_QUALITY_LOW_POWER (0x0 << 4)
250#define AUDIOSET2_HPH_QUALITY_HIGH (0x1 << 4)
251#else
248#define AUDIOSET2_BIAS_off (0x1 << 7) 252#define AUDIOSET2_BIAS_off (0x1 << 7)
249#define AUDIOSET2_DITH_off (0x1 << 6) 253#define AUDIOSET2_DITH_off (0x1 << 6)
250#define AUDIOSET2_AGC_off (0x1 << 5) 254#define AUDIOSET2_AGC_off (0x1 << 5)
@@ -259,6 +263,7 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
259 #define AUDIOSET2_IBR_LSP_17 (0x1 << 0) 263 #define AUDIOSET2_IBR_LSP_17 (0x1 << 0)
260 #define AUDIOSET2_IBR_LSP_34 (0x2 << 0) 264 #define AUDIOSET2_IBR_LSP_34 (0x2 << 0)
261 #define AUDIOSET2_IBR_LSP_50 (0x3 << 0) 265 #define AUDIOSET2_IBR_LSP_50 (0x3 << 0)
266#endif
262 267
263/* AUDIOSET3 (16h) */ 268/* AUDIOSET3 (16h) */
264#define AUDIOSET3_ZCU_off (0x1 << 2) 269#define AUDIOSET3_ZCU_off (0x1 << 2)