| /sound/soc/codecs/ |
| A D | wcd-clsh-v2.c | 122 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block() local 179 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_buck_ctrl() local 228 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_flyback_ctrl() local 248 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_set_gain_path() local 350 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_set_hph_mode() local 512 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_lo() local 571 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_hph_r() local 661 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_hph_l() local 745 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_state_ear() local 849 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_ctrl_set_state() local [all …]
|
| A D | wcd9335.c | 2197 wcd->comp_enabled[comp] = value; in wcd9335_set_compander() 2202 switch (comp) { in wcd9335_set_compander() 2808 snd_soc_component_write(comp, in wcd9335_codec_enable_dec() 2810 snd_soc_component_write(comp, in wcd9335_codec_enable_dec() 2812 snd_soc_component_write(comp, in wcd9335_codec_enable_dec() 2814 snd_soc_component_write(comp, in wcd9335_codec_enable_dec() 3180 int comp; in wcd9335_config_compander() local 3187 comp = interp_n - 1; in wcd9335_config_compander() 3188 if (!wcd->comp_enabled[comp]) in wcd9335_config_compander() 3695 if ((snd_soc_component_read(comp, in wcd9335_codec_enable_hphl_pa() [all …]
|
| A D | wcd934x.c | 1686 snd_soc_component_update_bits(comp, in wcd934x_set_decimator_rate() 3069 wcd934x_mbhc_deinit(comp); in wcd934x_comp_remove() 3228 wcd->comp_enabled[comp] = value; in wcd934x_compander_set() 3233 switch (comp) { in wcd934x_compander_set() 3424 struct snd_soc_component *comp; in wcd934x_dec_enum_put() local 4374 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain() 4378 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain() 4662 if ((snd_soc_component_read(comp, in wcd934x_codec_enable_hphr_pa() 4754 dev_err(comp->dev, in wcd934x_get_dmic_clk_val() 4781 dev_err(comp->dev, in wcd934x_get_dmic_clk_val() [all …]
|
| A D | rt9120.c | 114 snd_soc_component_write(comp, RT9120_REG_ERRRPT, 0); in internal_power_event() 163 snd_soc_component_init_regmap(comp, data->regmap); in rt9120_codec_probe() 165 pm_runtime_get_sync(comp->dev); in rt9120_codec_probe() 174 pm_runtime_mark_last_busy(comp->dev); in rt9120_codec_probe() 175 pm_runtime_put(comp->dev); in rt9120_codec_probe() 182 return pm_runtime_force_suspend(comp->dev); in rt9120_codec_suspend() 187 return pm_runtime_force_resume(comp->dev); in rt9120_codec_resume() 205 struct snd_soc_component *comp = dai->component; in rt9120_set_fmt() local 229 snd_soc_component_update_bits(comp, RT9120_REG_I2SFMT, in rt9120_set_fmt() 239 struct snd_soc_component *comp = dai->component; in rt9120_hw_params() local [all …]
|
| A D | pcm3060.c | 19 struct snd_soc_component *comp = dai->component; in pcm3060_set_sysclk() local 20 struct pcm3060_priv *priv = snd_soc_component_get_drvdata(comp); in pcm3060_set_sysclk() 25 dev_err(comp->dev, "unsupported sysclock dir: %d\n", dir); in pcm3060_set_sysclk() 43 dev_err(comp->dev, "unsupported sysclock id: %d\n", clk_id); in pcm3060_set_sysclk() 61 struct snd_soc_component *comp = dai->component; in pcm3060_set_fmt() local 67 dev_err(comp->dev, "unsupported DAI polarity: 0x%x\n", fmt); in pcm3060_set_fmt() 79 dev_err(comp->dev, "unsupported DAI mode: 0x%x\n", fmt); in pcm3060_set_fmt() 94 dev_err(comp->dev, "unsupported DAI format: 0x%x\n", fmt); in pcm3060_set_fmt() 112 struct snd_soc_component *comp = dai->component; in pcm3060_hw_params() local 126 dev_err(comp->dev, "rate is not configured\n"); in pcm3060_hw_params() [all …]
|
| A D | rt9123.c | 57 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in rt9123_enable_event() local 58 struct device *dev = comp->dev; in rt9123_enable_event() 110 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); in rt9123_kcontrol_name_comp() local 113 if (comp && comp->name_prefix) in rt9123_kcontrol_name_comp() 114 kctlname += strlen(comp->name_prefix) + 1; in rt9123_kcontrol_name_comp() 121 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); in rt9123_xhandler_get() local 122 struct device *dev = comp->dev; in rt9123_xhandler_get() 148 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); in rt9123_xhandler_put() local 149 struct device *dev = comp->dev; in rt9123_xhandler_put() 206 struct snd_soc_component *comp = dai->component; in rt9123_dai_set_tdm_slot() local [all …]
|
| A D | wsa881x.c | 733 snd_soc_component_init_regmap(comp, wsa881x->regmap); in wsa881x_component_probe() 748 ret = pm_runtime_resume_and_get(comp->dev); in wsa881x_put_pa_gain() 768 ret = snd_soc_component_update_bits(comp, in wsa881x_put_pa_gain() 773 dev_err(comp->dev, "Failed to change PA gain"); in wsa881x_put_pa_gain() 778 pm_runtime_put_autosuspend(comp->dev); in wsa881x_put_pa_gain() 888 snd_soc_component_update_bits(comp, in wsa881x_visense_txfe_ctrl() 932 wsa881x_visense_txfe_ctrl(comp, true); in wsa881x_spkr_pa_event() 933 snd_soc_component_update_bits(comp, in wsa881x_spkr_pa_event() 936 wsa881x_visense_adc_ctrl(comp, true); in wsa881x_spkr_pa_event() 942 wsa881x_visense_adc_ctrl(comp, false); in wsa881x_spkr_pa_event() [all …]
|
| A D | rtq9128.c | 293 dev_dbg(comp->dev, "%s: %s event %d\n", __func__, w->name, event); in rtq9128_dac_power_event() 388 static int rtq9128_component_probe(struct snd_soc_component *comp) in rtq9128_component_probe() argument 395 ret = pm_runtime_resume_and_get(comp->dev); in rtq9128_component_probe() 397 dev_err(comp->dev, "Failed to resume device (%d)\n", ret); in rtq9128_component_probe() 401 val = snd_soc_component_read(comp, RTQ9128_REG_EFUSE_DATA); in rtq9128_component_probe() 419 ret = snd_soc_component_write(comp, curr->reg, curr->val); in rtq9128_component_probe() 424 pm_runtime_mark_last_busy(comp->dev); in rtq9128_component_probe() 425 pm_runtime_put(comp->dev); in rtq9128_component_probe() 465 struct snd_soc_component *comp = dai->component; in rtq9128_dai_set_tdm_slot() local 532 struct snd_soc_component *comp = dai->component; in rtq9128_dai_hw_params() local [all …]
|
| A D | rtq9124.c | 65 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in rtq9124_enable_event() local 83 snd_soc_component_write(comp, RTQ9124_REG_ERR_INT_0 + i, 0xffff); in rtq9124_enable_event() 141 static int rtq9124_comp_probe(struct snd_soc_component *comp) in rtq9124_comp_probe() argument 147 snd_soc_component_write(comp, RTQ9124_REG_DCR_TH, 0x5e30); in rtq9124_comp_probe() 148 snd_soc_component_write(comp, RTQ9124_REG_ERR_TH, 0x3ff); in rtq9124_comp_probe() 149 snd_soc_component_write(comp, RTQ9124_REG_PROT_EN, 0x3fc); in rtq9124_comp_probe() 150 snd_soc_component_write(comp, RTQ9124_REG_ERR_MASK6, 0); in rtq9124_comp_probe() 179 struct snd_soc_component *comp = dai->component; in rtq9124_dai_set_tdm_slot() local 204 snd_soc_component_write(comp, RTQ9124_REG_TDM_TX_CH0 + i, byte_loc); in rtq9124_dai_set_tdm_slot() 209 snd_soc_component_write(comp, RTQ9124_REG_TDM_RX_CH0, byte_loc); in rtq9124_dai_set_tdm_slot() [all …]
|
| A D | rt9123p.c | 31 struct snd_soc_component *comp = dai->component; in rt9123p_daiops_trigger() local 32 struct rt9123p_priv *rt9123p = snd_soc_component_get_drvdata(comp); in rt9123p_daiops_trigger() 44 dev_dbg(comp->dev, "set enable to 1"); in rt9123p_daiops_trigger() 51 dev_dbg(comp->dev, "set enable to 0"); in rt9123p_daiops_trigger() 63 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in rt9123p_enable_event() local 64 struct rt9123p_priv *rt9123p = snd_soc_component_get_drvdata(comp); in rt9123p_enable_event()
|
| A D | lochnagar-sc.c | 72 struct snd_soc_component *comp = dai->component; in lochnagar_sc_startup() local 73 struct lochnagar_sc_priv *priv = snd_soc_component_get_drvdata(comp); in lochnagar_sc_startup() 91 struct snd_soc_component *comp = dai->component; in lochnagar_sc_line_startup() local 92 struct lochnagar_sc_priv *priv = snd_soc_component_get_drvdata(comp); in lochnagar_sc_line_startup() 113 struct snd_soc_component *comp = dai->component; in lochnagar_sc_line_shutdown() local 114 struct lochnagar_sc_priv *priv = snd_soc_component_get_drvdata(comp); in lochnagar_sc_line_shutdown()
|
| A D | max98090.c | 1782 { .freq = 2, .comp = { 7, 8, 3, 3, 3, 3 } }, 1783 { .freq = 1, .comp = { 7, 8, 2, 2, 2, 2 } }, 1784 { .freq = 0, .comp = { 7, 8, 3, 3, 3, 3 } }, 1785 { .freq = 0, .comp = { 7, 8, 6, 6, 6, 6 } }, 1786 { .freq = 0, .comp = { 7, 8, 3, 3, 3, 3 } }, 1787 { .freq = 0, .comp = { 7, 8, 3, 3, 3, 3 } }, 1793 { .freq = 2, .comp = { 7, 8, 3, 3, 3, 3 } }, 1794 { .freq = 1, .comp = { 7, 8, 2, 2, 2, 2 } }, 1795 { .freq = 0, .comp = { 7, 8, 3, 3, 3, 3 } }, 1796 { .freq = 0, .comp = { 7, 8, 5, 5, 6, 6 } }, [all …]
|
| /sound/hda/codecs/side-codecs/ |
| A D | hda_component.c | 21 struct hda_component *comp; in hda_component_acpi_device_notify() local 27 if (comp->dev && comp->acpi_notify) in hda_component_acpi_device_notify() 28 comp->acpi_notify(acpi_device_handle(comp->adev), event, comp->dev); in hda_component_acpi_device_notify() 40 struct hda_component *comp; in hda_component_manager_bind_acpi_notifications() local 89 struct hda_component *comp; in hda_component_manager_playback_hook() local 95 if (comp->dev && comp->pre_playback_hook) in hda_component_manager_playback_hook() 96 comp->pre_playback_hook(comp->dev, action); in hda_component_manager_playback_hook() 100 if (comp->dev && comp->playback_hook) in hda_component_manager_playback_hook() 101 comp->playback_hook(comp->dev, action); in hda_component_manager_playback_hook() 105 if (comp->dev && comp->post_playback_hook) in hda_component_manager_playback_hook() [all …]
|
| A D | tas2781_hda_i2c.c | 522 struct hda_component *comp; in tas2781_hda_bind() local 528 if (!comp) in tas2781_hda_bind() 531 if (comp->dev) in tas2781_hda_bind() 548 comp->dev = dev; in tas2781_hda_bind() 550 strscpy(comp->name, dev_name(dev), sizeof(comp->name)); in tas2781_hda_bind() 554 comp->playback_hook = tas2781_hda_playback_hook; in tas2781_hda_bind() 566 struct hda_component *comp; in tas2781_hda_unbind() local 569 if (comp && (comp->dev == dev)) { in tas2781_hda_unbind() 570 comp->dev = NULL; in tas2781_hda_unbind() 571 memset(comp->name, 0, sizeof(comp->name)); in tas2781_hda_unbind() [all …]
|
| /sound/soc/intel/avs/ |
| A D | topology.c | 424 parse_dictionary_header(struct snd_soc_component *comp, in parse_dictionary_header() argument 923 mach = dev_get_platdata(comp->card->dev); in assign_copier_gtw_instance() 957 assign_copier_gtw_instance(comp, cfg); in avs_tplg_parse_modcfg_ext() 1216 ret = avs_parse_tokens(comp, module, module_parsers, in avs_tplg_module_create() 1348 dev_err(comp->dev, "parse module failed: %ld\n", in avs_tplg_pipeline_create() 1435 dev_err(comp->dev, "parse pipeline failed: %ld\n", in avs_tplg_path_create() 1664 mach = dev_get_platdata(comp->card->dev); in avs_widget_load() 1862 ret = avs_tplg_parse_pplcfgs(comp, tuples, offset); in avs_manifest() 2000 tplg->comp = comp; in avs_tplg_new() 2011 ret = request_firmware(&fw, filename, comp->dev); in avs_load_topology() [all …]
|
| /sound/soc/tegra/ |
| A D | tegra210_dmic.c | 164 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_get_boost_gain() 175 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_put_boost_gain() 190 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_get_ch_select() 201 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_put_ch_select() 216 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_get_mono_to_stereo() 227 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_put_mono_to_stereo() 242 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_get_stereo_to_mono() 253 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_put_stereo_to_mono() 268 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_get_osr_val() 279 struct tegra210_dmic *dmic = snd_soc_component_get_drvdata(comp); in tegra210_dmic_put_osr_val() [all …]
|
| /sound/soc/fsl/ |
| A D | fsl_audmix.c | 90 struct fsl_audmix *priv = snd_soc_component_get_drvdata(comp); in fsl_audmix_state_trans() 93 dev_dbg(comp->dev, "%s", prm.msg); in fsl_audmix_state_trans() 114 struct snd_soc_component *comp = snd_kcontrol_chip(kcontrol); in fsl_audmix_put_mix_clk_src() local 115 struct fsl_audmix *priv = snd_soc_component_get_drvdata(comp); in fsl_audmix_put_mix_clk_src() 121 reg_val = snd_soc_component_read(comp, FSL_AUDMIX_CTR); in fsl_audmix_put_mix_clk_src() 133 dev_err(comp->dev, in fsl_audmix_put_mix_clk_src() 140 dev_err(comp->dev, in fsl_audmix_put_mix_clk_src() 152 struct snd_soc_component *comp = snd_kcontrol_chip(kcontrol); in fsl_audmix_put_out_src() local 161 reg_val = snd_soc_component_read(comp, FSL_AUDMIX_CTR); in fsl_audmix_put_out_src() 182 dev_err(comp->dev, in fsl_audmix_put_out_src() [all …]
|
| A D | p1022_rdk.c | 218 struct snd_soc_dai_link_component *comp; in p1022_rdk_probe() local 235 comp = devm_kzalloc(&pdev->dev, 6 * sizeof(*comp), GFP_KERNEL); in p1022_rdk_probe() 236 if (!comp) { in p1022_rdk_probe() 241 mdata->dai[0].cpus = &comp[0]; in p1022_rdk_probe() 242 mdata->dai[0].codecs = &comp[1]; in p1022_rdk_probe() 243 mdata->dai[0].platforms = &comp[2]; in p1022_rdk_probe() 249 mdata->dai[1].cpus = &comp[3]; in p1022_rdk_probe() 250 mdata->dai[1].codecs = &comp[4]; in p1022_rdk_probe() 251 mdata->dai[1].platforms = &comp[5]; in p1022_rdk_probe()
|
| A D | imx-sgtl5000.c | 58 struct snd_soc_dai_link_component *comp; in imx_sgtl5000_probe() local 126 comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); in imx_sgtl5000_probe() 127 if (!comp) { in imx_sgtl5000_probe() 140 data->dai.cpus = &comp[0]; in imx_sgtl5000_probe() 141 data->dai.codecs = &comp[1]; in imx_sgtl5000_probe() 142 data->dai.platforms = &comp[2]; in imx_sgtl5000_probe()
|
| A D | p1022_ds.c | 202 struct snd_soc_dai_link_component *comp; in p1022_ds_probe() local 220 comp = devm_kzalloc(&pdev->dev, 6 * sizeof(*comp), GFP_KERNEL); in p1022_ds_probe() 221 if (!comp) { in p1022_ds_probe() 226 mdata->dai[0].cpus = &comp[0]; in p1022_ds_probe() 227 mdata->dai[0].codecs = &comp[1]; in p1022_ds_probe() 228 mdata->dai[0].platforms = &comp[2]; in p1022_ds_probe() 234 mdata->dai[1].cpus = &comp[3]; in p1022_ds_probe() 235 mdata->dai[1].codecs = &comp[4]; in p1022_ds_probe() 236 mdata->dai[1].platforms = &comp[5]; in p1022_ds_probe()
|
| A D | imx-es8328.c | 92 struct snd_soc_dai_link_component *comp; in imx_es8328_probe() local 167 comp = devm_kzalloc(dev, 2 * sizeof(*comp), GFP_KERNEL); in imx_es8328_probe() 168 if (!comp) { in imx_es8328_probe() 186 data->dai.platforms = &comp[0]; in imx_es8328_probe() 187 data->dai.codecs = &comp[1]; in imx_es8328_probe()
|
| /sound/soc/ |
| A D | soc-topology-test.c | 48 struct snd_soc_component comp; member 56 container_of(component, struct kunit_soc_component, comp); in d_probe() 69 container_of(component, struct kunit_soc_component, comp); in d_remove() 260 ret = snd_soc_add_component(&kunit_comp->comp, NULL, 0); in snd_soc_tplg_test_load_with_null_comp() 302 ret = snd_soc_add_component(&kunit_comp->comp, NULL, 0); in snd_soc_tplg_test_load_with_null_ops() 364 ret = snd_soc_add_component(&kunit_comp->comp, NULL, 0); in snd_soc_tplg_test_load_with_null_fw() 412 ret = snd_soc_add_component(&kunit_comp->comp, NULL, 0); in snd_soc_tplg_test_load_empty_tplg() 467 ret = snd_soc_add_component(&kunit_comp->comp, NULL, 0); in snd_soc_tplg_test_load_empty_tplg_bad_magic() 522 ret = snd_soc_add_component(&kunit_comp->comp, NULL, 0); in snd_soc_tplg_test_load_empty_tplg_bad_abi() 577 ret = snd_soc_add_component(&kunit_comp->comp, NULL, 0); in snd_soc_tplg_test_load_empty_tplg_bad_size() [all …]
|
| A D | soc-topology.c | 64 struct snd_soc_component *comp; member 338 struct snd_soc_component *comp = tplg->comp; in soc_tplg_add_kcontrol() local 341 tplg->dev, k, comp->name_prefix, comp, kcontrol); in soc_tplg_add_kcontrol() 354 dobj->unload(comp, dobj); in soc_tplg_remove_kcontrol() 368 dobj->unload(comp, dobj); in soc_tplg_remove_route() 386 dobj->unload(comp, dobj); in soc_tplg_remove_widget() 409 dobj->unload(comp, dobj); in soc_tplg_remove_dai() 429 dobj->unload(comp, dobj); in soc_tplg_remove_link() 447 dobj->unload(comp, dobj); in remove_backend_link() 2135 if (!comp || !comp->card || !comp->card->dev || !fw) in snd_soc_tplg_component_load() [all …]
|
| /sound/soc/atmel/ |
| A D | mikroe-proto.c | 66 struct snd_soc_dai_link_component *comp; in snd_proto_probe() local 89 comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); in snd_proto_probe() 90 if (!comp) in snd_proto_probe() 96 dai->cpus = &comp[0]; in snd_proto_probe() 98 dai->codecs = &comp[1]; in snd_proto_probe() 100 dai->platforms = &comp[2]; in snd_proto_probe()
|
| A D | sam9x5_wm8731.c | 80 struct snd_soc_dai_link_component *comp; in sam9x5_wm8731_driver_probe() local 91 comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); in sam9x5_wm8731_driver_probe() 92 if (!dai || !card || !priv || !comp) { in sam9x5_wm8731_driver_probe() 106 dai->cpus = &comp[0]; in sam9x5_wm8731_driver_probe() 108 dai->codecs = &comp[1]; in sam9x5_wm8731_driver_probe() 110 dai->platforms = &comp[2]; in sam9x5_wm8731_driver_probe()
|