Lines Matching refs:component

133 static void wait_for_dc_servo(struct snd_soc_component *component)  in wait_for_dc_servo()  argument
138 dev_dbg(component->dev, "Waiting for DC servo...\n"); in wait_for_dc_servo()
142 reg = snd_soc_component_read(component, WM9090_DC_SERVO_READBACK_0); in wait_for_dc_servo()
143 dev_dbg(component->dev, "DC servo status: %x\n", reg); in wait_for_dc_servo()
149 dev_err(component->dev, "Timed out waiting for DC Servo\n"); in wait_for_dc_servo()
241 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in hp_ev() local
242 unsigned int reg = snd_soc_component_read(component, WM9090_ANALOGUE_HP_0); in hp_ev()
246 snd_soc_component_update_bits(component, WM9090_CHARGE_PUMP_1, in hp_ev()
251 snd_soc_component_update_bits(component, WM9090_POWER_MANAGEMENT_1, in hp_ev()
256 snd_soc_component_write(component, WM9090_ANALOGUE_HP_0, reg); in hp_ev()
264 snd_soc_component_write(component, WM9090_DC_SERVO_0, in hp_ev()
269 wait_for_dc_servo(component); in hp_ev()
273 snd_soc_component_write(component, WM9090_ANALOGUE_HP_0, reg); in hp_ev()
284 snd_soc_component_write(component, WM9090_ANALOGUE_HP_0, reg); in hp_ev()
286 snd_soc_component_write(component, WM9090_DC_SERVO_0, 0); in hp_ev()
288 snd_soc_component_update_bits(component, WM9090_POWER_MANAGEMENT_1, in hp_ev()
292 snd_soc_component_update_bits(component, WM9090_CHARGE_PUMP_1, in hp_ev()
409 static int wm9090_add_controls(struct snd_soc_component *component) in wm9090_add_controls() argument
411 struct wm9090_priv *wm9090 = snd_soc_component_get_drvdata(component); in wm9090_add_controls()
412 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in wm9090_add_controls()
420 snd_soc_add_component_controls(component, wm9090_controls, in wm9090_add_controls()
429 snd_soc_add_component_controls(component, wm9090_in1_se_controls, in wm9090_add_controls()
439 snd_soc_add_component_controls(component, wm9090_in2_se_controls, in wm9090_add_controls()
445 snd_soc_component_write(component, WM9090_AGC_CONTROL_0 + i, in wm9090_add_controls()
447 snd_soc_component_update_bits(component, WM9090_POWER_MANAGEMENT_3, in wm9090_add_controls()
450 snd_soc_component_update_bits(component, WM9090_POWER_MANAGEMENT_3, in wm9090_add_controls()
462 static int wm9090_set_bias_level(struct snd_soc_component *component, in wm9090_set_bias_level() argument
465 struct wm9090_priv *wm9090 = snd_soc_component_get_drvdata(component); in wm9090_set_bias_level()
472 snd_soc_component_update_bits(component, WM9090_ANTIPOP2, WM9090_VMID_ENA, in wm9090_set_bias_level()
474 snd_soc_component_update_bits(component, WM9090_POWER_MANAGEMENT_1, in wm9090_set_bias_level()
483 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm9090_set_bias_level()
492 snd_soc_component_update_bits(component, WM9090_POWER_MANAGEMENT_1, in wm9090_set_bias_level()
494 snd_soc_component_update_bits(component, WM9090_ANTIPOP2, in wm9090_set_bias_level()
505 static int wm9090_probe(struct snd_soc_component *component) in wm9090_probe() argument
510 snd_soc_component_update_bits(component, WM9090_IN1_LINE_INPUT_A_VOLUME, in wm9090_probe()
513 snd_soc_component_update_bits(component, WM9090_IN1_LINE_INPUT_B_VOLUME, in wm9090_probe()
516 snd_soc_component_update_bits(component, WM9090_IN2_LINE_INPUT_A_VOLUME, in wm9090_probe()
519 snd_soc_component_update_bits(component, WM9090_IN2_LINE_INPUT_B_VOLUME, in wm9090_probe()
522 snd_soc_component_update_bits(component, WM9090_SPEAKER_VOLUME_LEFT, in wm9090_probe()
525 snd_soc_component_update_bits(component, WM9090_LEFT_OUTPUT_VOLUME, in wm9090_probe()
528 snd_soc_component_update_bits(component, WM9090_RIGHT_OUTPUT_VOLUME, in wm9090_probe()
532 snd_soc_component_update_bits(component, WM9090_CLOCKING_1, in wm9090_probe()
535 wm9090_add_controls(component); in wm9090_probe()