diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-21 03:36:33 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-07 13:04:07 -0500 |
commit | 2e033db5ddf299de2ae568919d78b0258a5a6423 (patch) | |
tree | e5f156ede883eb09f6548792a84c2c81d0ecd46e /drivers/extcon | |
parent | f9365d07dd5cb3c76b454b4c7827b2f6339cace2 (diff) |
extcon: arizona: Support additional configuration of microphone detection
Allow systems to tune detection rate and debounce suitably for their
mechanical parameters.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-arizona.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index ab8b9c7359fb..d7e1047ad68e 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c | |||
@@ -907,6 +907,18 @@ static int arizona_extcon_probe(struct platform_device *pdev) | |||
907 | arizona->pdata.micd_bias_start_time | 907 | arizona->pdata.micd_bias_start_time |
908 | << ARIZONA_MICD_BIAS_STARTTIME_SHIFT); | 908 | << ARIZONA_MICD_BIAS_STARTTIME_SHIFT); |
909 | 909 | ||
910 | if (arizona->pdata.micd_rate) | ||
911 | regmap_update_bits(arizona->regmap, ARIZONA_MIC_DETECT_1, | ||
912 | ARIZONA_MICD_RATE_MASK, | ||
913 | arizona->pdata.micd_rate | ||
914 | << ARIZONA_MICD_RATE_SHIFT); | ||
915 | |||
916 | if (arizona->pdata.micd_dbtime) | ||
917 | regmap_update_bits(arizona->regmap, ARIZONA_MIC_DETECT_1, | ||
918 | ARIZONA_MICD_DBTIME_MASK, | ||
919 | arizona->pdata.micd_dbtime | ||
920 | << ARIZONA_MICD_DBTIME_SHIFT); | ||
921 | |||
910 | /* | 922 | /* |
911 | * If we have a clamp use it, activating in conjunction with | 923 | * If we have a clamp use it, activating in conjunction with |
912 | * GPIO5 if that is connected for jack detect operation. | 924 | * GPIO5 if that is connected for jack detect operation. |