Lines Matching refs:amp_gain
42 gpio_set_value_cansleep(pdata->amp_gain[0], value & 1); in speaker_gain_set()
43 gpio_set_value_cansleep(pdata->amp_gain[1], value >> 1); in speaker_gain_set()
88 if (to && pdata->amp_gain[0] > 0) in spk_unmute_state()
141 if (pdata->amp_gain[0] > 0) { in simtec_audio_init()
232 if (pdata->amp_gain[0] > 0) { in attach_gpio_amp()
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()
242 gpio_free(pdata->amp_gain[0]); 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()
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()
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()