Lines Matching refs:component
25 struct snd_soc_component *component; member
282 struct snd_soc_component *codec = codec_dai->component; in es8326_set_dai_sysclk()
292 struct snd_soc_component *component = codec_dai->component; in es8326_set_dai_fmt() local
297 snd_soc_component_update_bits(component, ES8326_RESET, in es8326_set_dai_fmt()
311 dev_err(component->dev, "Codec driver does not support right justified\n"); in es8326_set_dai_fmt()
326 snd_soc_component_update_bits(component, ES8326_FMT, ES8326_DAIFMT_MASK, iface); in es8326_set_dai_fmt()
335 struct snd_soc_component *component = dai->component; in es8326_pcm_hw_params() local
336 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_pcm_hw_params()
363 snd_soc_component_update_bits(component, ES8326_FMT, ES8326_DATA_LEN_MASK, srate); in es8326_pcm_hw_params()
383 dev_warn(component->dev, "Clock coefficients do not match"); in es8326_pcm_hw_params()
391 struct snd_soc_component *component = dai->component; in es8326_mute() local
392 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_mute()
492 static void es8326_enable_micbias(struct snd_soc_component *component) in es8326_enable_micbias() argument
494 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in es8326_enable_micbias()
503 static void es8326_disable_micbias(struct snd_soc_component *component) in es8326_disable_micbias() argument
505 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in es8326_disable_micbias()
524 struct snd_soc_component *comp = es8326->component; in es8326_jack_button_handler()
590 struct snd_soc_component *comp = es8326->component; in es8326_jack_detect_handler()
617 es8326_disable_micbias(es8326->component); in es8326_jack_detect_handler()
692 struct snd_soc_component *comp = es8326->component; in es8326_irq()
710 static int es8326_calibrate(struct snd_soc_component *component) in es8326_calibrate() argument
712 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_calibrate()
720 dev_dbg(component->dev, "ES8326_VERSION_B, calibrating\n"); in es8326_calibrate()
758 static int es8326_resume(struct snd_soc_component *component) in es8326_resume() argument
760 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_resume()
797 es8326_calibrate(component); in es8326_resume()
839 static int es8326_suspend(struct snd_soc_component *component) in es8326_suspend() argument
841 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_suspend()
844 es8326_disable_micbias(component); in es8326_suspend()
857 static int es8326_probe(struct snd_soc_component *component) in es8326_probe() argument
859 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_probe()
862 es8326->component = component; in es8326_probe()
863 es8326->jd_inverted = device_property_read_bool(component->dev, in es8326_probe()
866 ret = device_property_read_u8(component->dev, "everest,mic1-src", &es8326->mic1_src); in es8326_probe()
868 dev_dbg(component->dev, "mic1-src return %d", ret); in es8326_probe()
871 dev_dbg(component->dev, "mic1-src %x", es8326->mic1_src); in es8326_probe()
873 ret = device_property_read_u8(component->dev, "everest,mic2-src", &es8326->mic2_src); in es8326_probe()
875 dev_dbg(component->dev, "mic2-src return %d", ret); in es8326_probe()
878 dev_dbg(component->dev, "mic2-src %x", es8326->mic2_src); in es8326_probe()
880 ret = device_property_read_u8(component->dev, "everest,jack-pol", &es8326->jack_pol); in es8326_probe()
882 dev_dbg(component->dev, "jack-pol return %d", ret); in es8326_probe()
885 dev_dbg(component->dev, "jack-pol %x", es8326->jack_pol); in es8326_probe()
887 ret = device_property_read_u8(component->dev, "everest,interrupt-src", in es8326_probe()
890 dev_dbg(component->dev, "interrupt-src return %d", ret); in es8326_probe()
893 dev_dbg(component->dev, "interrupt-src %x", es8326->interrupt_src); in es8326_probe()
895 ret = device_property_read_u8(component->dev, "everest,interrupt-clk", in es8326_probe()
898 dev_dbg(component->dev, "interrupt-clk return %d", ret); in es8326_probe()
901 dev_dbg(component->dev, "interrupt-clk %x", es8326->interrupt_clk); in es8326_probe()
903 es8326_resume(component); in es8326_probe()
907 static void es8326_enable_jack_detect(struct snd_soc_component *component, in es8326_enable_jack_detect() argument
910 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_enable_jack_detect()
914 snd_soc_component_update_bits(component, ES8326_HPDET_TYPE, in es8326_enable_jack_detect()
922 static void es8326_disable_jack_detect(struct snd_soc_component *component) in es8326_disable_jack_detect() argument
924 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_disable_jack_detect()
926 dev_dbg(component->dev, "Enter into %s\n", __func__); in es8326_disable_jack_detect()
933 es8326_disable_micbias(component); in es8326_disable_jack_detect()
940 static int es8326_set_jack(struct snd_soc_component *component, in es8326_set_jack() argument
944 es8326_enable_jack_detect(component, jack); in es8326_set_jack()
946 es8326_disable_jack_detect(component); in es8326_set_jack()
951 static void es8326_remove(struct snd_soc_component *component) in es8326_remove() argument
953 es8326_disable_jack_detect(component); in es8326_remove()
954 es8326_set_bias_level(component, SND_SOC_BIAS_OFF); in es8326_remove()