diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 4 | ||||
-rw-r--r-- | firmware/export/as3514.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index f9e5fd333f..64fa7ac13c 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c | |||
@@ -173,7 +173,9 @@ void audiohw_preinit(void) | |||
173 | /* Turn on SUM, DAC */ | 173 | /* Turn on SUM, DAC */ |
174 | as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_SUM_on); | 174 | as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_SUM_on); |
175 | 175 | ||
176 | #ifndef HAVE_AS3543 | 176 | #ifdef HAVE_AS3543 |
177 | as3514_write(AS3514_AUDIOSET2, AUDIOSET2_HPH_QUALITY_LOW_POWER); | ||
178 | #else | ||
177 | /* Set BIAS on, DITH off, AGC off, IBR_DAC max reduction, LSP_LP on, | 179 | /* Set BIAS on, DITH off, AGC off, IBR_DAC max reduction, LSP_LP on, |
178 | IBR_LSP max reduction (50%), taken from c200v2 OF | 180 | IBR_LSP max reduction (50%), taken from c200v2 OF |
179 | */ | 181 | */ |
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) |