Lines Matching defs:uda134x
3 * uda134x.c -- UDA134X ALSA SoC Codec driver
21 #include <sound/uda134x.h>
24 #include "uda134x.h"
61 * Write to the uda134x registers
112 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
115 regmap_update_bits(uda134x->regmap, UDA134X_STATUS0, mask, mask);
117 regmap_update_bits(uda134x->regmap, UDA134X_STATUS0, mask, 0);
122 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(dai->component);
133 return regmap_update_bits(uda134x->regmap, UDA134X_DATA010, mask, val);
140 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
143 if (uda134x->master_substream) {
144 master_runtime = uda134x->master_substream->runtime;
158 uda134x->slave_substream = substream;
160 uda134x->master_substream = substream;
169 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
171 if (uda134x->master_substream == substream)
172 uda134x->master_substream = uda134x->slave_substream;
174 uda134x->slave_substream = NULL;
182 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
185 if (substream == uda134x->slave_substream) {
192 uda134x->sysclk, params_rate(params));
195 switch (uda134x->sysclk / params_rate(params)) {
210 uda134x->dai_fmt, params_format(params));
213 switch (uda134x->dai_fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
241 return regmap_update_bits(uda134x->regmap, UDA134X_STATUS0,
249 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
259 uda134x->sysclk = freq;
271 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
289 uda134x->dai_fmt = fmt;
297 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
298 struct uda134x_platform_data *pd = uda134x->pd;
308 regcache_sync(uda134x->regmap);
317 regcache_mark_dirty(uda134x->regmap);
426 .name = "uda134x-hifi",
450 struct uda134x_priv *uda134x = snd_soc_component_get_drvdata(component);
451 struct uda134x_platform_data *pd = uda134x->pd;
547 struct uda134x_priv *uda134x;
555 uda134x = devm_kzalloc(&pdev->dev, sizeof(*uda134x), GFP_KERNEL);
556 if (!uda134x)
559 uda134x->pd = pd;
560 platform_set_drvdata(pdev, uda134x);
563 ret = l3_set_gpio_ops(&pdev->dev, &uda134x->pd->l3);
568 uda134x->regmap = devm_regmap_init(&pdev->dev, NULL, pd,
570 if (IS_ERR(uda134x->regmap))
571 return PTR_ERR(uda134x->regmap);
579 .name = "uda134x-codec",