Lines Matching refs:machine
36 struct rk_drvdata *machine = snd_soc_card_get_drvdata(w->dapm->card); in rk_hp_power() local
38 if (!gpio_is_valid(machine->gpio_hp_en)) in rk_hp_power()
41 gpio_set_value_cansleep(machine->gpio_hp_en, in rk_hp_power()
123 struct rk_drvdata *machine = snd_soc_card_get_drvdata(runtime->card); in rk_init() local
126 if (gpio_is_valid(machine->gpio_hp_det)) { in rk_init()
131 rk_hp_jack_gpio.gpio = machine->gpio_hp_det; in rk_init()
175 struct rk_drvdata *machine; in snd_rk_mc_probe() local
178 machine = devm_kzalloc(&pdev->dev, sizeof(struct rk_drvdata), in snd_rk_mc_probe()
180 if (!machine) in snd_rk_mc_probe()
185 machine->gpio_hp_det = of_get_named_gpio(np, in snd_rk_mc_probe()
187 if (!gpio_is_valid(machine->gpio_hp_det) && machine->gpio_hp_det != -ENODEV) in snd_rk_mc_probe()
188 return machine->gpio_hp_det; in snd_rk_mc_probe()
190 machine->gpio_hp_en = of_get_named_gpio(np, in snd_rk_mc_probe()
192 if (!gpio_is_valid(machine->gpio_hp_en) && machine->gpio_hp_en != -ENODEV) in snd_rk_mc_probe()
193 return machine->gpio_hp_en; in snd_rk_mc_probe()
195 if (gpio_is_valid(machine->gpio_hp_en)) { in snd_rk_mc_probe()
196 ret = devm_gpio_request_one(&pdev->dev, machine->gpio_hp_en, in snd_rk_mc_probe()
249 snd_soc_card_set_drvdata(card, machine); in snd_rk_mc_probe()