From e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4 Mon Sep 17 00:00:00 2001 From: Tomasz Moń Date: Wed, 16 Nov 2011 14:08:01 +0000 Subject: Sandisk Sansa Connect port (FS #12363) Included are drivers for buttons, backlight, lcd, audio and storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/aic3x.h | 77 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 firmware/export/aic3x.h (limited to 'firmware/export/aic3x.h') diff --git a/firmware/export/aic3x.h b/firmware/export/aic3x.h new file mode 100644 index 0000000000..17e5ea019a --- /dev/null +++ b/firmware/export/aic3x.h @@ -0,0 +1,77 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id: $ + * + * Copyright (C) 2011 by Tomasz Moń + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#ifndef _AIC3X_H_ +#define _AIC3X_H_ + +#define VOLUME_MIN -630 +#define VOLUME_MAX 0 + +extern int tenthdb2master(int db); + +/*** definitions ***/ +extern void audiohw_set_headphone_vol(int vol_l, int vol_r); + +/* Page 0 registers */ +#define AIC3X_PAGE_SELECT 0 +#define AIC3X_SOFT_RESET 1 +#define AIC3X_SMPL_RATE 2 +#define AIC3X_PLL_REG_A 3 +#define AIC3X_PLL_REG_B 4 +#define AIC3X_PLL_REG_C 5 +#define AIC3X_PLL_REG_D 6 +#define AIC3X_DATAPATH 7 +#define AIC3X_DATA_REG_A 8 +#define AIC3X_DATA_REG_B 9 +#define AIC3X_DATA_REG_C 10 + +#define AIC3X_DAC_POWER 37 +#define AIC3X_HIGH_POWER 38 + +#define AIC3X_POP_REDUCT 42 +#define AIC3X_LEFT_VOL 43 +#define AIC3X_RIGHT_VOL 44 + +#define AIC3X_DAC_L1_VOL 47 +#define AIC3X_HPLOUT_LVL 51 + +#define AIC3X_HPLCOM_LVL 58 + +#define AIC3X_DAC_R1_VOL 64 +#define AIC3X_HPROUT_LVL 65 + +#define AIC3X_DAC_L1_MONO_LOP_M_VOL 75 + +#define AIC3X_DAC_R1_MONO_LOP_M_VOL 76 + +#define AIC3X_MONO_LOP_M_LVL 79 + +#define AIC3X_DAC_L1_LEFT_LOP_M_VOL 82 + +#define AIC3X_LEFT_LOP_M_LVL 86 + +#define AIC3X_DAC_R1_RIGHT_LOP_M_VOL 92 +#define AIC3X_RIGHT_LOP_M_LVL 93 +#define AIC3X_MOD_POWER 94 + +#define AIC3X_GPIO1_CTRL 98 + +#endif /*_AIC3X_H_*/ -- cgit v1.2.3