Commit graph

10 commits

Author SHA1 Message Date
Devin Kim
fc46d902b9 switch: fsa8008: use mic_bias_en only if gpio is valid
Some device might not use the mic_bias_en. So use mic_bias_en only if
gpio is valid.

Change-Id: I7f55a960191ed154d4cfdda7647d81c41653eced
2013-03-04 12:47:46 -08:00
Devin Kim
830a0a0aba switch: fsa8008: do not enable uart console
earjack debugger driver can enable the uart console. so fsa8008 doesn't
need to enable the uart console. It will remove the noise.

Change-Id: I6a3880f40717329034631d4488dd7b376fff8ef6
2013-03-04 12:46:18 -08:00
Devin Kim
609c094fea switch: fsa8008: enable the debug message
monitoring the status of earjack for b/7169919

Change-Id: I1875ad7f1feffc853f3183f3bf6c53c41282414e
2013-03-04 12:46:03 -08:00
Devin Kim
217b182a49 switch: fsa8008: control uart console
Add the function to control uart console

Change-Id: I932a4c4e5017ded30400b0f7dafbdb365713482b
2013-03-04 12:45:46 -08:00
Devin Kim
676550e699 switch: fsa8008: separate gpio initialization from probe
-- separate gpio initialization from probe function
-- fix wrong error handling
-- clean up code

Change-Id: I2afea03afd3ef3b1fa4274d831398ca28326b181
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:45 -08:00
Devin Kim
4d9eedfb17 switch: fsa8008: fix to detect earjack during deep sleep
When resuming device, If there is changed the detect state,
then update the detect state.

Change-Id: I9f5fa06e3c82a51768d9e805127526a84f0df65f
2013-03-04 12:45:14 -08:00
Devin Kim
35489ce6cd switch: fsa8008: show error and warning messages
error and warning messages should be displayed. and add some missing
error handling.

Change-Id: I26d08f02e2e181670733aec78f8b128748961884
2013-03-04 12:44:54 -08:00
Devin Kim
dc939ce71d audio: fsa8008: simplify the codes related to request gpios
simplify the codes related to request gpios. use gpio_request_one
instead of gpio_request.

Change-Id: I4243eb686404139688891bde59575416a29e3832
2013-03-04 09:12:16 -08:00
ehgrace.kim
5fbfe21b85 audio: enable fsa8008 for earjack detection
Change-Id: Ifc6f9aa6fa6520002dec150808bb9192e48ed0a8
2013-03-04 09:11:55 -08:00
Mike Lockwood
80d38eaf3d switch: switch class and GPIO drivers.
switch: Export symbol switch_set_state.

Signed-off-by: Mike Lockwood <lockwood@android.com>

switch: gpio: Don't call request_irq with interrupts disabled

Signed-off-by: Arve Hjønnevåg <arve@android.com>

switch: Use device_create instead of device_create_drvdata.

device_create_drvdata is obsolete.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

switch_gpio: Add missing #include <linux/interrupt.h>

Change-Id: I6c397e41bbe1457162cc69e31a29db5d9f76fccb
Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-04-09 13:53:14 -07:00