}
#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__);
static int rockchip_headset_suspend(struct platform_device *pdev, pm_message_t state)
{
- DBG("%s----%d\n",__FUNCTION__,__LINE__);
if(pdata_info->chan != 0)
{
return rk_headset_adc_suspend(pdev,state);
static int rockchip_headset_resume(struct platform_device *pdev)
{
- printk("%s----%d\n",__FUNCTION__,__LINE__);
if(pdata_info->chan != 0)
{
return rk_headset_adc_resume(pdev);