Lines Matching full:max98357a
4 * max98357a.c -- MAX98357A ALSA SoC Codec driver
32 struct max98357a_priv *max98357a = in max98357a_daiops_trigger() local
35 if (!max98357a->sdmode) in max98357a_daiops_trigger()
42 mdelay(max98357a->sdmode_delay); in max98357a_daiops_trigger()
43 if (max98357a->sdmode_switch) { in max98357a_daiops_trigger()
44 gpiod_set_value(max98357a->sdmode, 1); in max98357a_daiops_trigger()
51 gpiod_set_value(max98357a->sdmode, 0); in max98357a_daiops_trigger()
64 struct max98357a_priv *max98357a = in max98357a_sdmode_event() local
68 max98357a->sdmode_switch = 1; in max98357a_sdmode_event()
70 max98357a->sdmode_switch = 0; in max98357a_sdmode_event()
125 struct max98357a_priv *max98357a; in max98357a_platform_probe() local
128 max98357a = devm_kzalloc(&pdev->dev, sizeof(*max98357a), GFP_KERNEL); in max98357a_platform_probe()
129 if (!max98357a) in max98357a_platform_probe()
132 max98357a->sdmode = devm_gpiod_get_optional(&pdev->dev, in max98357a_platform_probe()
134 if (IS_ERR(max98357a->sdmode)) in max98357a_platform_probe()
135 return PTR_ERR(max98357a->sdmode); in max98357a_platform_probe()
138 &max98357a->sdmode_delay); in max98357a_platform_probe()
140 max98357a->sdmode_delay = 0; in max98357a_platform_probe()
146 dev_set_drvdata(&pdev->dev, max98357a); in max98357a_platform_probe()
155 { .compatible = "maxim,max98357a" },
173 .name = "max98357a",
181 MODULE_DESCRIPTION("Maxim MAX98357A Codec Driver");