diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2010-05-26 04:38:16 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-05-31 06:08:58 -0400 |
commit | 979bb1f4b8b058e9fb23d6166807e30b507a1a6d (patch) | |
tree | b64514fa9151951809f49ff7feb0c8b59b733070 /sound/soc/codecs/twl4030.h | |
parent | cbd2db128f2cbec1a70aa6897cc4cddbbadecbf6 (diff) |
ASoC: TWL4030: Make offset cancellation path configurable
Add means for machine drivers to select the path for offset
cancellation.
Reset the reg cache value to the chip reset value at the
same time.
Machine drivers can specify which path need to be used for
offset cancellation via the twl4030_setup.offset_cncl_path.
For paths use the defines from
include/linux/mfd/twl4030-codec.h:
TWL4030_OFFSET_CNCL_SEL_*
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/twl4030.h')
-rw-r--r-- | sound/soc/codecs/twl4030.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl4030.h b/sound/soc/codecs/twl4030.h index f206d242ca31..c98e30347e87 100644 --- a/sound/soc/codecs/twl4030.h +++ b/sound/soc/codecs/twl4030.h | |||
@@ -42,6 +42,7 @@ extern struct snd_soc_codec_device soc_codec_dev_twl4030; | |||
42 | struct twl4030_setup_data { | 42 | struct twl4030_setup_data { |
43 | unsigned int ramp_delay_value; | 43 | unsigned int ramp_delay_value; |
44 | unsigned int sysclk; | 44 | unsigned int sysclk; |
45 | unsigned int offset_cncl_path; | ||
45 | unsigned int hs_extmute:1; | 46 | unsigned int hs_extmute:1; |
46 | void (*set_hs_extmute)(int mute); | 47 | void (*set_hs_extmute)(int mute); |
47 | }; | 48 | }; |