Lines Matching refs:component
44 struct snd_soc_component *component; member
717 struct snd_soc_component *component = codec_dai->component; in cs42l56_set_sysclk() local
718 struct cs42l56_private *cs42l56 = snd_soc_component_get_drvdata(component); in cs42l56_set_sysclk()
744 snd_soc_component_update_bits(component, CS42L56_CLKCTL_1, in cs42l56_set_sysclk()
747 snd_soc_component_update_bits(component, CS42L56_CLKCTL_1, in cs42l56_set_sysclk()
756 struct snd_soc_component *component = codec_dai->component; in cs42l56_set_dai_fmt() local
757 struct cs42l56_private *cs42l56 = snd_soc_component_get_drvdata(component); in cs42l56_set_dai_fmt()
794 snd_soc_component_update_bits(component, CS42L56_CLKCTL_1, in cs42l56_set_dai_fmt()
796 snd_soc_component_update_bits(component, CS42L56_SERIAL_FMT, in cs42l56_set_dai_fmt()
798 snd_soc_component_update_bits(component, CS42L56_CLKCTL_1, in cs42l56_set_dai_fmt()
805 struct snd_soc_component *component = dai->component; in cs42l56_mute() local
809 snd_soc_component_update_bits(component, CS42L56_DSP_MUTE_CTL, in cs42l56_mute()
818 snd_soc_component_update_bits(component, CS42L56_MISC_ADC_CTL, in cs42l56_mute()
823 snd_soc_component_update_bits(component, CS42L56_HPA_VOLUME, in cs42l56_mute()
825 snd_soc_component_update_bits(component, CS42L56_HPB_VOLUME, in cs42l56_mute()
827 snd_soc_component_update_bits(component, CS42L56_LOA_VOLUME, in cs42l56_mute()
829 snd_soc_component_update_bits(component, CS42L56_LOB_VOLUME, in cs42l56_mute()
832 snd_soc_component_update_bits(component, CS42L56_DSP_MUTE_CTL, in cs42l56_mute()
841 snd_soc_component_update_bits(component, CS42L56_MISC_ADC_CTL, in cs42l56_mute()
846 snd_soc_component_update_bits(component, CS42L56_HPA_VOLUME, in cs42l56_mute()
848 snd_soc_component_update_bits(component, CS42L56_HPB_VOLUME, in cs42l56_mute()
850 snd_soc_component_update_bits(component, CS42L56_LOA_VOLUME, in cs42l56_mute()
852 snd_soc_component_update_bits(component, CS42L56_LOB_VOLUME, in cs42l56_mute()
862 struct snd_soc_component *component = dai->component; in cs42l56_pcm_hw_params() local
863 struct cs42l56_private *cs42l56 = snd_soc_component_get_drvdata(component); in cs42l56_pcm_hw_params()
868 snd_soc_component_update_bits(component, CS42L56_CLKCTL_2, in cs42l56_pcm_hw_params()
871 dev_err(component->dev, "unsupported mclk/sclk/lrclk ratio\n"); in cs42l56_pcm_hw_params()
878 static int cs42l56_set_bias_level(struct snd_soc_component *component, in cs42l56_set_bias_level() argument
881 struct cs42l56_private *cs42l56 = snd_soc_component_get_drvdata(component); in cs42l56_set_bias_level()
888 snd_soc_component_update_bits(component, CS42L56_CLKCTL_1, in cs42l56_set_bias_level()
890 snd_soc_component_update_bits(component, CS42L56_PWRCTL_1, in cs42l56_set_bias_level()
894 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in cs42l56_set_bias_level()
906 snd_soc_component_update_bits(component, CS42L56_PWRCTL_1, in cs42l56_set_bias_level()
910 snd_soc_component_update_bits(component, CS42L56_PWRCTL_1, in cs42l56_set_bias_level()
912 snd_soc_component_update_bits(component, CS42L56_CLKCTL_1, in cs42l56_set_bias_level()
966 struct snd_soc_component *component = cs42l56->component; in cs42l56_beep_work() local
967 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in cs42l56_beep_work()
979 dev_dbg(component->dev, "Set beep rate %dHz for requested %dHz\n", in cs42l56_beep_work()
986 dev_dbg(component->dev, "Disabling beep\n"); in cs42l56_beep_work()
990 snd_soc_component_update_bits(component, CS42L56_BEEP_FREQ_ONTIME, in cs42l56_beep_work()
1002 struct snd_soc_component *component = input_get_drvdata(dev); in cs42l56_beep_event() local
1003 struct cs42l56_private *cs42l56 = snd_soc_component_get_drvdata(component); in cs42l56_beep_event()
1005 dev_dbg(component->dev, "Beep event %x %x\n", code, hz); in cs42l56_beep_event()
1042 static void cs42l56_init_beep(struct snd_soc_component *component) in cs42l56_init_beep() argument
1044 struct cs42l56_private *cs42l56 = snd_soc_component_get_drvdata(component); in cs42l56_init_beep()
1047 cs42l56->beep = devm_input_allocate_device(component->dev); in cs42l56_init_beep()
1049 dev_err(component->dev, "Failed to allocate beep device\n"); in cs42l56_init_beep()
1057 cs42l56->beep->phys = dev_name(component->dev); in cs42l56_init_beep()
1063 cs42l56->beep->dev.parent = component->dev; in cs42l56_init_beep()
1064 input_set_drvdata(cs42l56->beep, component); in cs42l56_init_beep()
1069 dev_err(component->dev, "Failed to register beep device\n"); in cs42l56_init_beep()
1072 ret = device_create_file(component->dev, &dev_attr_beep); in cs42l56_init_beep()
1074 dev_err(component->dev, "Failed to create keyclick file: %d\n", in cs42l56_init_beep()
1079 static void cs42l56_free_beep(struct snd_soc_component *component) in cs42l56_free_beep() argument
1081 struct cs42l56_private *cs42l56 = snd_soc_component_get_drvdata(component); in cs42l56_free_beep()
1083 device_remove_file(component->dev, &dev_attr_beep); in cs42l56_free_beep()
1087 snd_soc_component_update_bits(component, CS42L56_BEEP_TONE_CFG, in cs42l56_free_beep()
1091 static int cs42l56_probe(struct snd_soc_component *component) in cs42l56_probe() argument
1093 cs42l56_init_beep(component); in cs42l56_probe()
1098 static void cs42l56_remove(struct snd_soc_component *component) in cs42l56_remove() argument
1100 cs42l56_free_beep(component); in cs42l56_remove()