Searched refs:sirf_audio_card (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/sound/soc/sirf/
H A Dsirf-audio.c18 struct sirf_audio_card { struct
28 struct sirf_audio_card *sirf_audio_card = snd_soc_card_get_drvdata(card); sirf_audio_hp_event() local
30 if (gpio_is_valid(sirf_audio_card->gpio_hp_pa)) sirf_audio_hp_event()
31 gpio_set_value(sirf_audio_card->gpio_hp_pa, on); sirf_audio_hp_event()
40 struct sirf_audio_card *sirf_audio_card = snd_soc_card_get_drvdata(card); sirf_audio_spk_event() local
43 if (gpio_is_valid(sirf_audio_card->gpio_spk_pa)) sirf_audio_spk_event()
44 gpio_set_value(sirf_audio_card->gpio_spk_pa, on); sirf_audio_spk_event()
86 struct sirf_audio_card *sirf_audio_card; sirf_audio_probe() local
89 sirf_audio_card = devm_kzalloc(&pdev->dev, sizeof(struct sirf_audio_card), sirf_audio_probe()
91 if (sirf_audio_card == NULL) sirf_audio_probe()
100 sirf_audio_card->gpio_spk_pa = of_get_named_gpio(pdev->dev.of_node, sirf_audio_probe()
102 sirf_audio_card->gpio_hp_pa = of_get_named_gpio(pdev->dev.of_node, sirf_audio_probe()
104 if (gpio_is_valid(sirf_audio_card->gpio_spk_pa)) { sirf_audio_probe()
106 sirf_audio_card->gpio_spk_pa, sirf_audio_probe()
111 sirf_audio_card->gpio_spk_pa, ret); sirf_audio_probe()
115 if (gpio_is_valid(sirf_audio_card->gpio_hp_pa)) { sirf_audio_probe()
117 sirf_audio_card->gpio_hp_pa, sirf_audio_probe()
122 sirf_audio_card->gpio_hp_pa, ret); sirf_audio_probe()
128 snd_soc_card_set_drvdata(card, sirf_audio_card); sirf_audio_probe()

Completed in 77 milliseconds