Lines Matching full:max98357a
4 * max98357a.c -- MAX98357A ALSA SoC Codec driver
33 struct max98357a_priv *max98357a = in max98357a_daiops_trigger() local
36 if (!max98357a->sdmode) in max98357a_daiops_trigger()
43 mdelay(max98357a->sdmode_delay); in max98357a_daiops_trigger()
44 if (max98357a->sdmode_switch) { in max98357a_daiops_trigger()
45 gpiod_set_value(max98357a->sdmode, 1); in max98357a_daiops_trigger()
52 gpiod_set_value(max98357a->sdmode, 0); in max98357a_daiops_trigger()
65 struct max98357a_priv *max98357a = in max98357a_sdmode_event() local
69 max98357a->sdmode_switch = 1; in max98357a_sdmode_event()
71 max98357a->sdmode_switch = 0; in max98357a_sdmode_event()
126 struct max98357a_priv *max98357a; in max98357a_platform_probe() local
129 max98357a = devm_kzalloc(&pdev->dev, sizeof(*max98357a), GFP_KERNEL); in max98357a_platform_probe()
130 if (!max98357a) in max98357a_platform_probe()
133 max98357a->sdmode = devm_gpiod_get_optional(&pdev->dev, in max98357a_platform_probe()
135 if (IS_ERR(max98357a->sdmode)) in max98357a_platform_probe()
136 return PTR_ERR(max98357a->sdmode); in max98357a_platform_probe()
139 &max98357a->sdmode_delay); in max98357a_platform_probe()
141 max98357a->sdmode_delay = 0; in max98357a_platform_probe()
147 dev_set_drvdata(&pdev->dev, max98357a); in max98357a_platform_probe()
156 { .compatible = "maxim,max98357a" },
174 .name = "max98357a",
182 MODULE_DESCRIPTION("Maxim MAX98357A Codec Driver");