Searched refs:hp_det_gpio (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/include/sound/
H A Drt5645.h24 unsigned int hp_det_gpio; member in struct:rt5645_platform_data
/linux-4.1.27/sound/soc/codecs/
H A Drt5645.c2424 if (!gpio_is_valid(rt5645->pdata.hp_det_gpio)) { rt5645_jack_detect()
2428 gpio_state = gpio_get_value(rt5645->pdata.hp_det_gpio); rt5645_jack_detect()
2430 dev_dbg(codec->dev, "gpio = %d(%d)\n", rt5645->pdata.hp_det_gpio, rt5645_jack_detect()
2850 if (gpio_is_valid(rt5645->pdata.hp_det_gpio)) { rt5645_i2c_probe()
2851 ret = gpio_request(rt5645->pdata.hp_det_gpio, "rt5645"); rt5645_i2c_probe()
2853 dev_err(&i2c->dev, "Fail gpio_request hp_det_gpio\n"); rt5645_i2c_probe()
2855 ret = gpio_direction_input(rt5645->pdata.hp_det_gpio); rt5645_i2c_probe()
2857 dev_err(&i2c->dev, "Fail gpio_direction hp_det_gpio\n"); rt5645_i2c_probe()
2873 if (gpio_is_valid(rt5645->pdata.hp_det_gpio)) rt5645_i2c_remove()
2874 gpio_free(rt5645->pdata.hp_det_gpio); rt5645_i2c_remove()

Completed in 110 milliseconds