diff options
author | Kristoffer KARLSSON <kristoffer.karlsson@stericsson.com> | 2012-02-24 19:08:49 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:05:06 +0200 |
commit | 33fdce6d37048ac39be578523ce1677345706994 (patch) | |
tree | d994625af29c2dd9e080b024123d38f663e6a9e1 /sound/soc/codecs/ab8500_audio.h | |
parent | 85d6cc09d321f313f4c10bb0011b76475cf7e407 (diff) |
ASoC: Ux500: Sidetone sequence control and error handling
Implementation of sidetone write sequence control,
read back and error handling in u8500 ASoC driver.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 408244
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Iff0bef7e35876a011c1433718300d123c7a8c087
Signed-off-by: Kristoffer KARLSSON <kristoffer.karlsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50478
Reviewed-by: QABUILD
Reviewed-by: Ola LILJA2 <ola.o.lilja@stericsson.com>
Diffstat (limited to 'sound/soc/codecs/ab8500_audio.h')
-rw-r--r-- | sound/soc/codecs/ab8500_audio.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sound/soc/codecs/ab8500_audio.h b/sound/soc/codecs/ab8500_audio.h index c506f8d1e3c..72f7b383830 100644 --- a/sound/soc/codecs/ab8500_audio.h +++ b/sound/soc/codecs/ab8500_audio.h @@ -33,15 +33,9 @@ int ab8500_audio_setup_if1(struct snd_soc_codec *codec, unsigned int fmt, unsigned int wl, unsigned int delay); -unsigned int ab8500_audio_anc_status(void); -int ab8500_audio_anc_configure(unsigned int req_state); -enum ab8500_audio_dapm_path { - AB8500_AUDIO_DAPM_PATH_DMIC, - AB8500_AUDIO_DAPM_PATH_AMIC1, - AB8500_AUDIO_DAPM_PATH_AMIC2 -}; -bool ab8500_audio_dapm_path_active(enum ab8500_audio_dapm_path dapm_path); +void ab8500_audio_anc_configure(struct snd_soc_codec *codec, + bool apply_fir, bool apply_iir); enum ab8500_audio_adcm { AB8500_AUDIO_ADCM_NORMAL, @@ -630,8 +624,9 @@ int ab8500_audio_set_adcm(enum ab8500_audio_adcm req_adcm); /* REG_SIDFIRCOEF1 */ /* REG_SIDFIRCOEF2 */ -#define REG_SIDFIRCOEFX_VALUE_SHIFT 0 -#define REG_SIDFIRCOEFX_VALUE_MAX 0xFFFF +#define REG_SID_FIR_COEFF_MIN 0 +#define REG_SID_FIR_COEFF_MAX 0xFFFF +#define REG_SID_FIR_COEFFS 128 /* REG_SIDFIRCONF */ #define REG_SIDFIRCONF_ENFIRSIDS 2 |