• Home
  • Raw
  • Download

Lines Matching refs:machine

64 	struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);  in tegra_wm8903_hw_params()  local
83 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8903_hw_params()
133 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_spk() local
135 if (!gpio_is_valid(machine->gpio_spkr_en)) in tegra_wm8903_event_int_spk()
138 gpio_set_value_cansleep(machine->gpio_spkr_en, in tegra_wm8903_event_int_spk()
149 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_hp() local
151 if (!gpio_is_valid(machine->gpio_hp_mute)) in tegra_wm8903_event_hp()
154 gpio_set_value_cansleep(machine->gpio_hp_mute, in tegra_wm8903_event_hp()
175 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_init() local
177 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_wm8903_init()
178 tegra_wm8903_hp_jack_gpio.gpio = machine->gpio_hp_det; in tegra_wm8903_init()
205 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_remove() local
207 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_wm8903_remove()
246 struct tegra_wm8903 *machine; in tegra_wm8903_driver_probe() local
249 machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8903), in tegra_wm8903_driver_probe()
251 if (!machine) { in tegra_wm8903_driver_probe()
258 snd_soc_card_set_drvdata(card, machine); in tegra_wm8903_driver_probe()
260 machine->gpio_spkr_en = of_get_named_gpio(np, "nvidia,spkr-en-gpios", in tegra_wm8903_driver_probe()
262 if (machine->gpio_spkr_en == -EPROBE_DEFER) in tegra_wm8903_driver_probe()
264 if (gpio_is_valid(machine->gpio_spkr_en)) { in tegra_wm8903_driver_probe()
265 ret = devm_gpio_request_one(&pdev->dev, machine->gpio_spkr_en, in tegra_wm8903_driver_probe()
273 machine->gpio_hp_mute = of_get_named_gpio(np, "nvidia,hp-mute-gpios", in tegra_wm8903_driver_probe()
275 if (machine->gpio_hp_mute == -EPROBE_DEFER) in tegra_wm8903_driver_probe()
277 if (gpio_is_valid(machine->gpio_hp_mute)) { in tegra_wm8903_driver_probe()
278 ret = devm_gpio_request_one(&pdev->dev, machine->gpio_hp_mute, in tegra_wm8903_driver_probe()
286 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_wm8903_driver_probe()
287 if (machine->gpio_hp_det == -EPROBE_DEFER) in tegra_wm8903_driver_probe()
290 machine->gpio_int_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
292 if (machine->gpio_int_mic_en == -EPROBE_DEFER) in tegra_wm8903_driver_probe()
294 if (gpio_is_valid(machine->gpio_int_mic_en)) { in tegra_wm8903_driver_probe()
297 machine->gpio_int_mic_en, in tegra_wm8903_driver_probe()
305 machine->gpio_ext_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
307 if (machine->gpio_ext_mic_en == -EPROBE_DEFER) in tegra_wm8903_driver_probe()
309 if (gpio_is_valid(machine->gpio_ext_mic_en)) { in tegra_wm8903_driver_probe()
312 machine->gpio_ext_mic_en, in tegra_wm8903_driver_probe()
348 ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); in tegra_wm8903_driver_probe()
362 tegra_asoc_utils_fini(&machine->util_data); in tegra_wm8903_driver_probe()
370 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_driver_remove() local
374 tegra_asoc_utils_fini(&machine->util_data); in tegra_wm8903_driver_remove()