diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2019-04-04 17:33:56 +0100 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2019-04-12 09:38:40 +0900 |
commit | 00053de52231117ddc154042549f2256183ffb86 (patch) | |
tree | bbf4462a476ef2e24b78d87c98cfd8f08521f3c0 /arch | |
parent | fa3c098c2d52a268f6372fa053932e11f50cecb1 (diff) |
extcon: arizona: Disable mic detect if running when driver is removed
Microphone detection provides the button detection features on the
Arizona CODECs as such it will be running if the jack is currently
inserted. If the driver is unbound whilst the jack is still inserted
this will cause warnings from the regulator framework as the MICVDD
regulator is put but was never disabled.
Correct this by disabling microphone detection on driver removal and if
the microphone detection was running disable the regulator and put the
runtime reference that was currently held.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions