Home
last modified time | relevance | path

Searched refs:pd (Results 1 – 19 of 19) sorted by relevance

/sound/usb/
Dpower.c20 struct snd_usb_power_domain *pd; in snd_usb_find_power_domain() local
23 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in snd_usb_find_power_domain()
24 if (!pd) in snd_usb_find_power_domain()
38 pd->pd_id = pd_desc->bPowerDomainID; in snd_usb_find_power_domain()
39 pd->pd_d1d0_rec = in snd_usb_find_power_domain()
41 pd->pd_d2d0_rec = in snd_usb_find_power_domain()
43 return pd; in snd_usb_find_power_domain()
48 kfree(pd); in snd_usb_find_power_domain()
53 struct snd_usb_power_domain *pd, in snd_usb_power_domain_set() argument
60 idx = snd_usb_ctrl_intf(chip) | (pd->pd_id << 8); in snd_usb_power_domain_set()
[all …]
Dstream.c82 struct snd_usb_power_domain *pd) in snd_usb_init_substream() argument
108 if (pd) { in snd_usb_init_substream()
109 subs->str_pd = pd; in snd_usb_init_substream()
111 snd_usb_power_domain_set(subs->stream->chip, pd, in snd_usb_init_substream()
479 struct snd_usb_power_domain *pd) in __snd_usb_add_audio_stream() argument
512 snd_usb_init_substream(as, stream, fp, pd); in __snd_usb_add_audio_stream()
540 snd_usb_init_substream(as, stream, fp, pd); in __snd_usb_add_audio_stream()
568 struct snd_usb_power_domain *pd) in snd_usb_add_audio_stream_v3() argument
570 return __snd_usb_add_audio_stream(chip, stream, fp, pd); in snd_usb_add_audio_stream_v3()
871 struct snd_usb_power_domain *pd; in snd_usb_get_audioformat_uac3() local
[all …]
Dpower.h18 struct snd_usb_power_domain *pd,
/sound/soc/samsung/
Ds3c24xx_simtec.c203 static int simtec_call_startup(struct s3c24xx_audio_simtec_pdata *pd) in simtec_call_startup() argument
208 if (pd->startup) in simtec_call_startup()
209 pd->startup(); in simtec_call_startup()
227 struct s3c24xx_audio_simtec_pdata *pd) in attach_gpio_amp() argument
233 ret = gpio_request(pd->amp_gain[0], "gpio-amp-gain0"); in attach_gpio_amp()
239 ret = gpio_request(pd->amp_gain[1], "gpio-amp-gain1"); in attach_gpio_amp()
246 gpio_direction_output(pd->amp_gain[0], 0); in attach_gpio_amp()
247 gpio_direction_output(pd->amp_gain[1], 0); in attach_gpio_amp()
252 ret = gpio_request(pd->amp_gpio, "gpio-amp"); in attach_gpio_amp()
255 pd->amp_gpio, ret); in attach_gpio_amp()
[all …]
Ds3c24xx_simtec_hermes.c92 static int simtec_audio_hermes_probe(struct platform_device *pd) in simtec_audio_hermes_probe() argument
94 dev_info(&pd->dev, "probing....\n"); in simtec_audio_hermes_probe()
95 return simtec_audio_core_probe(pd, &snd_soc_machine_simtec_aic33); in simtec_audio_hermes_probe()
Ds3c24xx_simtec_tlv320aic23.c81 static int simtec_audio_tlv320aic23_probe(struct platform_device *pd) in simtec_audio_tlv320aic23_probe() argument
83 return simtec_audio_core_probe(pd, &snd_soc_machine_simtec_aic23); in simtec_audio_tlv320aic23_probe()
/sound/soc/codecs/
Duda134x.c39 struct uda134x_platform_data *pd; member
67 struct uda134x_platform_data *pd = context; in uda134x_regmap_write() local
92 ret = l3_write(&pd->l3, in uda134x_regmap_write()
102 ret = l3_write(&pd->l3, in uda134x_regmap_write()
298 struct uda134x_platform_data *pd = uda134x->pd; in uda134x_set_bias_level() local
306 if (pd->power) { in uda134x_set_bias_level()
307 pd->power(1); in uda134x_set_bias_level()
315 if (pd->power) { in uda134x_set_bias_level()
316 pd->power(0); in uda134x_set_bias_level()
451 struct uda134x_platform_data *pd = uda134x->pd; in uda134x_soc_probe() local
[all …]
Drl6231.c28 int pd, val; in rl6231_get_pre_div() local
39 pd = val + 1; in rl6231_get_pre_div()
42 pd = 6; in rl6231_get_pre_div()
45 pd = 8; in rl6231_get_pre_div()
48 pd = 12; in rl6231_get_pre_div()
51 pd = 16; in rl6231_get_pre_div()
54 pd = -EINVAL; in rl6231_get_pre_div()
58 return pd; in rl6231_get_pre_div()
237 static const int pd[] = {1, 2, 3, 4, 6, 8, 12, 16}; in rl6231_get_clk_info() local
243 for (i = 0; i < ARRAY_SIZE(pd); i++) in rl6231_get_clk_info()
[all …]
Drt1308.c440 static const int pd[] = {1, 2, 3, 4, 6, 8, 12, 16}; in rt1308_get_clk_info() local
446 for (i = 0; i < ARRAY_SIZE(pd); i++) in rt1308_get_clk_info()
447 if (sclk == rate * pd[i]) in rt1308_get_clk_info()
Drt1305.c612 static const int pd[] = {1, 2, 3, 4, 6, 8, 12, 16}; in rt1305_get_clk_info() local
618 for (i = 0; i < ARRAY_SIZE(pd); i++) in rt1305_get_clk_info()
619 if (sclk == rate * pd[i]) in rt1305_get_clk_info()
Drt1011.c1509 static const int pd[] = {1, 2, 3, 4, 6, 8, 12, 16}; in rt1011_get_clk_info() local
1515 for (i = 0; i < ARRAY_SIZE(pd); i++) in rt1011_get_clk_info()
1516 if (sclk == rate * pd[i]) in rt1011_get_clk_info()
Drt5665.c1481 int pd, idx; in set_dmic_clk() local
1483 pd = rl6231_get_pre_div(rt5665->regmap, in set_dmic_clk()
1485 idx = rl6231_calc_dmic_clk(rt5665->sysclk / pd); in set_dmic_clk()
Drt5659.c1570 int pd, idx; in set_dmic_clk() local
1572 pd = rl6231_get_pre_div(rt5659->regmap, in set_dmic_clk()
1574 idx = rl6231_calc_dmic_clk(rt5659->sysclk / pd); in set_dmic_clk()
/sound/soc/sof/
Dpcm.c815 struct snd_soc_component_driver *pd = &sdev->plat_drv; in snd_sof_new_platform_drv() local
821 pd->name = "sof-audio-component"; in snd_sof_new_platform_drv()
822 pd->probe = sof_pcm_probe; in snd_sof_new_platform_drv()
823 pd->remove = sof_pcm_remove; in snd_sof_new_platform_drv()
824 pd->open = sof_pcm_open; in snd_sof_new_platform_drv()
825 pd->close = sof_pcm_close; in snd_sof_new_platform_drv()
826 pd->hw_params = sof_pcm_hw_params; in snd_sof_new_platform_drv()
827 pd->prepare = sof_pcm_prepare; in snd_sof_new_platform_drv()
828 pd->hw_free = sof_pcm_hw_free; in snd_sof_new_platform_drv()
829 pd->trigger = sof_pcm_trigger; in snd_sof_new_platform_drv()
[all …]
/sound/isa/wavefront/
Dwavefront_fx.c161 unsigned short *pd; in snd_wavefront_fx_ioctl() local
187 pd = (unsigned short *) &r.data[3]; in snd_wavefront_fx_ioctl()
199 pd = page_data; in snd_wavefront_fx_ioctl()
206 pd); in snd_wavefront_fx_ioctl()
/sound/soc/dwc/
Ddwc-i2s.c538 dev->play_dma_data.pd.data = pdata->play_dma_data; in dw_configure_dai_by_pd()
539 dev->capture_dma_data.pd.data = pdata->capture_dma_data; in dw_configure_dai_by_pd()
540 dev->play_dma_data.pd.addr = res->start + I2S_TXDMA; in dw_configure_dai_by_pd()
541 dev->capture_dma_data.pd.addr = res->start + I2S_RXDMA; in dw_configure_dai_by_pd()
542 dev->play_dma_data.pd.max_burst = 16; in dw_configure_dai_by_pd()
543 dev->capture_dma_data.pd.max_burst = 16; in dw_configure_dai_by_pd()
544 dev->play_dma_data.pd.addr_width = bus_widths[idx]; in dw_configure_dai_by_pd()
545 dev->capture_dma_data.pd.addr_width = bus_widths[idx]; in dw_configure_dai_by_pd()
546 dev->play_dma_data.pd.filter = pdata->filter; in dw_configure_dai_by_pd()
547 dev->capture_dma_data.pd.filter = pdata->filter; in dw_configure_dai_by_pd()
Dlocal.h85 struct i2s_dma_data pd; member
/sound/sh/
Daica.c50 static struct platform_device *pd; variable
515 err = request_firmware(&fw_entry, "aica_firmware.bin", &pd->dev); in load_aica_firmware()
609 pd = platform_device_register_simple(SND_AICA_DRIVER, -1, in aica_init()
611 if (IS_ERR(pd)) { in aica_init()
613 return PTR_ERR(pd); in aica_init()
621 platform_device_unregister(pd); in aica_exit()
/sound/pci/asihpi/
Dasihpi.c848 char *pd = &s->runtime->dma_area[buf_ofs]; in snd_card_asihpi_timer_function() local
863 ds->h_stream, pd, xfer1, in snd_card_asihpi_timer_function()
867 pd = s->runtime->dma_area; in snd_card_asihpi_timer_function()
874 ds->h_stream, pd, in snd_card_asihpi_timer_function()
884 pd, xfer1)); in snd_card_asihpi_timer_function()
886 pd = s->runtime->dma_area; in snd_card_asihpi_timer_function()
892 pd, xfer2)); in snd_card_asihpi_timer_function()