e8a8a1be43
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
77 lines
2.1 KiB
C
77 lines
2.1 KiB
C
/***************************************************************************
|
|
* __________ __ ___.
|
|
* 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_*/
|