Lines Matching refs:pd
203 static int simtec_call_startup(struct s3c24xx_audio_simtec_pdata *pd) in simtec_call_startup() argument
208 if (pd->startup) in simtec_call_startup()
209 pd->startup(); in simtec_call_startup()
227 struct s3c24xx_audio_simtec_pdata *pd) in attach_gpio_amp() argument
233 ret = gpio_request(pd->amp_gain[0], "gpio-amp-gain0"); in attach_gpio_amp()
239 ret = gpio_request(pd->amp_gain[1], "gpio-amp-gain1"); in attach_gpio_amp()
246 gpio_direction_output(pd->amp_gain[0], 0); in attach_gpio_amp()
247 gpio_direction_output(pd->amp_gain[1], 0); in attach_gpio_amp()
252 ret = gpio_request(pd->amp_gpio, "gpio-amp"); in attach_gpio_amp()
255 pd->amp_gpio, ret); in attach_gpio_amp()
266 if (pd->amp_gain[0] > 0) { in attach_gpio_amp()
267 gpio_free(pd->amp_gain[0]); in attach_gpio_amp()
268 gpio_free(pd->amp_gain[1]); in attach_gpio_amp()
274 static void detach_gpio_amp(struct s3c24xx_audio_simtec_pdata *pd) in detach_gpio_amp() argument
276 if (pd->amp_gain[0] > 0) { in detach_gpio_amp()
277 gpio_free(pd->amp_gain[0]); in detach_gpio_amp()
278 gpio_free(pd->amp_gain[1]); in detach_gpio_amp()
281 if (pd->amp_gpio > 0) in detach_gpio_amp()
282 gpio_free(pd->amp_gpio); in detach_gpio_amp()