Lines Matching refs:component
159 struct snd_soc_component *component = dai->component; in wm8711_hw_params() local
160 struct wm8711_priv *wm8711 = snd_soc_component_get_drvdata(component); in wm8711_hw_params()
161 u16 iface = snd_soc_component_read(component, WM8711_IFACE) & 0xfff3; in wm8711_hw_params()
166 snd_soc_component_write(component, WM8711_SRATE, srate); in wm8711_hw_params()
180 snd_soc_component_write(component, WM8711_IFACE, iface); in wm8711_hw_params()
187 struct snd_soc_component *component = dai->component; in wm8711_pcm_prepare() local
190 snd_soc_component_write(component, WM8711_ACTIVE, 0x0001); in wm8711_pcm_prepare()
198 struct snd_soc_component *component = dai->component; in wm8711_shutdown() local
201 if (!snd_soc_component_active(component)) { in wm8711_shutdown()
203 snd_soc_component_write(component, WM8711_ACTIVE, 0x0); in wm8711_shutdown()
209 struct snd_soc_component *component = dai->component; in wm8711_mute() local
210 u16 mute_reg = snd_soc_component_read(component, WM8711_APDIGI) & 0xfff7; in wm8711_mute()
213 snd_soc_component_write(component, WM8711_APDIGI, mute_reg | 0x8); in wm8711_mute()
215 snd_soc_component_write(component, WM8711_APDIGI, mute_reg); in wm8711_mute()
223 struct snd_soc_component *component = codec_dai->component; in wm8711_set_dai_sysclk() local
224 struct wm8711_priv *wm8711 = snd_soc_component_get_drvdata(component); in wm8711_set_dai_sysclk()
241 struct snd_soc_component *component = codec_dai->component; in wm8711_set_dai_fmt() local
242 u16 iface = snd_soc_component_read(component, WM8711_IFACE) & 0x000c; in wm8711_set_dai_fmt()
293 snd_soc_component_write(component, WM8711_IFACE, iface); in wm8711_set_dai_fmt()
297 static int wm8711_set_bias_level(struct snd_soc_component *component, in wm8711_set_bias_level() argument
300 struct wm8711_priv *wm8711 = snd_soc_component_get_drvdata(component); in wm8711_set_bias_level()
301 u16 reg = snd_soc_component_read(component, WM8711_PWR) & 0xff7f; in wm8711_set_bias_level()
305 snd_soc_component_write(component, WM8711_PWR, reg); in wm8711_set_bias_level()
310 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) in wm8711_set_bias_level()
313 snd_soc_component_write(component, WM8711_PWR, reg | 0x0040); in wm8711_set_bias_level()
316 snd_soc_component_write(component, WM8711_ACTIVE, 0x0); in wm8711_set_bias_level()
317 snd_soc_component_write(component, WM8711_PWR, 0xffff); in wm8711_set_bias_level()
350 static int wm8711_probe(struct snd_soc_component *component) in wm8711_probe() argument
354 ret = wm8711_reset(component); in wm8711_probe()
356 dev_err(component->dev, "Failed to issue reset\n"); in wm8711_probe()
361 snd_soc_component_update_bits(component, WM8711_LOUT1V, 0x0100, 0x0100); in wm8711_probe()
362 snd_soc_component_update_bits(component, WM8711_ROUT1V, 0x0100, 0x0100); in wm8711_probe()