Lines Matching refs:uda134x
2 * uda134x.c -- UDA134X ALSA SoC Codec driver
25 #include <sound/uda134x.h>
28 #include "uda134x.h"
78 * Write to the uda134x registers
166 struct uda134x_priv *uda134x = snd_soc_codec_get_drvdata(codec);
169 if (uda134x->master_substream) {
170 master_runtime = uda134x->master_substream->runtime;
186 uda134x->slave_substream = substream;
188 uda134x->master_substream = substream;
199 struct uda134x_priv *uda134x = snd_soc_codec_get_drvdata(codec);
201 if (uda134x->master_substream == substream)
202 uda134x->master_substream = uda134x->slave_substream;
204 uda134x->slave_substream = NULL;
214 struct uda134x_priv *uda134x = snd_soc_codec_get_drvdata(codec);
217 if (substream == uda134x->slave_substream) {
228 uda134x->sysclk, params_rate(params));
231 switch (uda134x->sysclk / params_rate(params)) {
246 uda134x->dai_fmt, params_format(params));
249 switch (uda134x->dai_fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
286 struct uda134x_priv *uda134x = snd_soc_codec_get_drvdata(codec);
296 uda134x->sysclk = freq;
308 struct uda134x_priv *uda134x = snd_soc_codec_get_drvdata(codec);
326 uda134x->dai_fmt = fmt;
496 struct uda134x_priv *uda134x;
529 uda134x = kzalloc(sizeof(struct uda134x_priv), GFP_KERNEL);
530 if (uda134x == NULL)
532 snd_soc_codec_set_drvdata(codec, uda134x);