• Home
  • Raw
  • Download

Lines Matching refs:pdata

61 	struct twl4030_codec_data *pdata;  member
196 static void twl4030_setup_pdata_of(struct twl4030_codec_data *pdata, in twl4030_setup_pdata_of() argument
202 &pdata->digimic_delay); in twl4030_setup_pdata_of()
204 &pdata->ramp_delay_value); in twl4030_setup_pdata_of()
206 &pdata->offset_cncl_path); in twl4030_setup_pdata_of()
208 pdata->hs_extmute = value; in twl4030_setup_pdata_of()
210 pdata->hs_extmute_gpio = of_get_named_gpio(node, in twl4030_setup_pdata_of()
212 if (gpio_is_valid(pdata->hs_extmute_gpio)) in twl4030_setup_pdata_of()
213 pdata->hs_extmute = 1; in twl4030_setup_pdata_of()
218 struct twl4030_codec_data *pdata = dev_get_platdata(component->dev); in twl4030_get_pdata() local
224 if (!pdata && twl4030_codec_node) { in twl4030_get_pdata()
225 pdata = devm_kzalloc(component->dev, in twl4030_get_pdata()
228 if (!pdata) { in twl4030_get_pdata()
232 twl4030_setup_pdata_of(pdata, twl4030_codec_node); in twl4030_get_pdata()
236 return pdata; in twl4030_get_pdata()
241 struct twl4030_codec_data *pdata; in twl4030_init_chip() local
246 pdata = twl4030_get_pdata(component); in twl4030_init_chip()
248 if (pdata && pdata->hs_extmute) { in twl4030_init_chip()
249 if (gpio_is_valid(pdata->hs_extmute_gpio)) { in twl4030_init_chip()
252 if (!pdata->hs_extmute_gpio) in twl4030_init_chip()
256 ret = gpio_request_one(pdata->hs_extmute_gpio, in twl4030_init_chip()
262 pdata->hs_extmute_gpio = -1; in twl4030_init_chip()
293 if (!pdata) in twl4030_init_chip()
296 twl4030->pdata = pdata; in twl4030_init_chip()
300 reg |= (pdata->ramp_delay_value << 2); in twl4030_init_chip()
308 reg |= pdata->offset_cncl_path; in twl4030_init_chip()
695 struct twl4030_codec_data *pdata = twl4030->pdata; in headset_ramp() local
708 if (pdata && pdata->hs_extmute) { in headset_ramp()
709 if (gpio_is_valid(pdata->hs_extmute_gpio)) { in headset_ramp()
710 gpio_set_value(pdata->hs_extmute_gpio, 1); in headset_ramp()
744 if (pdata && pdata->hs_extmute) { in headset_ramp()
745 if (gpio_is_valid(pdata->hs_extmute_gpio)) { in headset_ramp()
746 gpio_set_value(pdata->hs_extmute_gpio, 0); in headset_ramp()
809 struct twl4030_codec_data *pdata = twl4030->pdata; in digimic_event() local
811 if (pdata && pdata->digimic_delay) in digimic_event()
812 twl4030_wait_ms(pdata->digimic_delay); in digimic_event()
2173 struct twl4030_codec_data *pdata = twl4030->pdata; in twl4030_soc_remove() local
2175 if (pdata && pdata->hs_extmute && gpio_is_valid(pdata->hs_extmute_gpio)) in twl4030_soc_remove()
2176 gpio_free(pdata->hs_extmute_gpio); in twl4030_soc_remove()