diff options
author | Nikesh Oswal <noswal@nvidia.com> | 2012-02-12 22:36:59 -0800 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-02-23 05:08:29 -0800 |
commit | 98af80ca1135158a1de979c1917d50559672aef6 (patch) | |
tree | 0fb55dfb7b978f29d921ea71f9e5cbf622e95682 /sound/soc/codecs/tlv320aic326x_mini-dsp.h | |
parent | 64fcec0b6d07b3c0585530b0e683b575990d5b36 (diff) |
asoc: codecs: aic326x: add process flow for voice call
Change-Id: Ie8ef49b2a76e27e07835fb61bce23ddf69c0b1f9
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84537
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound/soc/codecs/tlv320aic326x_mini-dsp.h')
-rw-r--r-- | sound/soc/codecs/tlv320aic326x_mini-dsp.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/sound/soc/codecs/tlv320aic326x_mini-dsp.h b/sound/soc/codecs/tlv320aic326x_mini-dsp.h index bbc781776089..bebb12fa680e 100644 --- a/sound/soc/codecs/tlv320aic326x_mini-dsp.h +++ b/sound/soc/codecs/tlv320aic326x_mini-dsp.h @@ -23,26 +23,25 @@ #ifndef _TLV320AIC3262_MINI_DSP_H #define _TLV320AIC3262_MINI_DSP_H +/* defines */ -#define MULTIBYTE_CONFIG_SUPPORT -/*#undef MULTIBYTE_CONFIG_SUPPORT*/ - +#define MAXCONFIG 4 -/* defines */ +//#define DEBUG_MINIDSP_LOADING /* Select the functionalities to be used in mini dsp module */ -/*#define PROGRAM_MINI_DSP_first*/ -#define PROGRAM_MINI_DSP_second +#define PROGRAM_MINI_DSP_first +//#define PROGRAM_MINI_DSP_second #define PROGRAM_CODEC_REG_SECTIONS #define ADD_MINI_DSP_CONTROLS /* use the following macros to select between burst and byte mode of i2c - * Byte mode uses standard read & write as provides debugging information + * Byte mode uses standard read & write as provides debugging information if enabled * if enabled. * Multibyte should be used for production codes where performance is priority */ -#define MULTIBYTE_I2C -/*#undef MULTIBYTE_I2C*/ +//#define MULTIBYTE_I2C +#undef MULTIBYTE_I2C typedef struct { u8 reg_off; @@ -104,7 +103,7 @@ typedef struct { char burst_array[129]; int burst_size; int current_loc; - int book_change; + int book_change;CONFIG_MINI_DSP u8 book_no; } minidsp_parser_data; @@ -118,10 +117,12 @@ typedef struct { * The total memory requirement will be around * sizeof(minidsp_parser_data) * 48 = 138 * 32 = 4416 bytes */ -#define MINIDSP_PARSER_ARRAY_SIZE 80 +#define MINIDSP_PARSER_ARRAY_SIZE 200 extern int minidsp_i2c_multibyte_transfer(struct snd_soc_codec *, reg_value *, int); extern int byte_i2c_array_transfer(struct snd_soc_codec *, reg_value *, int); -extern void config_multibyte_for_mode(struct snd_soc_codec *, int); +extern void minidsp_multiconfig(struct snd_soc_codec *,reg_value *, int ,reg_value *, int ); +extern int reg_def_conf(struct snd_soc_codec *); + #endif |