diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-10 18:55:43 -0500 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2013-01-15 01:42:17 -0500 |
commit | 4f340333822de79b3439bddccdbf3846f9794e42 (patch) | |
tree | 03ef9d0ad533f531dce5ba38e79d3cb8ecb936b2 /drivers/mfd/wm5102-tables.c | |
parent | 92a49871b378b1e523a95da569cd38efdd06eee5 (diff) |
extcon: arizona: Enable basic headphone identification
Use the headphone detection to identify if the accessory is a headphone or
line load. There are two different revisions of the IP with different
register layouts, support both.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/mfd/wm5102-tables.c')
-rw-r--r-- | drivers/mfd/wm5102-tables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index 088872ab6338..311cc3657b0b 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c | |||
@@ -1106,6 +1106,8 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg) | |||
1106 | case ARIZONA_ACCESSORY_DETECT_MODE_1: | 1106 | case ARIZONA_ACCESSORY_DETECT_MODE_1: |
1107 | case ARIZONA_HEADPHONE_DETECT_1: | 1107 | case ARIZONA_HEADPHONE_DETECT_1: |
1108 | case ARIZONA_HEADPHONE_DETECT_2: | 1108 | case ARIZONA_HEADPHONE_DETECT_2: |
1109 | case ARIZONA_HP_DACVAL: | ||
1110 | case ARIZONA_MICD_CLAMP_CONTROL: | ||
1109 | case ARIZONA_MIC_DETECT_1: | 1111 | case ARIZONA_MIC_DETECT_1: |
1110 | case ARIZONA_MIC_DETECT_2: | 1112 | case ARIZONA_MIC_DETECT_2: |
1111 | case ARIZONA_MIC_DETECT_3: | 1113 | case ARIZONA_MIC_DETECT_3: |
@@ -1875,6 +1877,7 @@ static bool wm5102_volatile_register(struct device *dev, unsigned int reg) | |||
1875 | case ARIZONA_DSP1_STATUS_2: | 1877 | case ARIZONA_DSP1_STATUS_2: |
1876 | case ARIZONA_DSP1_STATUS_3: | 1878 | case ARIZONA_DSP1_STATUS_3: |
1877 | case ARIZONA_HEADPHONE_DETECT_2: | 1879 | case ARIZONA_HEADPHONE_DETECT_2: |
1880 | case ARIZONA_HP_DACVAL: | ||
1878 | case ARIZONA_MIC_DETECT_3: | 1881 | case ARIZONA_MIC_DETECT_3: |
1879 | return true; | 1882 | return true; |
1880 | default: | 1883 | default: |