Lines Matching refs:component
269 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8903_dcs_event() local
270 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_dcs_event()
277 snd_soc_component_update_bits(component, WM8903_DC_SERVO_0, in wm8903_dcs_event()
288 static void wm8903_seq_notifier(struct snd_soc_component *component, in wm8903_seq_notifier() argument
291 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_seq_notifier()
297 dev_dbg(component->dev, "Starting DC servo for %x\n", in wm8903_seq_notifier()
306 dev_dbg(component->dev, in wm8903_seq_notifier()
310 snd_soc_component_write(component, WM8903_DC_SERVO_4 + i, in wm8903_seq_notifier()
313 dev_dbg(component->dev, in wm8903_seq_notifier()
323 snd_soc_component_update_bits(component, WM8903_DC_SERVO_2, in wm8903_seq_notifier()
326 snd_soc_component_update_bits(component, WM8903_DC_SERVO_0, in wm8903_seq_notifier()
344 val = snd_soc_component_read(component, in wm8903_seq_notifier()
346 dev_dbg(component->dev, "DC servo %d: %x\n", in wm8903_seq_notifier()
372 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in wm8903_class_w_put() local
373 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_class_w_put()
377 reg = snd_soc_component_read(component, WM8903_CLASS_W_0); in wm8903_class_w_put()
382 dev_dbg(component->dev, "Disabling Class W\n"); in wm8903_class_w_put()
383 snd_soc_component_write(component, WM8903_CLASS_W_0, reg & in wm8903_class_w_put()
395 dev_dbg(component->dev, "Enabling Class W\n"); in wm8903_class_w_put()
396 snd_soc_component_write(component, WM8903_CLASS_W_0, reg | in wm8903_class_w_put()
402 dev_dbg(component->dev, "Bypass use count now %d\n", in wm8903_class_w_put()
415 static int wm8903_set_deemph(struct snd_soc_component *component) in wm8903_set_deemph() argument
417 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_set_deemph()
437 dev_dbg(component->dev, "Set deemphasis %d (%dHz)\n", in wm8903_set_deemph()
440 return snd_soc_component_update_bits(component, WM8903_DAC_DIGITAL_1, in wm8903_set_deemph()
447 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8903_get_deemph() local
448 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_get_deemph()
458 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8903_put_deemph() local
459 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_put_deemph()
470 wm8903_set_deemph(component); in wm8903_put_deemph()
1099 static int wm8903_set_bias_level(struct snd_soc_component *component, in wm8903_set_bias_level() argument
1107 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1113 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8903_set_bias_level()
1114 snd_soc_component_update_bits(component, WM8903_BIAS_CONTROL_0, in wm8903_set_bias_level()
1122 snd_soc_component_update_bits(component, in wm8903_set_bias_level()
1129 snd_soc_component_update_bits(component, WM8903_POWER_MANAGEMENT_5, in wm8903_set_bias_level()
1133 snd_soc_component_update_bits(component, in wm8903_set_bias_level()
1137 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1153 snd_soc_component_update_bits(component, WM8903_POWER_MANAGEMENT_5, in wm8903_set_bias_level()
1157 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1160 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1164 snd_soc_component_update_bits(component, WM8903_BIAS_CONTROL_0, in wm8903_set_bias_level()
1171 dev_dbg(component->dev, "Enabling Class W\n"); in wm8903_set_bias_level()
1172 snd_soc_component_update_bits(component, WM8903_CLASS_W_0, in wm8903_set_bias_level()
1179 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1185 snd_soc_component_update_bits(component, WM8903_BIAS_CONTROL_0, in wm8903_set_bias_level()
1188 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1192 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1197 snd_soc_component_update_bits(component, WM8903_VMID_CONTROL_0, in wm8903_set_bias_level()
1203 snd_soc_component_update_bits(component, WM8903_BIAS_CONTROL_0, in wm8903_set_bias_level()
1214 struct snd_soc_component *component = codec_dai->component; in wm8903_set_dai_sysclk() local
1215 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_set_dai_sysclk()
1225 struct snd_soc_component *component = codec_dai->component; in wm8903_set_dai_fmt() local
1226 u16 aif1 = snd_soc_component_read(component, WM8903_AUDIO_INTERFACE_1); in wm8903_set_dai_fmt()
1304 snd_soc_component_write(component, WM8903_AUDIO_INTERFACE_1, aif1); in wm8903_set_dai_fmt()
1311 struct snd_soc_component *component = codec_dai->component; in wm8903_mute() local
1314 reg = snd_soc_component_read(component, WM8903_DAC_DIGITAL_1); in wm8903_mute()
1321 snd_soc_component_write(component, WM8903_DAC_DIGITAL_1, reg); in wm8903_mute()
1441 struct snd_soc_component *component = dai->component; in wm8903_hw_params() local
1442 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_hw_params()
1453 u16 aif1 = snd_soc_component_read(component, WM8903_AUDIO_INTERFACE_1); in wm8903_hw_params()
1454 u16 aif2 = snd_soc_component_read(component, WM8903_AUDIO_INTERFACE_2); in wm8903_hw_params()
1455 u16 aif3 = snd_soc_component_read(component, WM8903_AUDIO_INTERFACE_3); in wm8903_hw_params()
1456 u16 clock0 = snd_soc_component_read(component, WM8903_CLOCK_RATES_0); in wm8903_hw_params()
1457 u16 clock1 = snd_soc_component_read(component, WM8903_CLOCK_RATES_1); in wm8903_hw_params()
1458 u16 dac_digital1 = snd_soc_component_read(component, WM8903_DAC_DIGITAL_1); in wm8903_hw_params()
1477 dev_dbg(component->dev, "DSP fs = %dHz\n", sample_rates[dsp_config].rate); in wm8903_hw_params()
1503 dev_dbg(component->dev, "MCLK = %dHz, target sample rate = %dHz\n", in wm8903_hw_params()
1538 dev_dbg(component->dev, "CLK_SYS_RATE=%x, CLK_SYS_MODE=%x div=%d\n", in wm8903_hw_params()
1543 dev_dbg(component->dev, "Actual CLK_SYS = %dHz\n", clk_sys); in wm8903_hw_params()
1563 dev_dbg(component->dev, "BCLK ratio %d for %dHz - actual BCLK = %dHz\n", in wm8903_hw_params()
1571 wm8903_set_deemph(component); in wm8903_hw_params()
1573 snd_soc_component_write(component, WM8903_CLOCK_RATES_0, clock0); in wm8903_hw_params()
1574 snd_soc_component_write(component, WM8903_CLOCK_RATES_1, clock1); in wm8903_hw_params()
1575 snd_soc_component_write(component, WM8903_AUDIO_INTERFACE_1, aif1); in wm8903_hw_params()
1576 snd_soc_component_write(component, WM8903_AUDIO_INTERFACE_2, aif2); in wm8903_hw_params()
1577 snd_soc_component_write(component, WM8903_AUDIO_INTERFACE_3, aif3); in wm8903_hw_params()
1578 snd_soc_component_write(component, WM8903_DAC_DIGITAL_1, dac_digital1); in wm8903_hw_params()
1600 int wm8903_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack, in wm8903_mic_detect() argument
1603 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_mic_detect()
1606 dev_dbg(component->dev, "Enabling microphone detection: %x %x\n", in wm8903_mic_detect()
1620 snd_soc_component_update_bits(component, WM8903_INTERRUPT_STATUS_1_MASK, in wm8903_mic_detect()
1627 snd_soc_component_update_bits(component, WM8903_WRITE_SEQUENCER_0, in wm8903_mic_detect()
1629 snd_soc_component_update_bits(component, WM8903_MIC_BIAS_CONTROL_0, in wm8903_mic_detect()
1632 snd_soc_component_update_bits(component, WM8903_MIC_BIAS_CONTROL_0, in wm8903_mic_detect()
1763 static int wm8903_resume(struct snd_soc_component *component) in wm8903_resume() argument
1765 struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component); in wm8903_resume()