From 85528242844b71ac45e5331363a48a2956c38275 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 8 Jan 2012 01:43:16 +0000 Subject: 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 --- firmware/drivers/audio/as3514.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'firmware/drivers/audio/as3514.c') 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) /* wait until outputs have stabilized */ sleep(HZ/4); -#ifdef CPU_PP - ascodec_suppressor_on(false); +#ifdef SANSA_E200 /* check C200 */ + /* Release pop prevention */ + GPIO_CLEAR_BITWISE(GPIOG_OUTPUT_VAL, 0x08); #endif #if defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200) @@ -334,8 +335,9 @@ void audiohw_close(void) /* mute headphones */ audiohw_mute(true); -#ifdef CPU_PP - ascodec_suppressor_on(true); +#ifdef SANSA_E200 /* check C200 */ + /* Set pop prevention */ + GPIO_SET_BITWISE(GPIOG_OUTPUT_VAL, 0x08); #endif /* turn on common */ -- cgit v1.2.3