Home
last modified time | relevance | path

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

/sound/soc/qcom/
Dlpass-cpu.c33 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_cpu_daiops_set_sysclk() local
36 if (IS_ERR(drvdata->mi2s_osr_clk[dai->driver->id])) in lpass_cpu_daiops_set_sysclk()
39 ret = clk_set_rate(drvdata->mi2s_osr_clk[dai->driver->id], freq); in lpass_cpu_daiops_set_sysclk()
50 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_cpu_daiops_startup() local
53 if (!IS_ERR(drvdata->mi2s_osr_clk[dai->driver->id])) { in lpass_cpu_daiops_startup()
55 drvdata->mi2s_osr_clk[dai->driver->id]); in lpass_cpu_daiops_startup()
63 ret = clk_prepare_enable(drvdata->mi2s_bit_clk[dai->driver->id]); in lpass_cpu_daiops_startup()
67 if (!IS_ERR(drvdata->mi2s_osr_clk[dai->driver->id])) in lpass_cpu_daiops_startup()
69 drvdata->mi2s_osr_clk[dai->driver->id]); in lpass_cpu_daiops_startup()
79 struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); in lpass_cpu_daiops_shutdown() local
[all …]
Dlpass-platform.c87 struct lpass_data *drvdata = in lpass_platform_pcmops_hw_params() local
89 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_hw_params()
159 ret = regmap_write(drvdata->lpaif_map, in lpass_platform_pcmops_hw_params()
174 struct lpass_data *drvdata = in lpass_platform_pcmops_hw_free() local
176 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_hw_free()
179 ret = regmap_write(drvdata->lpaif_map, in lpass_platform_pcmops_hw_free()
193 struct lpass_data *drvdata = in lpass_platform_pcmops_prepare() local
195 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_prepare()
198 ret = regmap_write(drvdata->lpaif_map, in lpass_platform_pcmops_prepare()
207 ret = regmap_write(drvdata->lpaif_map, in lpass_platform_pcmops_prepare()
[all …]
Dlpass-apq8016.c136 static int apq8016_lpass_alloc_dma_channel(struct lpass_data *drvdata) in apq8016_lpass_alloc_dma_channel() argument
138 struct lpass_variant *v = drvdata->variant; in apq8016_lpass_alloc_dma_channel()
139 int chan = find_first_zero_bit(&drvdata->rdma_ch_bit_map, in apq8016_lpass_alloc_dma_channel()
145 set_bit(chan, &drvdata->rdma_ch_bit_map); in apq8016_lpass_alloc_dma_channel()
150 static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan) in apq8016_lpass_free_dma_channel() argument
152 clear_bit(chan, &drvdata->rdma_ch_bit_map); in apq8016_lpass_free_dma_channel()
159 struct lpass_data *drvdata = platform_get_drvdata(pdev); in apq8016_lpass_init() local
163 drvdata->pcnoc_mport_clk = devm_clk_get(dev, "pcnoc-mport-clk"); in apq8016_lpass_init()
164 if (IS_ERR(drvdata->pcnoc_mport_clk)) { in apq8016_lpass_init()
166 __func__, PTR_ERR(drvdata->pcnoc_mport_clk)); in apq8016_lpass_init()
[all …]
Dlpass-ipq806x.c66 static int ipq806x_lpass_alloc_dma_channel(struct lpass_data *drvdata) in ipq806x_lpass_alloc_dma_channel() argument
71 static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan) in ipq806x_lpass_free_dma_channel() argument
/sound/soc/ux500/
Dux500_msp_dai.c36 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_pcm_multichan() local
40 if (drvdata->slots > 1) { in setup_pcm_multichan()
47 multi->tx_channel_0_enable = drvdata->tx_mask; in setup_pcm_multichan()
52 multi->rx_channel_0_enable = drvdata->rx_mask; in setup_pcm_multichan()
59 __func__, drvdata->slots, multi->tx_channel_0_enable, in setup_pcm_multichan()
69 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_frameper() local
71 switch (drvdata->slots) { in setup_frameper()
116 __func__, drvdata->slots); in setup_frameper()
133 struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); in setup_pcm_framing() local
138 switch (drvdata->slots) { in setup_pcm_framing()
[all …]
Dmop500_ab8500.c88 struct mop500_ab8500_drvdata *drvdata) in mop500_ab8500_set_mclk() argument
93 if (IS_ERR(drvdata->clk_ptr_intclk)) { in mop500_ab8500_set_mclk()
99 switch (drvdata->mclk_sel) { in mop500_ab8500_set_mclk()
101 clk_ptr = drvdata->clk_ptr_sysclk; in mop500_ab8500_set_mclk()
104 clk_ptr = drvdata->clk_ptr_ulpclk; in mop500_ab8500_set_mclk()
112 get_mclk_str(drvdata->mclk_sel)); in mop500_ab8500_set_mclk()
116 status = clk_set_parent(drvdata->clk_ptr_intclk, clk_ptr); in mop500_ab8500_set_mclk()
120 __func__, get_mclk_str(drvdata->mclk_sel), status); in mop500_ab8500_set_mclk()
124 __func__, get_mclk_str(drvdata->mclk_sel)); in mop500_ab8500_set_mclk()
137 struct mop500_ab8500_drvdata *drvdata = in mclk_input_control_get() local
[all …]
/sound/soc/txx9/
Dtxx9aclc-ac97.c42 static int txx9aclc_regready(struct txx9aclc_plat_drvdata *drvdata) in txx9aclc_regready() argument
44 return __raw_readl(drvdata->base + ACINTSTS) & ACINT_REGACCRDY; in txx9aclc_regready()
51 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_ac97_read() local
52 void __iomem *base = drvdata->base; in txx9aclc_ac97_read()
84 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_ac97_write() local
85 void __iomem *base = drvdata->base; in txx9aclc_ac97_write()
100 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_ac97_cold_reset() local
101 void __iomem *base = drvdata->base; in txx9aclc_ac97_cold_reset()
130 struct txx9aclc_plat_drvdata *drvdata = dev_id; in txx9aclc_ac97_irq() local
131 void __iomem *base = drvdata->base; in txx9aclc_ac97_irq()
[all …]
Dtxx9aclc.c160 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_dma_tasklet() local
161 void __iomem *base = drvdata->base; in txx9aclc_dma_tasklet()
209 struct txx9aclc_plat_drvdata *drvdata =txx9aclc_drvdata; in txx9aclc_pcm_trigger() local
210 void __iomem *base = drvdata->base; in txx9aclc_pcm_trigger()
343 struct txx9aclc_plat_drvdata *drvdata =txx9aclc_drvdata; in txx9aclc_dma_init() local
351 ds->tx_reg = drvdata->physbase + ACAUDODAT; in txx9aclc_dma_init()
355 ds->rx_reg = drvdata->physbase + ACAUDIDAT; in txx9aclc_dma_init()
383 struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; in txx9aclc_pcm_remove() local
384 void __iomem *base = drvdata->base; in txx9aclc_pcm_remove()
/sound/soc/codecs/
Dsti-sas.c113 struct sti_sas_data *drvdata = context; in sti_sas_read_reg() local
117 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
127 struct sti_sas_data *drvdata = context; in sti_sas_write_reg() local
130 status = regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
223 struct sti_sas_data *drvdata = dev_get_drvdata(codec->dev); in stih416_dac_probe() local
224 struct sti_dac_audio *dac = &drvdata->dac; in stih416_dac_probe()
364 struct sti_sas_data *drvdata = dev_get_drvdata(codec->dev); in sti_sas_set_sysclk() local
374 drvdata->spdif.mclk = freq; in sti_sas_set_sysclk()
378 drvdata->dac.mclk = freq; in sti_sas_set_sysclk()
389 struct sti_sas_data *drvdata = dev_get_drvdata(codec->dev); in sti_sas_prepare() local
[all …]
Dab8500-codec.c1091 struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(codec->dev); in anc_configure() local
1107 drvdata->anc_fir_values[par]); in anc_configure()
1115 drvdata->anc_iir_values[par]); in anc_configure()
1130 struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(codec->dev); in sid_status_control_get() local
1132 mutex_lock(&drvdata->ctrl_lock); in sid_status_control_get()
1133 ucontrol->value.integer.value[0] = drvdata->sid_status; in sid_status_control_get()
1134 mutex_unlock(&drvdata->ctrl_lock); in sid_status_control_get()
1144 struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(codec->dev); in sid_status_control_put() local
1157 mutex_lock(&drvdata->ctrl_lock); in sid_status_control_put()
1174 val = snd_soc_read(codec, drvdata->sid_fir_values[param]); in sid_status_control_put()
[all …]
Dak4642.c148 const struct ak4642_drvdata *drvdata; member
382 if (extended_freq && !priv->drvdata->extended_frequencies) in ak4642_dai_set_sysclk()
632 const struct ak4642_drvdata *drvdata = NULL; in ak4642_i2c_probe() local
646 drvdata = of_id->data; in ak4642_i2c_probe()
648 drvdata = (const struct ak4642_drvdata *)id->driver_data; in ak4642_i2c_probe()
651 if (!drvdata) { in ak4642_i2c_probe()
660 priv->drvdata = drvdata; in ak4642_i2c_probe()
665 regmap = devm_regmap_init_i2c(i2c, drvdata->regmap_config); in ak4642_i2c_probe()
Dcs42xx8.c41 const struct cs42xx8_driver_data *drvdata; member
385 switch (cs42xx8->drvdata->num_adcs) { in cs42xx8_codec_probe()
457 cs42xx8->drvdata = of_id->data; in cs42xx8_probe()
459 if (!cs42xx8->drvdata) { in cs42xx8_probe()
520 cs42xx8_dai.name = cs42xx8->drvdata->name; in cs42xx8_probe()
523 cs42xx8_dai.capture.channels_max = cs42xx8->drvdata->num_adcs * 2; in cs42xx8_probe()
/sound/soc/davinci/
Ddavinci-evm.c36 struct snd_soc_card_drvdata_davinci *drvdata = in evm_startup() local
39 if (drvdata->mclk) in evm_startup()
40 return clk_prepare_enable(drvdata->mclk); in evm_startup()
49 struct snd_soc_card_drvdata_davinci *drvdata = in evm_shutdown() local
52 if (drvdata->mclk) in evm_shutdown()
53 clk_disable_unprepare(drvdata->mclk); in evm_shutdown()
260 .drvdata = &dm6446_snd_soc_card_drvdata,
274 .drvdata = &dm355_snd_soc_card_drvdata,
287 .drvdata = &dm365_snd_soc_card_drvdata,
300 .drvdata = &dm6467_snd_soc_card_drvdata,
[all …]
/sound/soc/samsung/
Dbells.c63 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level()
104 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level_post()
139 struct bells_drvdata *bells = card->drvdata; in bells_late_probe()
385 .drvdata = &wm2200_drvdata,
405 .drvdata = &wm5102_drvdata,
425 .drvdata = &wm5110_drvdata,
/sound/soc/atmel/
Dsam9x5_wm8731.c178 struct sam9x5_drvdata *priv = card->drvdata; in sam9x5_wm8731_driver_remove()