Lines Matching refs:component
255 struct snd_soc_component *component; member
268 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cpcap_st_workaround() local
269 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_st_workaround()
369 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in cpcap_output_mux_get_enum() local
370 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_output_mux_get_enum()
412 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in cpcap_output_mux_put_enum() local
413 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_output_mux_put_enum()
457 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in cpcap_input_right_mux_get_enum() local
458 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_input_right_mux_get_enum()
496 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in cpcap_input_right_mux_put_enum() local
497 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_input_right_mux_put_enum()
541 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in cpcap_input_left_mux_get_enum() local
542 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_input_left_mux_get_enum()
572 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in cpcap_input_left_mux_put_enum() local
573 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_input_left_mux_put_enum()
981 dev_err(cpcap->component->dev, "invalid DAI: %d", dai); in cpcap_set_sysclk()
987 dev_err(cpcap->component->dev, "invalid clk id %d", clk_id); in cpcap_set_sysclk()
1027 dev_err(cpcap->component->dev, "unsupported freq %u", freq); in cpcap_set_sysclk()
1047 struct snd_soc_component *component = cpcap->component; in cpcap_set_samprate() local
1065 dev_err(component->dev, "invalid DAI: %d", dai); in cpcap_set_samprate()
1099 dev_err(component->dev, "unsupported samplerate %d", samplerate); in cpcap_set_samprate()
1115 dev_err(component->dev, "reset self-clear failed: %04x", in cpcap_set_samprate()
1127 struct snd_soc_component *component = dai->component; in cpcap_hifi_hw_params() local
1128 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_hifi_hw_params()
1131 dev_dbg(component->dev, "HiFi setup HW params: rate=%d", rate); in cpcap_hifi_hw_params()
1138 struct snd_soc_component *component = codec_dai->component; in cpcap_hifi_set_dai_sysclk() local
1139 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_hifi_set_dai_sysclk()
1140 struct device *dev = component->dev; in cpcap_hifi_set_dai_sysclk()
1149 struct snd_soc_component *component = codec_dai->component; in cpcap_hifi_set_dai_fmt() local
1150 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_hifi_set_dai_fmt()
1151 struct device *dev = component->dev; in cpcap_hifi_set_dai_fmt()
1230 struct snd_soc_component *component = dai->component; in cpcap_hifi_set_mute() local
1231 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_hifi_set_mute()
1241 dev_dbg(component->dev, "HiFi mute: %d", mute); in cpcap_hifi_set_mute()
1257 struct snd_soc_component *component = dai->component; in cpcap_voice_hw_params() local
1258 struct device *dev = component->dev; in cpcap_voice_hw_params()
1259 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_voice_hw_params()
1296 struct snd_soc_component *component = codec_dai->component; in cpcap_voice_set_dai_sysclk() local
1297 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_voice_set_dai_sysclk()
1299 dev_dbg(component->dev, "Voice setup sysclk: clk_id=%u, freq=%u", in cpcap_voice_set_dai_sysclk()
1307 struct snd_soc_component *component = codec_dai->component; in cpcap_voice_set_dai_fmt() local
1308 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_voice_set_dai_fmt()
1317 dev_dbg(component->dev, "Voice setup dai format (%08x)", fmt); in cpcap_voice_set_dai_fmt()
1329 dev_err(component->dev, "Voice dai fmt failed: CPCAP should be the provider"); in cpcap_voice_set_dai_fmt()
1352 dev_err(component->dev, "Voice dai fmt failed: unsupported clock invert mode"); in cpcap_voice_set_dai_fmt()
1374 dev_dbg(component->dev, "Voice dai format: val=%04x", val); in cpcap_voice_set_dai_fmt()
1461 struct snd_soc_component *component = dai->component; in cpcap_voice_set_tdm_slot() local
1462 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_voice_set_tdm_slot()
1499 struct snd_soc_component *component = dai->component; in cpcap_voice_set_mute() local
1500 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_voice_set_mute()
1510 dev_dbg(component->dev, "Voice mute: %d", mute); in cpcap_voice_set_mute()
1589 static int cpcap_audio_reset(struct snd_soc_component *component, in cpcap_audio_reset() argument
1592 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_audio_reset()
1595 dev_dbg(component->dev, "init audio codec"); in cpcap_audio_reset()
1629 static int cpcap_soc_probe(struct snd_soc_component *component) in cpcap_soc_probe() argument
1634 cpcap = devm_kzalloc(component->dev, sizeof(*cpcap), GFP_KERNEL); in cpcap_soc_probe()
1637 snd_soc_component_set_drvdata(component, cpcap); in cpcap_soc_probe()
1638 cpcap->component = component; in cpcap_soc_probe()
1640 cpcap->regmap = dev_get_regmap(component->dev->parent, NULL); in cpcap_soc_probe()
1643 snd_soc_component_init_regmap(component, cpcap->regmap); in cpcap_soc_probe()
1645 err = cpcap_get_vendor(component->dev, cpcap->regmap, &cpcap->vendor); in cpcap_soc_probe()
1649 return cpcap_audio_reset(component, false); in cpcap_soc_probe()