Lines Matching refs:codec
133 struct snd_soc_codec *codec = dai->codec; in max9850_hw_params() local
134 struct max9850_priv *max9850 = snd_soc_codec_get_drvdata(codec); in max9850_hw_params()
142 sf = (snd_soc_read(codec, MAX9850_CLOCK) >> 2) + 1; in max9850_hw_params()
148 snd_soc_write(codec, MAX9850_LRCLK_MSB, (lrclk_div >> 8) & 0x7f); in max9850_hw_params()
149 snd_soc_write(codec, MAX9850_LRCLK_LSB, lrclk_div & 0xff); in max9850_hw_params()
164 snd_soc_update_bits(codec, MAX9850_DIGITAL_AUDIO, 0x3, da); in max9850_hw_params()
172 struct snd_soc_codec *codec = codec_dai->codec; in max9850_set_dai_sysclk() local
173 struct max9850_priv *max9850 = snd_soc_codec_get_drvdata(codec); in max9850_set_dai_sysclk()
177 snd_soc_write(codec, MAX9850_CLOCK, 0x0); in max9850_set_dai_sysclk()
179 snd_soc_write(codec, MAX9850_CLOCK, 0x4); in max9850_set_dai_sysclk()
181 snd_soc_write(codec, MAX9850_CLOCK, 0x8); in max9850_set_dai_sysclk()
191 struct snd_soc_codec *codec = codec_dai->codec; in max9850_set_dai_fmt() local
237 snd_soc_write(codec, MAX9850_DIGITAL_AUDIO, da); in max9850_set_dai_fmt()
242 static int max9850_set_bias_level(struct snd_soc_codec *codec, in max9850_set_bias_level() argument
245 struct max9850_priv *max9850 = snd_soc_codec_get_drvdata(codec); in max9850_set_bias_level()
254 if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { in max9850_set_bias_level()
257 dev_err(codec->dev, in max9850_set_bias_level()
292 static int max9850_probe(struct snd_soc_codec *codec) in max9850_probe() argument
295 snd_soc_update_bits(codec, MAX9850_GENERAL_PURPOSE, 1, 1); in max9850_probe()
297 snd_soc_update_bits(codec, MAX9850_VOLUME, 0x40, 0x40); in max9850_probe()
299 snd_soc_update_bits(codec, MAX9850_CHARGE_PUMP, 0xff, 0xc0); in max9850_probe()