projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/rockchip: vop: correct rk3368/rk3366 feature
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
headset_observe
/
rockchip_headset_core.c
diff --git
a/drivers/headset_observe/rockchip_headset_core.c
b/drivers/headset_observe/rockchip_headset_core.c
index 0ec6708ab743e64b5dc00c65140cd49d7b6bb0a0..01b7b4e2f1aa22a9c09300eee8d6228e688ba1a0 100755
(executable)
--- a/
drivers/headset_observe/rockchip_headset_core.c
+++ b/
drivers/headset_observe/rockchip_headset_core.c
@@
-123,6
+123,10
@@
static int rockchip_headset_probe(struct platform_device *pdev)
}
#endif
+ ret = of_property_read_u32(node, "rockchip,headset_wakeup", &pdata->headset_wakeup);
+ if (ret < 0)
+ pdata->headset_wakeup = 1;
+
if(pdata->chan != NULL)
{//hook adc mode
printk("%s() headset have hook adc mode\n",__FUNCTION__);