Lines Matching refs:uda1334

46 	struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(component);  in uda1334_put_deemph()  local
52 gpiod_set_value_cansleep(uda1334->deemph, deemph); in uda1334_put_deemph()
61 struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(component); in uda1334_get_deemph() local
64 ret = gpiod_get_value_cansleep(uda1334->deemph); in uda1334_get_deemph()
94 struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(component); in uda1334_startup() local
100 if (!uda1334->sysclk) { in uda1334_startup()
108 &uda1334->rate_constraint); in uda1334_startup()
110 gpiod_set_value_cansleep(uda1334->mute, 1); in uda1334_startup()
119 struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(component); in uda1334_shutdown() local
121 gpiod_set_value_cansleep(uda1334->mute, 0); in uda1334_shutdown()
128 struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(component); in uda1334_set_dai_sysclk() local
132 uda1334->sysclk = freq; in uda1334_set_dai_sysclk()
134 uda1334->rate_constraint.count = 0; in uda1334_set_dai_sysclk()
153 uda1334->rate_constraint_list[j++] = val; in uda1334_set_dai_sysclk()
154 uda1334->rate_constraint.count++; in uda1334_set_dai_sysclk()
163 if (uda1334->rate_constraint.count == 0) in uda1334_set_dai_sysclk()
185 struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(dai->component); in uda1334_mute_stream() local
187 if (uda1334->mute) in uda1334_mute_stream()
188 gpiod_set_value_cansleep(uda1334->mute, mute); in uda1334_mute_stream()
219 struct uda1334_priv *uda1334 = snd_soc_component_get_drvdata(component); in uda1334_probe() local
221 uda1334->rate_constraint.list = &uda1334->rate_constraint_list[0]; in uda1334_probe()
222 uda1334->rate_constraint.count = in uda1334_probe()
223 ARRAY_SIZE(uda1334->rate_constraint_list); in uda1334_probe()
249 struct uda1334_priv *uda1334; in uda1334_codec_probe() local
252 uda1334 = devm_kzalloc(&pdev->dev, sizeof(struct uda1334_priv), in uda1334_codec_probe()
254 if (!uda1334) in uda1334_codec_probe()
257 platform_set_drvdata(pdev, uda1334); in uda1334_codec_probe()
259 uda1334->mute = devm_gpiod_get(&pdev->dev, "nxp,mute", GPIOD_OUT_LOW); in uda1334_codec_probe()
260 if (IS_ERR(uda1334->mute)) { in uda1334_codec_probe()
261 ret = PTR_ERR(uda1334->mute); in uda1334_codec_probe()
266 uda1334->deemph = devm_gpiod_get(&pdev->dev, "nxp,deemph", GPIOD_OUT_LOW); in uda1334_codec_probe()
267 if (IS_ERR(uda1334->deemph)) { in uda1334_codec_probe()
268 ret = PTR_ERR(uda1334->deemph); in uda1334_codec_probe()