Lines Matching refs:machine
54 struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); in tegra_max98090_asoc_hw_params() local
80 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_max98090_asoc_hw_params()
148 struct tegra_max98090 *machine = snd_soc_card_get_drvdata(rtd->card); in tegra_max98090_asoc_init() local
150 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_max98090_asoc_init()
157 tegra_max98090_hp_jack_gpio.gpio = machine->gpio_hp_det; in tegra_max98090_asoc_init()
163 if (gpio_is_valid(machine->gpio_mic_det)) { in tegra_max98090_asoc_init()
170 tegra_max98090_mic_jack_gpio.gpio = machine->gpio_mic_det; in tegra_max98090_asoc_init()
181 struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); in tegra_max98090_card_remove() local
183 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_max98090_card_remove()
188 if (gpio_is_valid(machine->gpio_mic_det)) { in tegra_max98090_card_remove()
224 struct tegra_max98090 *machine; in tegra_max98090_probe() local
227 machine = devm_kzalloc(&pdev->dev, in tegra_max98090_probe()
229 if (!machine) { in tegra_max98090_probe()
236 snd_soc_card_set_drvdata(card, machine); in tegra_max98090_probe()
238 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_max98090_probe()
239 if (machine->gpio_hp_det == -EPROBE_DEFER) in tegra_max98090_probe()
242 machine->gpio_mic_det = in tegra_max98090_probe()
244 if (machine->gpio_mic_det == -EPROBE_DEFER) in tegra_max98090_probe()
275 ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); in tegra_max98090_probe()
289 tegra_asoc_utils_fini(&machine->util_data); in tegra_max98090_probe()
297 struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); in tegra_max98090_remove() local
301 tegra_asoc_utils_fini(&machine->util_data); in tegra_max98090_remove()