Lines Matching refs:wm1250

33 	struct wm1250_priv *wm1250 = dev_get_drvdata(component->dev);  in wm1250_ev1_set_bias_level()  local
36 if (wm1250) in wm1250_ev1_set_bias_level()
37 ena = wm1250->gpios[WM1250_EV1_GPIO_CLK_ENA].gpio; in wm1250_ev1_set_bias_level()
79 struct wm1250_priv *wm1250 = snd_soc_component_get_drvdata(dai->component); in wm1250_ev1_hw_params() local
83 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
85 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
89 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
91 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
95 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
97 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
101 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
103 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
152 struct wm1250_priv *wm1250; in wm1250_ev1_pdata() local
158 wm1250 = devm_kzalloc(&i2c->dev, sizeof(*wm1250), GFP_KERNEL); in wm1250_ev1_pdata()
159 if (!wm1250) { in wm1250_ev1_pdata()
164 for (i = 0; i < ARRAY_SIZE(wm1250->gpios); i++) { in wm1250_ev1_pdata()
165 wm1250->gpios[i].gpio = pdata->gpios[i]; in wm1250_ev1_pdata()
166 wm1250->gpios[i].label = wm1250_gpio_names[i]; in wm1250_ev1_pdata()
167 wm1250->gpios[i].flags = GPIOF_OUT_INIT_LOW; in wm1250_ev1_pdata()
169 wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].flags = GPIOF_OUT_INIT_HIGH; in wm1250_ev1_pdata()
170 wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].flags = GPIOF_OUT_INIT_HIGH; in wm1250_ev1_pdata()
172 ret = gpio_request_array(wm1250->gpios, ARRAY_SIZE(wm1250->gpios)); in wm1250_ev1_pdata()
178 dev_set_drvdata(&i2c->dev, wm1250); in wm1250_ev1_pdata()
188 struct wm1250_priv *wm1250 = dev_get_drvdata(&i2c->dev); in wm1250_ev1_free() local
190 if (wm1250) in wm1250_ev1_free()
191 gpio_free_array(wm1250->gpios, ARRAY_SIZE(wm1250->gpios)); in wm1250_ev1_free()