Add a device-tree property that does not invert the headphone detect signal Signed-off-by: Jonathan Tinkham <sctincman@xxxxxxxxx> --- sound/soc/tegra/tegra_max98090.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/tegra/tegra_max98090.c b/sound/soc/tegra/tegra_max98090.c index 902da36..73beba6 100644 --- a/sound/soc/tegra/tegra_max98090.c +++ b/sound/soc/tegra/tegra_max98090.c @@ -238,6 +238,11 @@ static int tegra_max98090_probe(struct platform_device *pdev) if (machine->gpio_hp_det == -EPROBE_DEFER) return -EPROBE_DEFER; + if (of_property_read_bool(np, "nvidia,hd-no-invert")) + tegra_max98090_hp_jack_gpio.invert = 0; + else + tegra_max98090_hp_jack_gpio.invert = 1; + machine->gpio_mic_det = of_get_named_gpio(np, "nvidia,mic-det-gpios", 0); if (machine->gpio_mic_det == -EPROBE_DEFER) -- 2.7.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html