Searched refs:gpios (Results 1 – 2 of 2) sorted by relevance
/sound/soc/ |
D | soc-jack.c | 306 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_add_gpios() argument 311 if (!gpios[i].name) { in snd_soc_jack_add_gpios() 318 if (gpios[i].desc) { in snd_soc_jack_add_gpios() 321 } else if (gpios[i].gpiod_dev) { in snd_soc_jack_add_gpios() 323 gpios[i].desc = gpiod_get_index(gpios[i].gpiod_dev, in snd_soc_jack_add_gpios() 324 gpios[i].name, in snd_soc_jack_add_gpios() 325 gpios[i].idx, GPIOD_IN); in snd_soc_jack_add_gpios() 326 if (IS_ERR(gpios[i].desc)) { in snd_soc_jack_add_gpios() 327 ret = PTR_ERR(gpios[i].desc); in snd_soc_jack_add_gpios() 328 dev_err(gpios[i].gpiod_dev, in snd_soc_jack_add_gpios() [all …]
|
/sound/soc/codecs/ |
D | wm1250-ev1.c | 32 struct gpio gpios[WM1250_EV1_NUM_GPIOS]; member 42 ena = wm1250->gpios[WM1250_EV1_GPIO_CLK_ENA].gpio; in wm1250_ev1_set_bias_level() 88 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params() 90 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params() 94 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params() 96 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params() 100 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params() 102 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params() 106 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params() 108 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params() [all …]
|