Lines Matching refs:component
502 struct snd_soc_component *component = codec_dai->component; in wm8750_set_dai_sysclk() local
503 struct wm8750_priv *wm8750 = snd_soc_component_get_drvdata(component); in wm8750_set_dai_sysclk()
520 struct snd_soc_component *component = codec_dai->component; in wm8750_set_dai_fmt() local
571 snd_soc_component_write(component, WM8750_IFACE, iface); in wm8750_set_dai_fmt()
579 struct snd_soc_component *component = dai->component; in wm8750_pcm_hw_params() local
580 struct wm8750_priv *wm8750 = snd_soc_component_get_drvdata(component); in wm8750_pcm_hw_params()
581 u16 iface = snd_soc_component_read(component, WM8750_IFACE) & 0x1f3; in wm8750_pcm_hw_params()
582 u16 srate = snd_soc_component_read(component, WM8750_SRATE) & 0x1c0; in wm8750_pcm_hw_params()
601 snd_soc_component_write(component, WM8750_IFACE, iface); in wm8750_pcm_hw_params()
603 snd_soc_component_write(component, WM8750_SRATE, srate | in wm8750_pcm_hw_params()
611 struct snd_soc_component *component = dai->component; in wm8750_mute() local
612 u16 mute_reg = snd_soc_component_read(component, WM8750_ADCDAC) & 0xfff7; in wm8750_mute()
615 snd_soc_component_write(component, WM8750_ADCDAC, mute_reg | 0x8); in wm8750_mute()
617 snd_soc_component_write(component, WM8750_ADCDAC, mute_reg); in wm8750_mute()
621 static int wm8750_set_bias_level(struct snd_soc_component *component, in wm8750_set_bias_level() argument
624 u16 pwr_reg = snd_soc_component_read(component, WM8750_PWR1) & 0xfe3e; in wm8750_set_bias_level()
629 snd_soc_component_write(component, WM8750_PWR1, pwr_reg | 0x00c0); in wm8750_set_bias_level()
634 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8750_set_bias_level()
635 snd_soc_component_cache_sync(component); in wm8750_set_bias_level()
638 snd_soc_component_write(component, WM8750_PWR1, pwr_reg | 0x01c1); in wm8750_set_bias_level()
645 snd_soc_component_write(component, WM8750_PWR1, pwr_reg | 0x0141); in wm8750_set_bias_level()
648 snd_soc_component_write(component, WM8750_PWR1, 0x0001); in wm8750_set_bias_level()
686 static int wm8750_probe(struct snd_soc_component *component) in wm8750_probe() argument
690 ret = wm8750_reset(component); in wm8750_probe()
697 snd_soc_component_update_bits(component, WM8750_LDAC, 0x0100, 0x0100); in wm8750_probe()
698 snd_soc_component_update_bits(component, WM8750_RDAC, 0x0100, 0x0100); in wm8750_probe()
699 snd_soc_component_update_bits(component, WM8750_LOUT1V, 0x0100, 0x0100); in wm8750_probe()
700 snd_soc_component_update_bits(component, WM8750_ROUT1V, 0x0100, 0x0100); in wm8750_probe()
701 snd_soc_component_update_bits(component, WM8750_LOUT2V, 0x0100, 0x0100); in wm8750_probe()
702 snd_soc_component_update_bits(component, WM8750_ROUT2V, 0x0100, 0x0100); in wm8750_probe()
703 snd_soc_component_update_bits(component, WM8750_LINVOL, 0x0100, 0x0100); in wm8750_probe()
704 snd_soc_component_update_bits(component, WM8750_RINVOL, 0x0100, 0x0100); in wm8750_probe()