Home
last modified time | relevance | path

Searched refs:drvdata (Results 1 – 24 of 24) sorted by relevance

/sound/drivers/
Dserial-generic.c56 static void snd_serial_generic_tx_wakeup(struct snd_serial_generic *drvdata) in snd_serial_generic_tx_wakeup() argument
58 if (test_and_set_bit(SERIAL_TX_STATE_ACTIVE, &drvdata->tx_state)) in snd_serial_generic_tx_wakeup()
59 set_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state); in snd_serial_generic_tx_wakeup()
61 schedule_work(&drvdata->tx_work); in snd_serial_generic_tx_wakeup()
70 struct snd_serial_generic *drvdata = container_of(work, struct snd_serial_generic, in snd_serial_generic_tx_work() local
72 struct snd_rawmidi_substream *substream = drvdata->midi_output; in snd_serial_generic_tx_work()
74 clear_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state); in snd_serial_generic_tx_work()
78 if (!test_bit(SERIAL_MODE_OUTPUT_OPEN, &drvdata->filemode)) in snd_serial_generic_tx_work()
82 num_bytes = serdev_device_write_buf(drvdata->serdev, buf, num_bytes); in snd_serial_generic_tx_work()
89 if (!test_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state)) in snd_serial_generic_tx_work()
[all …]
/sound/soc/ux500/
Dux500_msp_dai.c31 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_pcm_multichan() local
35 if (drvdata->slots > 1) { in setup_pcm_multichan()
42 multi->tx_channel_0_enable = drvdata->tx_mask; in setup_pcm_multichan()
47 multi->rx_channel_0_enable = drvdata->rx_mask; in setup_pcm_multichan()
54 __func__, drvdata->slots, multi->tx_channel_0_enable, in setup_pcm_multichan()
64 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_frameper() local
66 switch (drvdata->slots) { in setup_frameper()
111 __func__, drvdata->slots); in setup_frameper()
128 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_pcm_framing() local
134 switch (drvdata->slots) { in setup_pcm_framing()
[all …]
Dmop500_ab8500.c83 struct mop500_ab8500_drvdata *drvdata) in mop500_ab8500_set_mclk() argument
88 if (IS_ERR(drvdata->clk_ptr_intclk)) { in mop500_ab8500_set_mclk()
94 switch (drvdata->mclk_sel) { in mop500_ab8500_set_mclk()
96 clk_ptr = drvdata->clk_ptr_sysclk; in mop500_ab8500_set_mclk()
99 clk_ptr = drvdata->clk_ptr_ulpclk; in mop500_ab8500_set_mclk()
107 get_mclk_str(drvdata->mclk_sel)); in mop500_ab8500_set_mclk()
111 status = clk_set_parent(drvdata->clk_ptr_intclk, clk_ptr); in mop500_ab8500_set_mclk()
115 __func__, get_mclk_str(drvdata->mclk_sel), status); in mop500_ab8500_set_mclk()
119 __func__, get_mclk_str(drvdata->mclk_sel)); in mop500_ab8500_set_mclk()
132 struct mop500_ab8500_drvdata *drvdata = in mclk_input_control_get() local
[all …]
/sound/soc/qcom/
Dlpass-cpu.c46 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_cpu_init_i2sctl_bitfields() local
47 struct lpass_variant *v = drvdata->variant; in lpass_cpu_init_i2sctl_bitfields()
72 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_cpu_daiops_set_sysclk() local
75 ret = clk_set_rate(drvdata->mi2s_osr_clk[dai->driver->id], freq); in lpass_cpu_daiops_set_sysclk()
86 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_cpu_daiops_startup() local
89 ret = clk_prepare_enable(drvdata->mi2s_osr_clk[dai->driver->id]); in lpass_cpu_daiops_startup()
94 ret = clk_prepare(drvdata->mi2s_bit_clk[dai->driver->id]); in lpass_cpu_daiops_startup()
97 clk_disable_unprepare(drvdata->mi2s_osr_clk[dai->driver->id]); in lpass_cpu_daiops_startup()
106 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_cpu_daiops_shutdown() local
107 struct lpaif_i2sctl *i2sctl = drvdata->i2sctl; in lpass_cpu_daiops_shutdown()
[all …]
Dlpass-apq8016.c127 static int apq8016_lpass_alloc_dma_channel(struct lpass_data *drvdata, in apq8016_lpass_alloc_dma_channel() argument
130 struct lpass_variant *v = drvdata->variant; in apq8016_lpass_alloc_dma_channel()
134 chan = find_first_zero_bit(&drvdata->dma_ch_bit_map, in apq8016_lpass_alloc_dma_channel()
140 chan = find_next_zero_bit(&drvdata->dma_ch_bit_map, in apq8016_lpass_alloc_dma_channel()
149 set_bit(chan, &drvdata->dma_ch_bit_map); in apq8016_lpass_alloc_dma_channel()
154 static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in apq8016_lpass_free_dma_channel() argument
156 clear_bit(chan, &drvdata->dma_ch_bit_map); in apq8016_lpass_free_dma_channel()
163 struct lpass_data *drvdata = platform_get_drvdata(pdev); in apq8016_lpass_init() local
164 struct lpass_variant *variant = drvdata->variant; in apq8016_lpass_init()
169 drvdata->clks = devm_kcalloc(dev, variant->num_clks, in apq8016_lpass_init()
[all …]
Dlpass-platform.c102 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_platform_alloc_rxtx_dmactl_fields() local
103 struct lpass_variant *v = drvdata->variant; in lpass_platform_alloc_rxtx_dmactl_fields()
115 drvdata->rxtx_rd_dmactl = rd_dmactl; in lpass_platform_alloc_rxtx_dmactl_fields()
116 drvdata->rxtx_wr_dmactl = wr_dmactl; in lpass_platform_alloc_rxtx_dmactl_fields()
130 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_platform_alloc_va_dmactl_fields() local
131 struct lpass_variant *v = drvdata->variant; in lpass_platform_alloc_va_dmactl_fields()
138 drvdata->va_wr_dmactl = wr_dmactl; in lpass_platform_alloc_va_dmactl_fields()
147 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_platform_alloc_dmactl_fields() local
148 struct lpass_variant *v = drvdata->variant; in lpass_platform_alloc_dmactl_fields()
152 drvdata->rd_dmactl = devm_kzalloc(dev, sizeof(struct lpaif_dmactl), in lpass_platform_alloc_dmactl_fields()
[all …]
Dlpass-sc7180.c78 static int sc7180_lpass_alloc_dma_channel(struct lpass_data *drvdata, in sc7180_lpass_alloc_dma_channel() argument
81 struct lpass_variant *v = drvdata->variant; in sc7180_lpass_alloc_dma_channel()
86 chan = find_first_zero_bit(&drvdata->hdmi_dma_ch_bit_map, in sc7180_lpass_alloc_dma_channel()
92 set_bit(chan, &drvdata->hdmi_dma_ch_bit_map); in sc7180_lpass_alloc_dma_channel()
95 chan = find_first_zero_bit(&drvdata->dma_ch_bit_map, in sc7180_lpass_alloc_dma_channel()
101 chan = find_next_zero_bit(&drvdata->dma_ch_bit_map, in sc7180_lpass_alloc_dma_channel()
110 set_bit(chan, &drvdata->dma_ch_bit_map); in sc7180_lpass_alloc_dma_channel()
115 static int sc7180_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in sc7180_lpass_free_dma_channel() argument
118 clear_bit(chan, &drvdata->hdmi_dma_ch_bit_map); in sc7180_lpass_free_dma_channel()
120 clear_bit(chan, &drvdata->dma_ch_bit_map); in sc7180_lpass_free_dma_channel()
[all …]
Dlpass-sc7280.c112 static int sc7280_lpass_alloc_dma_channel(struct lpass_data *drvdata, in sc7280_lpass_alloc_dma_channel() argument
115 struct lpass_variant *v = drvdata->variant; in sc7280_lpass_alloc_dma_channel()
121 chan = find_first_zero_bit(&drvdata->dma_ch_bit_map, in sc7280_lpass_alloc_dma_channel()
127 chan = find_next_zero_bit(&drvdata->dma_ch_bit_map, in sc7280_lpass_alloc_dma_channel()
135 set_bit(chan, &drvdata->dma_ch_bit_map); in sc7280_lpass_alloc_dma_channel()
138 chan = find_first_zero_bit(&drvdata->hdmi_dma_ch_bit_map, in sc7280_lpass_alloc_dma_channel()
142 set_bit(chan, &drvdata->hdmi_dma_ch_bit_map); in sc7280_lpass_alloc_dma_channel()
145 chan = find_first_zero_bit(&drvdata->rxtx_dma_ch_bit_map, in sc7280_lpass_alloc_dma_channel()
151 chan = find_next_zero_bit(&drvdata->rxtx_dma_ch_bit_map, in sc7280_lpass_alloc_dma_channel()
157 set_bit(chan, &drvdata->rxtx_dma_ch_bit_map); in sc7280_lpass_alloc_dma_channel()
[all …]
Dlpass-hdmi.c22 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_hdmi_daiops_hw_params() local
34 struct lpass_dp_metadata_ctl *meta_ctl = drvdata->meta_ctl; in lpass_hdmi_daiops_hw_params()
35 struct lpass_sstream_ctl *sstream_ctl = drvdata->sstream_ctl; in lpass_hdmi_daiops_hw_params()
77 ret = regmap_field_write(drvdata->tx_ctl->soft_reset, LPASS_TX_CTL_RESET); in lpass_hdmi_daiops_hw_params()
81 ret = regmap_field_write(drvdata->tx_ctl->soft_reset, LPASS_TX_CTL_CLEAR); in lpass_hdmi_daiops_hw_params()
85 ret = regmap_field_write(drvdata->hdmitx_legacy_en, LPASS_HDMITX_LEGACY_DISABLE); in lpass_hdmi_daiops_hw_params()
89 ret = regmap_field_write(drvdata->hdmitx_parity_calc_en, HDMITX_PARITY_CALC_EN); in lpass_hdmi_daiops_hw_params()
93 ret = regmap_field_write(drvdata->vbit_ctl->replace_vbit, REPLACE_VBIT); in lpass_hdmi_daiops_hw_params()
97 ret = regmap_field_write(drvdata->vbit_ctl->vbit_stream, LINEAR_PCM_DATA); in lpass_hdmi_daiops_hw_params()
101 ret = regmap_field_write(drvdata->hdmitx_ch_msb[0], ch_sts_buf1); in lpass_hdmi_daiops_hw_params()
[all …]
Dlpass-ipq806x.c60 struct lpass_data *drvdata = platform_get_drvdata(pdev); in ipq806x_lpass_init() local
64 drvdata->ahbix_clk = devm_clk_get(dev, "ahbix-clk"); in ipq806x_lpass_init()
65 if (IS_ERR(drvdata->ahbix_clk)) { in ipq806x_lpass_init()
67 PTR_ERR(drvdata->ahbix_clk)); in ipq806x_lpass_init()
68 ret = PTR_ERR(drvdata->ahbix_clk); in ipq806x_lpass_init()
72 ret = clk_set_rate(drvdata->ahbix_clk, LPASS_AHBIX_CLOCK_FREQUENCY); in ipq806x_lpass_init()
78 clk_get_rate(drvdata->ahbix_clk)); in ipq806x_lpass_init()
80 ret = clk_prepare_enable(drvdata->ahbix_clk); in ipq806x_lpass_init()
92 struct lpass_data *drvdata = platform_get_drvdata(pdev); in ipq806x_lpass_exit() local
94 clk_disable_unprepare(drvdata->ahbix_clk); in ipq806x_lpass_exit()
[all …]
Dlpass-cdc-dma.c37 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in __lpass_get_dmactl_handle() local
40 struct lpass_variant *v = drvdata->variant; in __lpass_get_dmactl_handle()
45 *dmactl = drvdata->rxtx_rd_dmactl; in __lpass_get_dmactl_handle()
49 *dmactl = drvdata->rxtx_wr_dmactl; in __lpass_get_dmactl_handle()
53 *dmactl = drvdata->va_wr_dmactl; in __lpass_get_dmactl_handle()
173 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_cdc_dma_daiops_startup() local
179 clk_set_rate(drvdata->codec_mem0, CODEC_MEM_HZ_NORMAL); in lpass_cdc_dma_daiops_startup()
180 clk_prepare_enable(drvdata->codec_mem0); in lpass_cdc_dma_daiops_startup()
183 clk_set_rate(drvdata->va_mem0, CODEC_MEM_HZ_NORMAL); in lpass_cdc_dma_daiops_startup()
184 clk_prepare_enable(drvdata->va_mem0); in lpass_cdc_dma_daiops_startup()
[all …]
/sound/soc/codecs/
Dsti-sas.c84 struct sti_sas_data *drvdata = context; in sti_sas_read_reg() local
88 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
98 struct sti_sas_data *drvdata = context; in sti_sas_write_reg() local
100 return regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
258 struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); in sti_sas_set_sysclk() local
268 drvdata->spdif.mclk = freq; in sti_sas_set_sysclk()
272 drvdata->dac.mclk = freq; in sti_sas_set_sysclk()
283 struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); in sti_sas_prepare() local
288 if ((drvdata->spdif.mclk / runtime->rate) != 128) { in sti_sas_prepare()
294 if ((drvdata->dac.mclk / runtime->rate) != 256) { in sti_sas_prepare()
[all …]
Dab8500-codec.c1079 struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); in anc_configure() local
1095 drvdata->anc_fir_values[par]); in anc_configure()
1103 drvdata->anc_iir_values[par]); in anc_configure()
1118 struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); in sid_status_control_get() local
1120 mutex_lock(&drvdata->ctrl_lock); in sid_status_control_get()
1121 ucontrol->value.enumerated.item[0] = drvdata->sid_status; in sid_status_control_get()
1122 mutex_unlock(&drvdata->ctrl_lock); in sid_status_control_get()
1132 struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); in sid_status_control_put() local
1145 mutex_lock(&drvdata->ctrl_lock); in sid_status_control_put()
1162 val = snd_soc_component_read(component, drvdata->sid_fir_values[param]); in sid_status_control_put()
[all …]
Dak4642.c144 const struct ak4642_drvdata *drvdata; member
378 if (extended_freq && !priv->drvdata->extended_frequencies) in ak4642_dai_set_sysclk()
637 const struct ak4642_drvdata *drvdata = NULL; in ak4642_i2c_probe() local
651 drvdata = of_id->data; in ak4642_i2c_probe()
655 drvdata = (const struct ak4642_drvdata *)id->driver_data; in ak4642_i2c_probe()
658 if (!drvdata) { in ak4642_i2c_probe()
667 priv->drvdata = drvdata; in ak4642_i2c_probe()
672 regmap = devm_regmap_init_i2c(i2c, drvdata->regmap_config); in ak4642_i2c_probe()
Dcs42xx8.c42 const struct cs42xx8_driver_data *drvdata; member
471 switch (cs42xx8->drvdata->num_adcs) { in cs42xx8_component_probe()
543 cs42xx8->drvdata = of_id->data; in cs42xx8_probe()
545 if (!cs42xx8->drvdata) { in cs42xx8_probe()
604 cs42xx8_dai.name = cs42xx8->drvdata->name; in cs42xx8_probe()
607 cs42xx8_dai.capture.channels_max = cs42xx8->drvdata->num_adcs * 2; in cs42xx8_probe()
Dak4458.c45 const struct ak4458_drvdata *drvdata; member
381 if (ak4458->drvdata->type == AK4497) { in ak4458_hw_params()
450 if (ak4458->drvdata->type == AK4497) { in ak4458_hw_params()
749 ak4458->drvdata = of_device_get_match_data(&i2c->dev); in ak4458_i2c_probe()
775 ak4458->drvdata->comp_drv, in ak4458_i2c_probe()
776 ak4458->drvdata->dai_drv, 1); in ak4458_i2c_probe()
Dak4375.c501 const struct ak4375_drvdata *drvdata; in ak4375_i2c_probe() local
516 drvdata = of_device_get_match_data(&i2c->dev); in ak4375_i2c_probe()
573 ret = devm_snd_soc_register_component(ak4375->dev, drvdata->comp_drv, in ak4375_i2c_probe()
574 drvdata->dai_drv, 1); in ak4375_i2c_probe()
Dwm8580.c250 const struct wm8580_driver_data *drvdata; member
856 SNDRV_PCM_HW_PARAM_CHANNELS, 1, wm8580->drvdata->num_dacs * 2); in wm8580_playback_startup()
913 switch (wm8580->drvdata->num_dacs) { in wm8580_probe()
1027 wm8580->drvdata = of_id->data; in wm8580_i2c_probe()
1029 if (!wm8580->drvdata) { in wm8580_i2c_probe()
/sound/soc/ti/
Ddavinci-evm.c33 struct snd_soc_card_drvdata_davinci *drvdata = in evm_startup() local
36 if (drvdata->mclk) in evm_startup()
37 return clk_prepare_enable(drvdata->mclk); in evm_startup()
46 struct snd_soc_card_drvdata_davinci *drvdata = in evm_shutdown() local
49 clk_disable_unprepare(drvdata->mclk); in evm_shutdown()
280 .drvdata = &dm6446_snd_soc_card_drvdata,
294 .drvdata = &dm355_snd_soc_card_drvdata,
307 .drvdata = &dm365_snd_soc_card_drvdata,
320 .drvdata = &dm6467_snd_soc_card_drvdata,
332 .drvdata = &da830_snd_soc_card_drvdata,
[all …]
/sound/soc/amd/acp/
Dacp-mach-common.c57 static int acp_clk_enable(struct acp_card_drvdata *drvdata) in acp_clk_enable() argument
59 clk_set_rate(drvdata->wclk, 48000); in acp_clk_enable()
60 clk_set_rate(drvdata->bclk, 48000 * 64); in acp_clk_enable()
62 return clk_prepare_enable(drvdata->wclk); in acp_clk_enable()
79 struct acp_card_drvdata *drvdata = card->drvdata; in acp_card_rt5682_init() local
86 if (drvdata->hs_codec_id != RT5682) in acp_card_rt5682_init()
117 drvdata->wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp_card_rt5682_init()
118 drvdata->bclk = clk_get(component->dev, "rt5682-dai-bclk"); in acp_card_rt5682_init()
149 struct acp_card_drvdata *drvdata = card->drvdata; in acp_card_hs_startup() local
154 if (drvdata->soc_mclk) in acp_card_hs_startup()
[all …]
Dacp-legacy-mach.c109 card->drvdata = (struct acp_card_drvdata *)pdev->id_entry->driver_data; in acp_asoc_probe()
Dacp-sof-mach.c115 card->drvdata = (struct acp_card_drvdata *)pdev->id_entry->driver_data; in acp_sof_probe()
/sound/soc/samsung/
Dbells.c59 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level()
105 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level_post()
144 struct bells_drvdata *bells = card->drvdata; in bells_late_probe()
421 .drvdata = &wm2200_drvdata,
441 .drvdata = &wm5102_drvdata,
461 .drvdata = &wm5110_drvdata,
/sound/soc/atmel/
Dsam9x5_wm8731.c182 struct sam9x5_drvdata *priv = card->drvdata; in sam9x5_wm8731_driver_remove()