diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-08 01:43:16 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-08 01:43:16 +0000 |
commit | 85528242844b71ac45e5331363a48a2956c38275 (patch) | |
tree | 10d8af9068c4f12b2f8f673f3a835bb3211c2f0e /firmware/drivers/audio/as3514.c | |
parent | 2737a66471a640d83aba07578bd67b811a340034 (diff) | |
download | rockbox-85528242844b71ac45e5331363a48a2956c38275.tar.gz rockbox-85528242844b71ac45e5331363a48a2956c38275.zip |
ascodec-target.h: remove
move prototypes to ascodec.h
move code to ascodec*.c
YPR0: use adc-as3514.c instead of duplicating it
TODO: merge as3514.h and ascodec.h ?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/as3514.c')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index f07ee80d3c..22609621df 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c | |||
@@ -252,8 +252,9 @@ void audiohw_postinit(void) | |||
252 | /* wait until outputs have stabilized */ | 252 | /* wait until outputs have stabilized */ |
253 | sleep(HZ/4); | 253 | sleep(HZ/4); |
254 | 254 | ||
255 | #ifdef CPU_PP | 255 | #ifdef SANSA_E200 /* check C200 */ |
256 | ascodec_suppressor_on(false); | 256 | /* Release pop prevention */ |
257 | GPIO_CLEAR_BITWISE(GPIOG_OUTPUT_VAL, 0x08); | ||
257 | #endif | 258 | #endif |
258 | 259 | ||
259 | #if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200) | 260 | #if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200) |
@@ -334,8 +335,9 @@ void audiohw_close(void) | |||
334 | /* mute headphones */ | 335 | /* mute headphones */ |
335 | audiohw_mute(true); | 336 | audiohw_mute(true); |
336 | 337 | ||
337 | #ifdef CPU_PP | 338 | #ifdef SANSA_E200 /* check C200 */ |
338 | ascodec_suppressor_on(true); | 339 | /* Set pop prevention */ |
340 | GPIO_SET_BITWISE(GPIOG_OUTPUT_VAL, 0x08); | ||
339 | #endif | 341 | #endif |
340 | 342 | ||
341 | /* turn on common */ | 343 | /* turn on common */ |