/sound/soc/codecs/ |
D | ak4641.c | 419 struct ak4641_platform_data *pdata = component->dev->platform_data; in ak4641_set_bias_level() local 433 if (pdata && gpio_is_valid(pdata->gpio_power)) in ak4641_set_bias_level() 434 gpio_set_value(pdata->gpio_power, 1); in ak4641_set_bias_level() 436 if (pdata && gpio_is_valid(pdata->gpio_npdn)) in ak4641_set_bias_level() 437 gpio_set_value(pdata->gpio_npdn, 1); in ak4641_set_bias_level() 452 if (pdata && gpio_is_valid(pdata->gpio_npdn)) in ak4641_set_bias_level() 453 gpio_set_value(pdata->gpio_npdn, 0); in ak4641_set_bias_level() 454 if (pdata && gpio_is_valid(pdata->gpio_power)) in ak4641_set_bias_level() 455 gpio_set_value(pdata->gpio_power, 0); in ak4641_set_bias_level() 552 struct ak4641_platform_data *pdata = i2c->dev.platform_data; in ak4641_i2c_probe() local [all …]
|
D | cs35l32.c | 45 struct cs35l32_platform_data pdata; member 270 struct cs35l32_platform_data *pdata) in cs35l32_handle_of_data() argument 276 pdata->sdout_share = val; in cs35l32_handle_of_data() 286 pdata->boost_mng = val; in cs35l32_handle_of_data() 292 pdata->boost_mng = CS35L32_BOOST_MGR_BYPASS; in cs35l32_handle_of_data() 302 pdata->sdout_datacfg = val; in cs35l32_handle_of_data() 308 pdata->sdout_datacfg = CS35L32_DATA_CFG_LR; in cs35l32_handle_of_data() 318 pdata->batt_thresh = val; in cs35l32_handle_of_data() 324 pdata->batt_thresh = CS35L32_BATT_THRESH_3_3V; in cs35l32_handle_of_data() 336 pdata->batt_recov = val; in cs35l32_handle_of_data() [all …]
|
D | sta350.c | 165 struct sta350_platform_data *pdata; member 910 struct sta350_platform_data *pdata = sta350->pdata; in sta350_probe() local 927 if (!pdata->thermal_warning_recovery) in sta350_probe() 929 if (!pdata->thermal_warning_adjustment) in sta350_probe() 931 if (!pdata->fault_detect_recovery) in sta350_probe() 941 pdata->ffx_power_output_mode in sta350_probe() 945 pdata->drop_compensation_ns in sta350_probe() 950 pdata->oc_warning_adjustment ? in sta350_probe() 956 pdata->max_power_use_mpcc ? in sta350_probe() 960 pdata->max_power_correction ? in sta350_probe() [all …]
|
D | arizona-jack.c | 224 if (!arizona->pdata.micd_force_micbias) { in arizona_extcon_pulse_micbias() 263 if (info->detecting && arizona->pdata.micd_software_compare) in arizona_start_mic() 465 int id_gpio = arizona->pdata.hpdet_id_gpio; in arizona_hpdet_do_id() 467 if (!arizona->pdata.hpdet_acc_id) in arizona_hpdet_do_id() 533 int id_gpio = arizona->pdata.hpdet_id_gpio; in arizona_hpdet_irq() 633 arizona->pdata.hpdet_channel); in arizona_identify_headphone() 682 arizona->pdata.hpdet_channel); in arizona_start_hpdet_acc_id() 688 if (arizona->pdata.hpdet_acc_id_line) { in arizona_start_hpdet_acc_id() 798 if (info->detecting && arizona->pdata.micd_software_compare) in arizona_micdet_reading() 854 if (arizona->pdata.micd_software_compare) in arizona_micdet_reading() [all …]
|
D | sta32x.c | 142 struct sta32x_platform_data *pdata; member 414 if (sta32x->pdata->needs_esd_watchdog) { in sta32x_watchdog_start() 424 if (sta32x->pdata->needs_esd_watchdog) { in sta32x_watchdog_stop() 875 struct sta32x_platform_data *pdata = sta32x->pdata; in sta32x_probe() local 903 if (!pdata->thermal_warning_recovery) in sta32x_probe() 905 if (!pdata->thermal_warning_adjustment) in sta32x_probe() 907 if (!pdata->fault_detect_recovery) in sta32x_probe() 917 pdata->drop_compensation_ns in sta32x_probe() 923 pdata->max_power_use_mpcc ? in sta32x_probe() 927 pdata->max_power_correction ? in sta32x_probe() [all …]
|
D | cs35l35.c | 173 if (cs35l35->pdata.ext_bst) { in cs35l35_wait_for_pdn() 246 if (cs35l35->pdata.bst_pdn_fet_on) in cs35l35_main_amp_event() 276 if (cs35l35->pdata.bst_pdn_fet_on) in cs35l35_main_amp_event() 295 cs35l35->pdata.bst_vctl in cs35l35_main_amp_event() 471 struct classh_cfg *classh = &cs35l35->pdata.classh_algo; in cs35l35_hw_params() 539 if (cs35l35->pdata.stereo) { in cs35l35_hw_params() 836 struct classh_cfg *classh = &cs35l35->pdata.classh_algo; in cs35l35_component_probe() 837 struct monitor_cfg *monitor_config = &cs35l35->pdata.mon_cfg; in cs35l35_component_probe() 841 if (cs35l35->pdata.bst_vctl) in cs35l35_component_probe() 844 cs35l35->pdata.bst_vctl); in cs35l35_component_probe() [all …]
|
D | cs42l56.c | 46 struct cs42l56_platform_data pdata; member 1132 struct cs42l56_platform_data *pdata) in cs42l56_handle_of_data() argument 1138 pdata->ain1a_ref_cfg = true; in cs42l56_handle_of_data() 1141 pdata->ain2a_ref_cfg = true; in cs42l56_handle_of_data() 1144 pdata->ain1b_ref_cfg = true; in cs42l56_handle_of_data() 1147 pdata->ain2b_ref_cfg = true; in cs42l56_handle_of_data() 1150 pdata->micbias_lvl = val32; in cs42l56_handle_of_data() 1153 pdata->chgfreq = val32; in cs42l56_handle_of_data() 1156 pdata->adaptive_pwr = val32; in cs42l56_handle_of_data() 1159 pdata->hpfa_freq = val32; in cs42l56_handle_of_data() [all …]
|
D | cs35l36.c | 50 struct cs35l36_platform_data pdata; member 566 if (!cs35l36->pdata.extern_boost) in cs35l36_boost_event() 573 if (!cs35l36->pdata.extern_boost) in cs35l36_boost_event() 1162 if ((cs35l36->rev_id == CS35L36_REV_A0) && cs35l36->pdata.dcm_mode) { in cs35l36_component_probe() 1185 if (cs35l36->pdata.amp_pcm_inv) in cs35l36_component_probe() 1190 if (cs35l36->pdata.multi_amp_mode) in cs35l36_component_probe() 1195 if (cs35l36->pdata.imon_pol_inv) in cs35l36_component_probe() 1199 if (cs35l36->pdata.vmon_pol_inv) in cs35l36_component_probe() 1203 if (cs35l36->pdata.bst_vctl) in cs35l36_component_probe() 1206 cs35l36->pdata.bst_vctl); in cs35l36_component_probe() [all …]
|
D | cs35l34.c | 42 struct cs35l34_platform_data pdata; member 346 CS35L34_BST_CVTL_MASK, priv->pdata.boost_vtge); in cs35l34_main_amp_event() 735 if (cs35l34->pdata.boost_peak) in cs35l34_probe() 738 cs35l34->pdata.boost_peak); in cs35l34_probe() 740 if (cs35l34->pdata.gain_zc_disable) in cs35l34_probe() 747 if (cs35l34->pdata.aif_half_drv) in cs35l34_probe() 751 if (cs35l34->pdata.digsft_disable) in cs35l34_probe() 755 if (cs35l34->pdata.amp_inv) in cs35l34_probe() 759 if (cs35l34->pdata.boost_ind) in cs35l34_probe() 760 ret = cs35l34_boost_inductor(cs35l34, cs35l34->pdata.boost_ind); in cs35l34_probe() [all …]
|
D | wm8958-dsp2.c | 206 if (control->pdata.num_mbc_cfgs) { in wm8958_dsp_start_mbc() 208 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_mbc() 245 if (control->pdata.num_mbc_cfgs) { in wm8958_dsp_start_vss() 247 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_vss() 254 if (control->pdata.num_vss_cfgs) { in wm8958_dsp_start_vss() 256 = &control->pdata.vss_cfgs[wm8994->vss_cfg]; in wm8958_dsp_start_vss() 262 if (control->pdata.num_vss_hpf_cfgs) { in wm8958_dsp_start_vss() 264 = &control->pdata.vss_hpf_cfgs[wm8994->vss_hpf_cfg]; in wm8958_dsp_start_vss() 305 if (control->pdata.num_enh_eq_cfgs) { in wm8958_dsp_start_enh_eq() 307 = &control->pdata.enh_eq_cfgs[wm8994->enh_eq_cfg]; in wm8958_dsp_start_enh_eq() [all …]
|
D | cs42l52.c | 44 struct cs42l52_platform_data pdata; member 477 struct cs42l52_platform_data *pdata = &cs42l52->pdata; in cs42l52_add_mic_controls() local 479 if (!pdata->mica_diff_cfg) in cs42l52_add_mic_controls() 483 if (!pdata->micb_diff_cfg) in cs42l52_add_mic_controls() 1093 struct cs42l52_platform_data *pdata = dev_get_platdata(&i2c_client->dev); in cs42l52_i2c_probe() local 1110 if (pdata) { in cs42l52_i2c_probe() 1111 cs42l52->pdata = *pdata; in cs42l52_i2c_probe() 1113 pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), in cs42l52_i2c_probe() 1115 if (!pdata) in cs42l52_i2c_probe() 1121 pdata->mica_diff_cfg = true; in cs42l52_i2c_probe() [all …]
|
/sound/soc/samsung/ |
D | s3c24xx_simtec.c | 16 static struct s3c24xx_audio_simtec_pdata *pdata; variable 42 gpio_set_value_cansleep(pdata->amp_gain[0], value & 1); in speaker_gain_set() 43 gpio_set_value_cansleep(pdata->amp_gain[1], value >> 1); in speaker_gain_set() 85 gpio_set_value(pdata->amp_gpio, to); in spk_unmute_state() 88 if (to && pdata->amp_gain[0] > 0) in spk_unmute_state() 134 if (pdata->amp_gpio > 0) { in simtec_audio_init() 141 if (pdata->amp_gain[0] > 0) { in simtec_audio_init() 174 if (pdata->use_mpllin) { in simtec_hw_params() 185 if (pdata->output_cdclk) { in simtec_hw_params() 232 if (pdata->amp_gain[0] > 0) { in attach_gpio_amp() [all …]
|
/sound/soc/ti/ |
D | omap-twl4030.c | 150 struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev); in omap_twl4030_init() local 176 if (!pdata || !pdata->custom_routing) in omap_twl4030_init() 180 twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); in omap_twl4030_init() 181 twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); in omap_twl4030_init() 182 twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); in omap_twl4030_init() 183 twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); in omap_twl4030_init() 184 twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); in omap_twl4030_init() 186 twl4030_disconnect_pin(dapm, pdata->has_mainmic, "Main Mic"); in omap_twl4030_init() 187 twl4030_disconnect_pin(dapm, pdata->has_submic, "Sub Mic"); in omap_twl4030_init() 188 twl4030_disconnect_pin(dapm, pdata->has_hsmic, "Headset Mic"); in omap_twl4030_init() [all …]
|
D | rx51.c | 48 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_ext_control() local 83 gpiod_set_value(pdata->tvout_selection_gpio, tvout); in rx51_ext_control() 145 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_spk_event() local 147 gpiod_set_raw_value_cansleep(pdata->speaker_amp_gpio, in rx51_spk_event() 266 struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); in rx51_aic34_init() local 287 rx51_av_jack_gpios[0].gpio = desc_to_gpio(pdata->jack_detection_gpio); in rx51_aic34_init() 288 devm_gpiod_put(card->dev, pdata->jack_detection_gpio); in rx51_aic34_init() 362 struct rx51_audio_pdata *pdata; in rx51_soc_probe() local 414 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in rx51_soc_probe() 415 if (pdata == NULL) in rx51_soc_probe() [all …]
|
D | omap-mcbsp.c | 194 if (mcbsp->pdata->has_ccr) { in omap_mcbsp_config() 199 if (mcbsp->pdata->has_wakeup) in omap_mcbsp_config() 222 if (mcbsp->pdata->reg_size == 2) in omap_mcbsp_dma_reg_params() 227 if (mcbsp->pdata->reg_size == 2) in omap_mcbsp_dma_reg_params() 233 return mcbsp->phys_dma_base + data_reg * mcbsp->pdata->reg_step; in omap_mcbsp_dma_reg_params() 269 return mcbsp->pdata->buffer_size - buffstat; in omap_mcbsp_get_tx_delay() 312 if(mcbsp->pdata->ops && mcbsp->pdata->ops->request) in omap_mcbsp_request() 313 mcbsp->pdata->ops->request(mcbsp->id - 1); in omap_mcbsp_request() 349 if(mcbsp->pdata->ops && mcbsp->pdata->ops->free) in omap_mcbsp_request() 350 mcbsp->pdata->ops->free(mcbsp->id - 1); in omap_mcbsp_request() [all …]
|
/sound/soc/fsl/ |
D | pcm030-audio-fabric.c | 61 struct pcm030_audio_data *pdata; in pcm030_fabric_probe() local 69 pdata = devm_kzalloc(&op->dev, sizeof(struct pcm030_audio_data), in pcm030_fabric_probe() 71 if (!pdata) in pcm030_fabric_probe() 76 pdata->card = card; in pcm030_fabric_probe() 91 pdata->codec_device = platform_device_alloc("wm9712-codec", -1); in pcm030_fabric_probe() 92 if (!pdata->codec_device) in pcm030_fabric_probe() 95 ret = platform_device_add(pdata->codec_device); in pcm030_fabric_probe() 98 platform_device_put(pdata->codec_device); in pcm030_fabric_probe() 104 platform_device_unregister(pdata->codec_device); in pcm030_fabric_probe() 107 platform_set_drvdata(op, pdata); in pcm030_fabric_probe() [all …]
|
/sound/soc/intel/atom/sst/ |
D | sst_acpi.c | 157 ctx->pdata->res_info->acpi_lpe_res_index); in sst_platform_get_resources() 165 ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset; in sst_platform_get_resources() 166 ctx->iram_end = ctx->iram_base + ctx->pdata->res_info->iram_size - 1; in sst_platform_get_resources() 169 ctx->pdata->res_info->iram_size); in sst_platform_get_resources() 175 ctx->dram_base = rsrc->start + ctx->pdata->res_info->dram_offset; in sst_platform_get_resources() 176 ctx->dram_end = ctx->dram_base + ctx->pdata->res_info->dram_size - 1; in sst_platform_get_resources() 179 ctx->pdata->res_info->dram_size); in sst_platform_get_resources() 185 ctx->shim_phy_add = rsrc->start + ctx->pdata->res_info->shim_offset; in sst_platform_get_resources() 188 ctx->pdata->res_info->shim_size); in sst_platform_get_resources() 195 ctx->shim_phy_add = ctx->pdata->res_info->shim_phy_addr; in sst_platform_get_resources() [all …]
|
/sound/soc/atmel/ |
D | atmel-classd.c | 34 const struct atmel_classd_pdata *pdata; member 50 struct atmel_classd_pdata *pdata; in atmel_classd_dt_init() local 59 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in atmel_classd_dt_init() 60 if (!pdata) in atmel_classd_dt_init() 65 pdata->pwm_type = CLASSD_MR_PWMTYP_DIFF; in atmel_classd_dt_init() 67 pdata->pwm_type = CLASSD_MR_PWMTYP_SINGLE; in atmel_classd_dt_init() 70 "atmel,non-overlap-time", &pdata->non_overlap_time); in atmel_classd_dt_init() 72 pdata->non_overlap_enable = false; in atmel_classd_dt_init() 74 pdata->non_overlap_enable = true; in atmel_classd_dt_init() 76 ret = of_property_read_string(np, "atmel,model", &pdata->card_name); in atmel_classd_dt_init() [all …]
|
D | atmel-pdmic.c | 35 const struct atmel_pdmic_pdata *pdata; member 53 struct atmel_pdmic_pdata *pdata; in atmel_pdmic_dt_init() local 60 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in atmel_pdmic_dt_init() 61 if (!pdata) in atmel_pdmic_dt_init() 64 if (of_property_read_string(np, "atmel,model", &pdata->card_name)) in atmel_pdmic_dt_init() 65 pdata->card_name = "PDMIC"; in atmel_pdmic_dt_init() 68 &pdata->mic_min_freq)) { in atmel_pdmic_dt_init() 74 &pdata->mic_max_freq)) { in atmel_pdmic_dt_init() 79 if (pdata->mic_max_freq < pdata->mic_min_freq) { in atmel_pdmic_dt_init() 85 if (of_property_read_s32(np, "atmel,mic-offset", &pdata->mic_offset)) in atmel_pdmic_dt_init() [all …]
|
/sound/soc/intel/common/ |
D | soc-acpi-intel-kbl-match.c | 57 .pdata = &skl_dmic_data, 65 .pdata = &skl_dmic_data, 73 .pdata = &skl_dmic_data, 81 .pdata = &skl_dmic_data, 94 .pdata = &skl_dmic_data, 102 .pdata = &skl_dmic_data 120 .pdata = &skl_dmic_data 126 .pdata = &skl_dmic_data
|
/sound/soc/amd/ |
D | acp-config.c | 89 .pdata = (void *)&acp_quirk_data, 98 .pdata = (void *)&acp_quirk_data, 107 .pdata = (void *)&acp_quirk_data, 116 .pdata = (void *)&acp_quirk_data, 125 .pdata = (void *)&acp_quirk_data, 137 .pdata = &acp_quirk_data, 144 .pdata = &acp_quirk_data, 153 .pdata = &acp_quirk_data,
|
/sound/soc/qcom/ |
D | apq8016_sbc.c | 52 struct apq8016_sbc_data *pdata = snd_soc_card_get_drvdata(card); in apq8016_dai_init() local 58 writel(readl(pdata->spkr_iomux) | SPKR_CTL_PRI_WS_SLAVE_SEL_11, in apq8016_dai_init() 59 pdata->spkr_iomux); in apq8016_dai_init() 64 writel(readl(pdata->mic_iomux) | MIC_CTRL_QUA_WS_SLAVE_SEL_10 | in apq8016_dai_init() 66 pdata->mic_iomux); in apq8016_dai_init() 70 value = readl(pdata->spkr_iomux) & in apq8016_dai_init() 75 SPKR_CTL_TLMM_WS_EN_SEL_SEC, pdata->spkr_iomux); in apq8016_dai_init() 78 writel(readl(pdata->mic_iomux) | MIC_CTRL_TER_WS_SLAVE_SEL | in apq8016_dai_init() 80 pdata->mic_iomux); in apq8016_dai_init() 90 if (!pdata->jack_setup) { in apq8016_dai_init() [all …]
|
/sound/arm/ |
D | pxa2xx-ac97-lib.c | 330 pxa2xx_audio_ops_t *pdata = dev->dev.platform_data; in pxa2xx_ac97_hw_probe() local 338 if (pdata) { in pxa2xx_ac97_hw_probe() 339 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe() 342 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe() 351 pdata->reset_gpio); in pxa2xx_ac97_hw_probe() 353 } else if (!pdata && dev->dev.of_node) { in pxa2xx_ac97_hw_probe() 354 pdata = devm_kzalloc(&dev->dev, sizeof(*pdata), GFP_KERNEL); in pxa2xx_ac97_hw_probe() 355 if (!pdata) in pxa2xx_ac97_hw_probe() 357 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe() 359 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe() [all …]
|
/sound/soc/sof/intel/ |
D | hda.c | 172 hdev = sdev->pdata->hw_pdata; in hda_sdw_acpi_scan() 187 hdev = sdev->pdata->hw_pdata; in hda_sdw_probe() 226 struct snd_sof_pdata *pdata = sdev->pdata; in hda_sdw_startup() local 228 hdev = sdev->pdata->hw_pdata; in hda_sdw_startup() 233 if (pdata->machine && !pdata->machine->mach_params.link_mask) in hda_sdw_startup() 243 hdev = sdev->pdata->hw_pdata; in hda_sdw_exit() 260 hdev = sdev->pdata->hw_pdata; in hda_common_check_sdw_irq() 284 chip = get_chip_info(sdev->pdata); in hda_dsp_check_sdw_irq() 300 hdev = sdev->pdata->hw_pdata; in hda_sdw_check_wakeen_irq() 313 hdev = sdev->pdata->hw_pdata; in hda_sdw_process_wakeen() [all …]
|
/sound/soc/qcom/qdsp6/ |
D | q6apm-dai.c | 142 struct q6apm_dai_data *pdata; in q6apm_dai_prepare() local 145 pdata = snd_soc_component_get_drvdata(component); in q6apm_dai_prepare() 146 if (!pdata) in q6apm_dai_prepare() 249 struct q6apm_dai_data *pdata; in q6apm_dai_open() local 255 pdata = snd_soc_component_get_drvdata(component); in q6apm_dai_open() 256 if (!pdata) { in q6apm_dai_open() 309 if (pdata->sid < 0) in q6apm_dai_open() 312 prtd->phys = substream->dma_buffer.addr | (pdata->sid << 32); in q6apm_dai_open() 404 struct q6apm_dai_data *pdata; in q6apm_dai_probe() local 408 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in q6apm_dai_probe() [all …]
|