Lines Matching refs:pdata
63 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_ext_control() local
97 gpiod_set_value(pdata->tvout_selection_gpio, tvout); in rx51_ext_control()
160 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_spk_event() local
162 gpiod_set_raw_value_cansleep(pdata->speaker_amp_gpio, in rx51_spk_event()
290 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_aic34_init() local
323 rx51_av_jack_gpios[0].gpio = desc_to_gpio(pdata->jack_detection_gpio); in rx51_aic34_init()
324 devm_gpiod_put(card->dev, pdata->jack_detection_gpio); in rx51_aic34_init()
397 struct rx51_audio_pdata *pdata; in rx51_soc_probe() local
450 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in rx51_soc_probe()
451 if (pdata == NULL) { in rx51_soc_probe()
455 snd_soc_card_set_drvdata(card, pdata); in rx51_soc_probe()
457 pdata->tvout_selection_gpio = devm_gpiod_get(card->dev, in rx51_soc_probe()
459 if (IS_ERR(pdata->tvout_selection_gpio)) { in rx51_soc_probe()
461 return PTR_ERR(pdata->tvout_selection_gpio); in rx51_soc_probe()
464 err = gpiod_direction_output(pdata->tvout_selection_gpio, 0); in rx51_soc_probe()
470 pdata->jack_detection_gpio = devm_gpiod_get(card->dev, in rx51_soc_probe()
472 if (IS_ERR(pdata->jack_detection_gpio)) { in rx51_soc_probe()
474 return PTR_ERR(pdata->jack_detection_gpio); in rx51_soc_probe()
477 pdata->eci_sw_gpio = devm_gpiod_get(card->dev, "eci-switch"); in rx51_soc_probe()
478 if (IS_ERR(pdata->eci_sw_gpio)) { in rx51_soc_probe()
480 return PTR_ERR(pdata->eci_sw_gpio); in rx51_soc_probe()
483 err = gpiod_direction_output(pdata->eci_sw_gpio, 1); in rx51_soc_probe()
489 pdata->speaker_amp_gpio = devm_gpiod_get(card->dev, in rx51_soc_probe()
491 if (IS_ERR(pdata->speaker_amp_gpio)) { in rx51_soc_probe()
493 return PTR_ERR(pdata->speaker_amp_gpio); in rx51_soc_probe()
496 err = gpiod_direction_output(pdata->speaker_amp_gpio, 0); in rx51_soc_probe()