Skip to content

Commit

Permalink
extcon: arizona: Add basic microphone detection DT/ACPI bindings
Browse files Browse the repository at this point in the history
This patch adds bindings for the basic microphone detection platform
data.

Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
  • Loading branch information
charleskeepax authored and chanwoochoi committed Aug 10, 2015
1 parent feffb0c commit 4778d44
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions drivers/extcon/extcon-arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,24 @@ static int arizona_extcon_device_get_pdata(struct arizona *arizona)
pdata->hpdet_channel = ARIZONA_ACCDET_MODE_HPL;
}

device_property_read_u32(arizona->dev, "wlf,micd-detect-debounce",
&pdata->micd_detect_debounce);

device_property_read_u32(arizona->dev, "wlf,micd-bias-start-time",
&pdata->micd_bias_start_time);

device_property_read_u32(arizona->dev, "wlf,micd-rate",
&pdata->micd_rate);

device_property_read_u32(arizona->dev, "wlf,micd-dbtime",
&pdata->micd_dbtime);

device_property_read_u32(arizona->dev, "wlf,micd-timeout",
&pdata->micd_timeout);

pdata->micd_force_micbias = device_property_read_bool(arizona->dev,
"wlf,micd-force-micbias");

return 0;
}

Expand Down

0 comments on commit 4778d44

Please sign in to comment.