Lines Matching defs:component

432 	struct snd_soc_component *component = codec_dai->component;
433 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
450 struct snd_soc_component *component = codec_dai->component;
501 snd_soc_component_write(component, WM8971_IFACE, iface);
509 struct snd_soc_component *component = dai->component;
510 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
511 u16 iface = snd_soc_component_read(component, WM8971_IFACE) & 0x1f3;
512 u16 srate = snd_soc_component_read(component, WM8971_SRATE) & 0x1c0;
531 snd_soc_component_write(component, WM8971_IFACE, iface);
533 snd_soc_component_write(component, WM8971_SRATE, srate |
541 struct snd_soc_component *component = dai->component;
542 u16 mute_reg = snd_soc_component_read(component, WM8971_ADCDAC) & 0xfff7;
545 snd_soc_component_write(component, WM8971_ADCDAC, mute_reg | 0x8);
547 snd_soc_component_write(component, WM8971_ADCDAC, mute_reg);
560 static int wm8971_set_bias_level(struct snd_soc_component *component,
563 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
564 u16 pwr_reg = snd_soc_component_read(component, WM8971_PWR1) & 0xfe3e;
569 snd_soc_component_write(component, WM8971_PWR1, pwr_reg | 0x00c1);
576 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) {
577 snd_soc_component_cache_sync(component);
579 snd_soc_component_write(component, WM8971_PWR1, pwr_reg | 0x01c0);
584 snd_soc_component_write(component, WM8971_PWR1, pwr_reg | 0x0140);
590 snd_soc_component_write(component, WM8971_PWR1, 0x0001);
628 static int wm8971_probe(struct snd_soc_component *component)
630 struct wm8971_priv *wm8971 = snd_soc_component_get_drvdata(component);
634 wm8971_reset(component);
637 snd_soc_component_update_bits(component, WM8971_LDAC, 0x0100, 0x0100);
638 snd_soc_component_update_bits(component, WM8971_RDAC, 0x0100, 0x0100);
639 snd_soc_component_update_bits(component, WM8971_LOUT1V, 0x0100, 0x0100);
640 snd_soc_component_update_bits(component, WM8971_ROUT1V, 0x0100, 0x0100);
641 snd_soc_component_update_bits(component, WM8971_LOUT2V, 0x0100, 0x0100);
642 snd_soc_component_update_bits(component, WM8971_ROUT2V, 0x0100, 0x0100);
643 snd_soc_component_update_bits(component, WM8971_LINVOL, 0x0100, 0x0100);
644 snd_soc_component_update_bits(component, WM8971_RINVOL, 0x0100, 0x0100);