Lines Matching refs:component
39 struct snd_soc_component *component; member
366 struct snd_soc_component *component = codec_dai->component; in es8316_set_dai_sysclk() local
367 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_set_dai_sysclk()
403 struct snd_soc_component *component = codec_dai->component; in es8316_set_dai_fmt() local
413 dev_err(component->dev, "Codec driver only supports I2S format\n"); in es8316_set_dai_fmt()
436 snd_soc_component_update_bits(component, ES8316_SERDATA1, mask, serdata1); in es8316_set_dai_fmt()
439 snd_soc_component_update_bits(component, ES8316_SERDATA_ADC, mask, serdata2); in es8316_set_dai_fmt()
440 snd_soc_component_update_bits(component, ES8316_SERDATA_DAC, mask, serdata2); in es8316_set_dai_fmt()
444 snd_soc_component_update_bits(component, ES8316_CLKMGR_CLKSW, clksw, clksw); in es8316_set_dai_fmt()
452 struct snd_soc_component *component = dai->component; in es8316_pcm_startup() local
453 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_pcm_startup()
467 struct snd_soc_component *component = dai->component; in es8316_pcm_hw_params() local
468 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_pcm_hw_params()
509 snd_soc_component_update_bits(component, ES8316_SERDATA_DAC, in es8316_pcm_hw_params()
511 snd_soc_component_update_bits(component, ES8316_SERDATA_ADC, in es8316_pcm_hw_params()
513 snd_soc_component_update_bits(component, ES8316_SERDATA1, 0x1f, bclk_divider); in es8316_pcm_hw_params()
514 snd_soc_component_update_bits(component, ES8316_CLKMGR_ADCDIV1, 0x0f, lrck_divider >> 8); in es8316_pcm_hw_params()
515 snd_soc_component_update_bits(component, ES8316_CLKMGR_ADCDIV2, 0xff, lrck_divider & 0xff); in es8316_pcm_hw_params()
516 snd_soc_component_update_bits(component, ES8316_CLKMGR_DACDIV1, 0x0f, lrck_divider >> 8); in es8316_pcm_hw_params()
517 snd_soc_component_update_bits(component, ES8316_CLKMGR_DACDIV2, 0xff, lrck_divider & 0xff); in es8316_pcm_hw_params()
523 snd_soc_component_update_bits(dai->component, ES8316_DAC_SET1, 0x20, in es8316_mute()
561 struct snd_soc_component *component) in es8316_enable_micbias_for_mic_gnd_short_detect() argument
563 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in es8316_enable_micbias_for_mic_gnd_short_detect()
576 struct snd_soc_component *component) in es8316_disable_micbias_for_mic_gnd_short_detect() argument
578 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in es8316_disable_micbias_for_mic_gnd_short_detect()
591 struct snd_soc_component *comp = es8316->component; in es8316_irq()
660 static void es8316_enable_jack_detect(struct snd_soc_component *component, in es8316_enable_jack_detect() argument
663 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_enable_jack_detect()
670 es8316->jd_inverted = device_property_read_bool(component->dev, in es8316_enable_jack_detect()
678 es8316_enable_micbias_for_mic_gnd_short_detect(component); in es8316_enable_jack_detect()
680 snd_soc_component_update_bits(component, ES8316_GPIO_DEBOUNCE, in es8316_enable_jack_detect()
691 static void es8316_disable_jack_detect(struct snd_soc_component *component) in es8316_disable_jack_detect() argument
693 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_disable_jack_detect()
702 snd_soc_component_update_bits(component, ES8316_GPIO_DEBOUNCE, in es8316_disable_jack_detect()
706 es8316_disable_micbias_for_mic_gnd_short_detect(component); in es8316_disable_jack_detect()
715 static int es8316_set_jack(struct snd_soc_component *component, in es8316_set_jack() argument
719 es8316_enable_jack_detect(component, jack); in es8316_set_jack()
721 es8316_disable_jack_detect(component); in es8316_set_jack()
726 static int es8316_probe(struct snd_soc_component *component) in es8316_probe() argument
728 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_probe()
731 es8316->component = component; in es8316_probe()
733 es8316->mclk = devm_clk_get_optional(component->dev, "mclk"); in es8316_probe()
735 dev_err(component->dev, "unable to get mclk\n"); in es8316_probe()
739 dev_warn(component->dev, "assuming static mclk\n"); in es8316_probe()
743 dev_err(component->dev, "unable to enable mclk\n"); in es8316_probe()
748 snd_soc_component_write(component, ES8316_RESET, 0x3f); in es8316_probe()
750 snd_soc_component_write(component, ES8316_RESET, ES8316_RESET_CSM_ON); in es8316_probe()
757 snd_soc_component_write(component, ES8316_SYS_VMIDSEL, 0xff); in es8316_probe()
764 snd_soc_component_write(component, ES8316_CLKMGR_ADCOSR, 0x32); in es8316_probe()
769 static void es8316_remove(struct snd_soc_component *component) in es8316_remove() argument
771 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_remove()
776 static int es8316_resume(struct snd_soc_component *component) in es8316_resume() argument
778 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_resume()
786 static int es8316_suspend(struct snd_soc_component *component) in es8316_suspend() argument
788 struct es8316_priv *es8316 = snd_soc_component_get_drvdata(component); in es8316_suspend()