Home
last modified time | relevance | path

Searched refs:pdata (Results 1 – 25 of 162) sorted by relevance

1234567

/sound/soc/intel/haswell/
Dsst-haswell-pcm.c178 struct hsw_priv_data *pdata = in hsw_stream_volume_put() local
181 struct sst_hsw *hsw = pdata->hsw; in hsw_stream_volume_put()
187 pcm_data = &pdata->pcm[dai][stream]; in hsw_stream_volume_put()
190 pm_runtime_get_sync(pdata->dev); in hsw_stream_volume_put()
197 pm_runtime_mark_last_busy(pdata->dev); in hsw_stream_volume_put()
198 pm_runtime_put_autosuspend(pdata->dev); in hsw_stream_volume_put()
215 pm_runtime_mark_last_busy(pdata->dev); in hsw_stream_volume_put()
216 pm_runtime_put_autosuspend(pdata->dev); in hsw_stream_volume_put()
227 struct hsw_priv_data *pdata = in hsw_stream_volume_get() local
230 struct sst_hsw *hsw = pdata->hsw; in hsw_stream_volume_get()
[all …]
/sound/soc/codecs/
Dak4641.c419 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 …]
Dcs35l32.c44 struct cs35l32_platform_data pdata; member
267 struct cs35l32_platform_data *pdata) in cs35l32_handle_of_data() argument
273 pdata->sdout_share = val; in cs35l32_handle_of_data()
283 pdata->boost_mng = val; in cs35l32_handle_of_data()
289 pdata->boost_mng = CS35L32_BOOST_MGR_BYPASS; in cs35l32_handle_of_data()
299 pdata->sdout_datacfg = val; in cs35l32_handle_of_data()
305 pdata->sdout_datacfg = CS35L32_DATA_CFG_LR; in cs35l32_handle_of_data()
315 pdata->batt_thresh = val; in cs35l32_handle_of_data()
321 pdata->batt_thresh = CS35L32_BATT_THRESH_3_3V; in cs35l32_handle_of_data()
333 pdata->batt_recov = val; in cs35l32_handle_of_data()
[all …]
Dsta350.c168 struct sta350_platform_data *pdata; member
913 struct sta350_platform_data *pdata = sta350->pdata; in sta350_probe() local
930 if (!pdata->thermal_warning_recovery) in sta350_probe()
932 if (!pdata->thermal_warning_adjustment) in sta350_probe()
934 if (!pdata->fault_detect_recovery) in sta350_probe()
944 pdata->ffx_power_output_mode in sta350_probe()
948 pdata->drop_compensation_ns in sta350_probe()
953 pdata->oc_warning_adjustment ? in sta350_probe()
959 pdata->max_power_use_mpcc ? in sta350_probe()
963 pdata->max_power_correction ? in sta350_probe()
[all …]
Dsta32x.c145 struct sta32x_platform_data *pdata; member
417 if (sta32x->pdata->needs_esd_watchdog) { in sta32x_watchdog_start()
427 if (sta32x->pdata->needs_esd_watchdog) { in sta32x_watchdog_stop()
878 struct sta32x_platform_data *pdata = sta32x->pdata; in sta32x_probe() local
906 if (!pdata->thermal_warning_recovery) in sta32x_probe()
908 if (!pdata->thermal_warning_adjustment) in sta32x_probe()
910 if (!pdata->fault_detect_recovery) in sta32x_probe()
920 pdata->drop_compensation_ns in sta32x_probe()
926 pdata->max_power_use_mpcc ? in sta32x_probe()
930 pdata->max_power_correction ? in sta32x_probe()
[all …]
Dcs35l35.c173 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 …]
Dcs42l56.c46 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 …]
Dcs35l36.c50 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 …]
Dcs35l34.c41 struct cs35l34_platform_data pdata; member
345 CS35L34_BST_CVTL_MASK, priv->pdata.boost_vtge); in cs35l34_main_amp_event()
734 if (cs35l34->pdata.boost_peak) in cs35l34_probe()
737 cs35l34->pdata.boost_peak); in cs35l34_probe()
739 if (cs35l34->pdata.gain_zc_disable) in cs35l34_probe()
746 if (cs35l34->pdata.aif_half_drv) in cs35l34_probe()
750 if (cs35l34->pdata.digsft_disable) in cs35l34_probe()
754 if (cs35l34->pdata.amp_inv) in cs35l34_probe()
758 if (cs35l34->pdata.boost_ind) in cs35l34_probe()
759 ret = cs35l34_boost_inductor(cs35l34, cs35l34->pdata.boost_ind); in cs35l34_probe()
[all …]
Dwm8958-dsp2.c210 if (control->pdata.num_mbc_cfgs) { in wm8958_dsp_start_mbc()
212 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_mbc()
249 if (control->pdata.num_mbc_cfgs) { in wm8958_dsp_start_vss()
251 = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; in wm8958_dsp_start_vss()
258 if (control->pdata.num_vss_cfgs) { in wm8958_dsp_start_vss()
260 = &control->pdata.vss_cfgs[wm8994->vss_cfg]; in wm8958_dsp_start_vss()
266 if (control->pdata.num_vss_hpf_cfgs) { in wm8958_dsp_start_vss()
268 = &control->pdata.vss_hpf_cfgs[wm8994->vss_hpf_cfg]; in wm8958_dsp_start_vss()
309 if (control->pdata.num_enh_eq_cfgs) { in wm8958_dsp_start_enh_eq()
311 = &control->pdata.enh_eq_cfgs[wm8994->enh_eq_cfg]; in wm8958_dsp_start_enh_eq()
[all …]
Dcs42l52.c44 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()
1094 struct cs42l52_platform_data *pdata = dev_get_platdata(&i2c_client->dev); in cs42l52_i2c_probe() local
1111 if (pdata) { in cs42l52_i2c_probe()
1112 cs42l52->pdata = *pdata; in cs42l52_i2c_probe()
1114 pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), in cs42l52_i2c_probe()
1116 if (!pdata) in cs42l52_i2c_probe()
1122 pdata->mica_diff_cfg = true; in cs42l52_i2c_probe()
[all …]
Dtwl4030.c61 struct twl4030_codec_data *pdata; member
196 static void twl4030_setup_pdata_of(struct twl4030_codec_data *pdata, in twl4030_setup_pdata_of() argument
202 &pdata->digimic_delay); in twl4030_setup_pdata_of()
204 &pdata->ramp_delay_value); in twl4030_setup_pdata_of()
206 &pdata->offset_cncl_path); in twl4030_setup_pdata_of()
208 pdata->hs_extmute = value; in twl4030_setup_pdata_of()
210 pdata->hs_extmute_gpio = of_get_named_gpio(node, in twl4030_setup_pdata_of()
212 if (gpio_is_valid(pdata->hs_extmute_gpio)) in twl4030_setup_pdata_of()
213 pdata->hs_extmute = 1; in twl4030_setup_pdata_of()
218 struct twl4030_codec_data *pdata = dev_get_platdata(component->dev); in twl4030_get_pdata() local
[all …]
Dwm8903.c125 struct wm8903_platform_data *pdata; member
1852 struct wm8903_platform_data *pdata = wm8903->pdata; in wm8903_init_gpio() local
1859 if (pdata->gpio_base) in wm8903_init_gpio()
1860 wm8903->gpio_chip.base = pdata->gpio_base; in wm8903_init_gpio()
1914 struct wm8903_platform_data *pdata) in wm8903_set_pdata_irq_trigger() argument
1932 pdata->irq_active_low = false; in wm8903_set_pdata_irq_trigger()
1935 pdata->irq_active_low = true; in wm8903_set_pdata_irq_trigger()
1943 struct wm8903_platform_data *pdata) in wm8903_set_pdata_from_of() argument
1950 pdata->micdet_cfg = val32; in wm8903_set_pdata_from_of()
1953 pdata->micdet_delay = val32; in wm8903_set_pdata_from_of()
[all …]
/sound/soc/fsl/
Dpcm030-audio-fabric.c61 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_del(pdata->codec_device); in pcm030_fabric_probe()
105 platform_device_put(pdata->codec_device); in pcm030_fabric_probe()
[all …]
/sound/soc/samsung/
Ds3c24xx_simtec.c16 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()
227 if (pdata->amp_gain[0] > 0) { in attach_gpio_amp()
[all …]
/sound/soc/ti/
Domap-twl4030.c150 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 …]
Drx51.c48 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 …]
Domap-mcbsp.c197 if (mcbsp->pdata->has_ccr) { in omap_mcbsp_config()
202 if (mcbsp->pdata->has_wakeup) in omap_mcbsp_config()
225 if (mcbsp->pdata->reg_size == 2) in omap_mcbsp_dma_reg_params()
230 if (mcbsp->pdata->reg_size == 2) in omap_mcbsp_dma_reg_params()
236 return mcbsp->phys_dma_base + data_reg * mcbsp->pdata->reg_step; in omap_mcbsp_dma_reg_params()
272 return mcbsp->pdata->buffer_size - buffstat; in omap_mcbsp_get_tx_delay()
315 if(mcbsp->pdata->ops && mcbsp->pdata->ops->request) in omap_mcbsp_request()
316 mcbsp->pdata->ops->request(mcbsp->id - 1); in omap_mcbsp_request()
352 if(mcbsp->pdata->ops && mcbsp->pdata->ops->free) in omap_mcbsp_request()
353 mcbsp->pdata->ops->free(mcbsp->id - 1); in omap_mcbsp_request()
[all …]
/sound/soc/intel/atom/sst/
Dsst_acpi.c157 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/
Datmel-classd.c34 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 …]
Datmel-pdmic.c35 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/baytrail/
Dsst-baytrail-pcm.c66 struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); in sst_byt_pcm_hw_params() local
67 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_hw_params()
68 struct sst_byt *byt = pdata->byt; in sst_byt_pcm_hw_params()
138 struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); in sst_byt_pcm_restore_stream_context() local
139 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_restore_stream_context()
140 struct sst_byt *byt = pdata->byt; in sst_byt_pcm_restore_stream_context()
171 struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); in sst_byt_pcm_trigger() local
172 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_trigger()
173 struct sst_byt *byt = pdata->byt; in sst_byt_pcm_trigger()
183 if (pdata->restore_stream) in sst_byt_pcm_trigger()
[all …]
/sound/soc/intel/common/
Dsoc-acpi-intel-kbl-match.c57 .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/arm/
Dpxa2xx-ac97-lib.c321 pxa2xx_audio_ops_t *pdata = dev->dev.platform_data; in pxa2xx_ac97_hw_probe() local
323 if (pdata) { in pxa2xx_ac97_hw_probe()
324 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe()
327 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe()
336 pdata->reset_gpio); in pxa2xx_ac97_hw_probe()
338 } else if (!pdata && dev->dev.of_node) { in pxa2xx_ac97_hw_probe()
339 pdata = devm_kzalloc(&dev->dev, sizeof(*pdata), GFP_KERNEL); in pxa2xx_ac97_hw_probe()
340 if (!pdata) in pxa2xx_ac97_hw_probe()
342 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe()
344 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe()
[all …]
/sound/soc/qcom/
Dapq8016_sbc.c40 struct apq8016_sbc_data *pdata = snd_soc_card_get_drvdata(card); in apq8016_sbc_dai_init() local
45 writel(readl(pdata->spkr_iomux) | SPKR_CTL_PRI_WS_SLAVE_SEL_11, in apq8016_sbc_dai_init()
46 pdata->spkr_iomux); in apq8016_sbc_dai_init()
51 writel(readl(pdata->mic_iomux) | MIC_CTRL_QUA_WS_SLAVE_SEL_10 | in apq8016_sbc_dai_init()
53 pdata->mic_iomux); in apq8016_sbc_dai_init()
56 writel(readl(pdata->mic_iomux) | MIC_CTRL_TER_WS_SLAVE_SEL | in apq8016_sbc_dai_init()
58 pdata->mic_iomux); in apq8016_sbc_dai_init()
68 if (!pdata->jack_setup) { in apq8016_sbc_dai_init()
77 &pdata->jack, NULL, 0); in apq8016_sbc_dai_init()
84 jack = pdata->jack.jack; in apq8016_sbc_dai_init()
[all …]

1234567